agent library and examples work