Feature Request: Support Returning Image and File Outputs from Function Tools
Feature Request: Support Returning Image and File Outputs from Function Tools: a task in LegoFlow-SWE (Harbor dataset). Problem Currently, the Agents SDK only supports returning primitive types ( str , int , float , bool , None ) from functions decorated with @function tool . The tool call output…
The task
**Problem** Currently, the Agents SDK only supports returning primitive types (`str`, `int`, `float`, `bool`, `None`) from functions decorated with `@function_tool`. The tool call output is always cast to a string, which prevents tools from returning visual content (images) or file data to the LLM. The underlying…
Part of Lego-X/LegoFlow-SWE.