Skip to content

add FileContent and ToolOutput#5087

Draft
tinalenguyen wants to merge 1 commit intomainfrom
tina/support-image-content-tool-output
Draft

add FileContent and ToolOutput#5087
tinalenguyen wants to merge 1 commit intomainfrom
tina/support-image-content-tool-output

Conversation

@tinalenguyen
Copy link
Member

add more depth to function tool outputs, allowing for ImageContent and FileContent to be passed along with strings

@tinalenguyen tinalenguyen linked an issue Mar 11, 2026 that may be closed by this pull request
name: str = Field(default="")
call_id: str
output: str
output: ToolOutput
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't this just be?
ToolOutput = ImageContent | FileContent | str

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if users wanted to pass multiple items from a function tool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: support ImageContent in tool return value

2 participants