Hi team -> can you help me verify this bugs. I'm using this sdk have see the error Handoff' object has no attribute 'name' -> Then I use AI to help debug, please review below
Handoff.name Bug Fix
Issue
The application was experiencing an AttributeError when using agent handoffs:
AttributeError: 'Handoff' object has no attribute 'name'
This error occurred at runtime when the OpenAI Agents SDK tried to list tool names in agents/run.py line 903:
tool_names = [t.name for t in all_tools]
Root Cause
The issue is in the openai-agents SDK v0.3.3:
- The
Handoff class has a tool_name attribute
- The
FunctionTool class has a name attribute
- The SDK's
run.py tries to access .name on all tools (including handoffs)
- Since
Handoff doesn't have .name, it raises an AttributeError
Debug information
- Agents SDK version: v0.3.3
- Python version:3.11
Hi team -> can you help me verify this bugs. I'm using this sdk have see the error Handoff' object has no attribute 'name' -> Then I use AI to help debug, please review below
Handoff.name Bug Fix
Issue
The application was experiencing an
AttributeErrorwhen using agent handoffs:This error occurred at runtime when the OpenAI Agents SDK tried to list tool names in
agents/run.pyline 903:Root Cause
The issue is in the
openai-agentsSDK v0.3.3:Handoffclass has atool_nameattributeFunctionToolclass has anameattributerun.pytries to access.nameon all tools (including handoffs)Handoffdoesn't have.name, it raises anAttributeErrorDebug information