If you wish to experiment without the CLI, you can import create_agent from agent.py and call the agent with a list of messages. The Build an Agent tutorial in LangChain’s documentation shows how to ...