Skip to content

Responses API Error 400 Bad request : Missing mutually exclusive parameters #1930

@sridharvenkat

Description

@sridharvenkat

Please read this first

  • Have you read the docs?Agents SDK docs - Yes
  • Have you searched for related issues? Others may have faced similar issues. - Yes

Describe the bug

The recent upgrade to 0.40. causing errors after function_tool_call processing.

Error code: 400 - {'error': {'message': "Missing mutually exclusive parameters: 'input[17].output[0]'. Ensure you are providing exactly one of: 'file_id' or 'image_url'.", 'type': 'invalid_request_error', 'param': 'input[17].output[0]', 'code': 'missing_mutually_exclusive_parameters'}}

Debug information

  • Agents SDK version: 0.4.0
  • Python version 3.12

Repro steps

We are noticing after the latest upgrade of SDK response api interactions are failing after some function tool calls.
Unsure if the below item in the session is causing issue

{
  "call_id": "call_z1rcE3rHla5uHQmpMwI2im2n",
  "output": [
    {
      "type": "input_image"
    }
  ],
  "type": "function_call_output"
}

Expected behavior

The SDK should not error after function call

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions