Skip to content

ToolOutputImage results silently dropped from tool messages #15

Description

@pauamargant

ToolOutputImage results silently dropped from tool messages (openai-agents ≤0.6.4)

We ran into a subtle bug where tools returning ToolOutputImage appear to succeed but the model never actually sees the image.

We tracked it down to Converter.extract_text_content() in openai_chatcompletions.py, which filters function_call_output content to type == "text" only. Any input_image blocks are silently discarded before the message goes to the API.

We realized that this is an issue of openai-agents version 0.64 and is already fixed upstream in the SDK: openai/openai-agents-python#2214, released in v0.6.5. The fix adds a preserve_tool_output_all_content flag (defaults to True) so image content survives the converter.

The fix on SceneSmith's side would just be bumping the pin:

-"openai-agents>=0.6.4,<0.7",
+"openai-agents>=0.6.5,<0.7",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions