Skip to content

fix(openai): retrieve structured output from tool call#572

Merged
mikehostetler merged 2 commits intoagentjido:mainfrom
rverton:main
Mar 27, 2026
Merged

fix(openai): retrieve structured output from tool call#572
mikehostetler merged 2 commits intoagentjido:mainfrom
rverton:main

Conversation

@rverton
Copy link
Copy Markdown
Contributor

@rverton rverton commented Mar 26, 2026

Description

OpenAI GPT models like gpt-5.4-mini will return structured output as a tool call. This fix adds a branch in maybe_extract_object/2 and passes tool_calls to retrieve output from the structured_output tool call.

Type of Change

  • Bug fix (non-breaking change fixing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature causing existing functionality to change)
  • Documentation update

Breaking Changes

Testing

  • Tests pass (mix test)
  • Quality checks pass (mix quality)

Checklist

  • My code follows the project's style guidelines
  • I have updated the documentation accordingly
  • I have added tests that prove my fix/feature works
  • All new and existing tests pass
  • My commits follow conventional commit format
  • I have NOT edited CHANGELOG.md (it is auto-generated by git_ops)

Related Issues

None yet

newer gpt models like gpt-5.4-mini will return structured output as a
tool call. this fix adds a branch to retrieve output from the called
`structured_output` tool call
@mikehostetler mikehostetler added the needs_work Changes requested before merge label Mar 27, 2026
@mikehostetler mikehostetler added ready_to_merge and removed needs_work Changes requested before merge labels Mar 27, 2026
@mikehostetler mikehostetler merged commit 3a301ef into agentjido:main Mar 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants