Video Tutorial
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.
Core Concepts
- Agents: LLMs configured with instructions, tools, guardrails, and handoffs
- Handoffs: Allow agents to transfer control to other agents for specific tasks
- Guardrails: Configurable safety checks for input and output validation
- Tracing: Built-in tracking of agent runs, allowing you to view, debug and optimize your workflows
Python
Installation
Install AgentOps, the OpenAI Agents SDK, andpython-dotenv for managing API keys:
Setting Up API Keys
Before using the OpenAI Agents SDK with AgentOps, you need to set up your API keys:- OPENAI_API_KEY: From the OpenAI Platform
- AGENTOPS_API_KEY: From your AgentOps Dashboard
.env file.
Usage
AgentOps will automatically instrument the OpenAI Agents SDK after being initialized. You can then create agents, run them, and track their interactions.Examples
More Examples
Customer Service Agent
Demonstrates a customer service workflow
Agent Patterns
Illustrates various agent interaction patterns.
Agents with Tools
Showcases agents utilizing different tools.

