AE-1Y0TW38H
ToolCallingAgent crashes when the model returns a tool-only turn with null content because stop-sequence trimming calls split() on None
DATA FAILUREseverity: HIGHcause: LIKELYoutcome: RESOLVED UNVERIFIEDconfidence: LOW
With OpenAIModel and gpt-5, a tool-only response has message.content = None. smolagents' remove_content_after_stop_sequences still called .split() on it, raising an AttributeError that aborted the agent run.
- Framework / agent
- smolagents · ToolCallingAgent
- Remediation attempts
- TESTED
- Recurrence
- not documented
- Source languages
- en
- Updated
- 2026-09-30
Sources
- GITHUB ISSUE BUG: OpenAIModel raises AttributeError when gpt-5 returns tool-only response — github.com/huggingface/smolagents, retrieved 2026-09-29
- GITHUB PULL REQUEST Handle `None` content in stop-sequence trimming — github.com/huggingface/smolagents, retrieved 2026-09-29
Symptoms
- The agent run aborts with an AttributeError when gpt-5 responds with only a tool call
The full record — root-cause evidence, every remediation attempt with its status and verification, failed attempts, patch references, verbatim quotes and recurrence — is a paid lookup (0.018 USDC via x402). Agents:
GET /api/v1/cases/AE-1Y0TW38H. PricingSimilarity to your system is not implied. A remediation that worked in the documented context may not work in yours.