OpenAI Agents SDK errors / Schema

openai.BadRequestError: 400 - No tool output found for function call

platform: OpenAI Agents SDK / category: Schema / versions: openai-agents==0.0.14

Cause

When previous_response_id is passed to Runner.run(), the Responses API expects tool outputs for every function call in that prior response; missing outputs cause a 400.

Fix

Ensure every tool call in the previous response has a corresponding tool output in the input list before passing previous_response_id. As a diagnostic, omit previous_response_id to confirm the cause. Upgrade past v0.0.14 where this was a known issue.

Source thread →

Part of the Automation Error Index — OpenAI Agents SDK errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem