How do you use Sentry?
Sentry Saas (sentry.io)
Version
2.53.0
Steps to Reproduce
-
Initialize Sentry with OpenAIAgentsIntegration enabled
-
Call OpenAI Agents SDK Runner.run with the agent passed as the documented keyword argument:
from agents import Agent, Runner
agent = Agent(name="test", instructions="Be concise.")
await Runner.run(
starting_agent=agent,
input="hello",
)
### Expected Result
`OpenAIAgentsIntegration` should support valid `Runner.run` call shapes where the starting agent is passed by keyword:
Runner.run(starting_agent=agent, input=input, ...)
Actual Result
The integration crashes with:
IndexError: tuple index out of range
on this line
# sentry_sdk/integrations/openai_agents/patches/runner.py
agent = args[0].clone()
How do you use Sentry?
Sentry Saas (sentry.io)
Version
2.53.0
Steps to Reproduce
Initialize Sentry with
OpenAIAgentsIntegrationenabledCall OpenAI Agents SDK
Runner.runwith the agent passed as the documented keyword argument:Runner.run(starting_agent=agent, input=input, ...)
Actual Result
The integration crashes with:
on this line