-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed as not planned
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 SDKstale
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
Handoffclass has atool_nameattribute - The
FunctionToolclass has anameattribute - The SDK's
run.pytries to access.nameon all tools (including handoffs) - Since
Handoffdoesn'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 SDKstale