Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions sentry_sdk/integrations/openai_agents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ def _patch_tools() -> None:


class OpenAIAgentsIntegration(Integration):
"""
Typical interaction with the library:
1. The user creates an Agent instance with configuration, including system instructions sent to every Responses API call.
2. The user passes the agent instance to a Runner with `run()` and `run_streamed()` methods. The latter can be used to incrementally receive progress.
3. In a loop, the agent repeatedly calls the Responses API, maintaining a conversation history that includes previous messages and tool results, which is passed to each call.

Local tools are run based on the return value from the Responses API as a post-API call step in the above loop.
Hosted MCP Tools are run as part of the Responses API call, and involve OpenAI reaching out to an external MCP server.
An agent can handoff to another agent, also directed by the return value of the Responses API and run post-API call in the loop.
Handoffs are a way to switch agent-wide configuration.
"""

identifier = "openai_agents"

@staticmethod
Expand Down
Loading