- chat_api: A simple object-oriented wrapper for the OpenAI chat API.
- Supports caching chat requests to avoid starting over in case of errors.
- Supports api_protocols
"openai_responses" | "anthropic_messages" | "gemini_generate_content", and trajectory rollout byreturn_traj=True.
- agent_session:
AgentSession(chat_api, trajectory)runs the agentic loop over a pure-data trajectory with MCP tools (HTTP and stdio), approval and external tool results.
pip install mxlmThe __main__ section at the bottom of the source code provides usage instructions and example code.