OpenAI Agents SDK
How to integrate Maxim’s observability and real-time evaluation capabilities with OpenAI Agents SDK.
The OpenAI Agents SDK enables you to build agentic AI apps in a lightweight, easy-to-use package with very few abstractions. It’s a production-ready upgrade of our previous experimentation for agents, Swarm. The Agents SDK has a very small set of primitives:
- Agents, which are LLMs equipped with instructions and tools
- Handoffs, which allow agents to delegate to other agents for specific tasks
- Guardrails, which enable the inputs to agents to be validated
Integrating with Maxim
Create account
Create a Maxim account and a Log repository. Follow the instructions in the quickstart section.
Install SDK
Install Maxim SDK
Set the following environment variables to configure the Maxim SDK
Environment Variable | Description |
---|---|
MAXIM_API_KEY | Your Maxim API key |
MAXIM_LOG_REPO_ID | ID of the log repository to use |
And then Maxim SDK will automatically initialize using these env variables.
Manually initialize OR you can manually initialize the SDK
Add tracing processor
Add the MaximOpenAIAgentsTracingProcessor
to your agent using add_trace_processor
or set_trace_processor
.
Cookbooks
Here are a few cookbooks that you can use to get started with Maxim: