client icon indicating copy to clipboard operation
client copied to clipboard

feat: Support string|array output in FunctionToolCallOutput

Open gembancud opened this issue 3 months ago • 1 comments

  • Update FunctionToolCallOutput to accept string|array for output parameter
  • This enables returning structured file/image references from function calls
  • Aligns with OpenAI's recent API update for file outputs in tool results
  • No breaking changes: existing string outputs continue to work

What:

  • [x] New Feature

Description:

twitter Openai released support for image and file inputs inside tool call results. This PR aligns with that

gembancud avatar Oct 07 '25 04:10 gembancud

apologies for not including it but the shape should be documented in the openai api reference here

gembancud avatar Oct 07 '25 14:10 gembancud