AgentOps and OpenAI Agents SDK integration for powerful multi-agent workflow monitoring.
OpenAI Agents Python is a lightweight yet powerful SDK for building multi-agent workflows in Python. AgentOps seamlessly integrates to provide observability into these workflows.
AgentOps will automatically instrument the OpenAI Agents SDK after being initialized. You can then create agents, run them, and track their interactions.
Copy
import agentopsfrom agents import Agent, Runner# Initialize AgentOpsagentops.init()# Create an agent with instructionsagent = Agent(name="Assistant", instructions="You are a helpful assistant")result = Runner.run_sync(agent, "Write a haiku about recursion in programming.")print(result.final_output)