-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
feature:coreneeds-more-infoWaiting for a reply/more info from the authorWaiting for a reply/more info from the authorquestionQuestion about using the SDKQuestion about using the SDK
Description
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 atool_name
attribute - The
FunctionTool
class has aname
attribute - The SDK's
run.py
tries to access.name
on all tools (including handoffs) - Since
Handoff
doesn't have.name
, it raises anAttributeError
Debug information
- Agents SDK version: v0.3.3
- Python version:3.11
Metadata
Metadata
Assignees
Labels
feature:coreneeds-more-infoWaiting for a reply/more info from the authorWaiting for a reply/more info from the authorquestionQuestion about using the SDKQuestion about using the SDK