---
type: email
from: Harish Raju <notifications@github.com>
subject: Re: [openai/openai-agents-python] How do I handle image outputs from

 tools and feed it back to the LLM during an agent run? (Issue #1553)
received: 2026-03-05 10:14:25
date_header: Thu, 21 Aug 2025 23:50:43 -0700
priority: normal
status: awaiting_approval
uid: 28368
---

## Email Content

**From:** Harish Raju <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] How do I handle image outputs from

 tools and feed it back to the LLM during an agent run? (Issue #1553)
**Date:** Thu, 21 Aug 2025 23:50:43 -0700

### Body (preview)

probably-harish left a comment (openai/openai-agents-python#1553)



[Relevant class method from agents/items.py](https://github.com/openai/openai-agents-python/blob/36fa8f3e6324df11280f7156b1d105a25dfc718a/src/agents/items.py#L299C2-L308C10)



[Tool call output item returned inside `run` implementation](https://github.com/openai/openai-agents-python/blob/36fa8f3e6324df11280f7156b1d105a25dfc718a/src/agents/_run_impl.py#L598C1-L610C10)



```

        return [

            FunctionToolResult(

                tool=tool_run.function_tool,

                output=result,

                run_item=ToolCallOutputItem(

                    output=result,

                    raw_item=ItemHelpers.tool_call_output_item(tool_run.tool_call, str(result)),

                    agent=agent,

                ),

            )

            for tool_run, result in zip(tool_runs, results)

        ]

```



The type annotation for tool output is `Any` but seems like only objects on which str() can be applied are accepted? 



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/issues/1553#issuecomment-3213249540

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/issues/1553/3213249540@github.com>

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
