Skip to content

fix(example): support multi-step Responses tool streaming#2288

Merged
abetlen merged 2 commits into
mainfrom
fix/example-responses-tool-streaming
Jun 8, 2026
Merged

fix(example): support multi-step Responses tool streaming#2288
abetlen merged 2 commits into
mainfrom
fix/example-responses-tool-streaming

Conversation

@abetlen
Copy link
Copy Markdown
Owner

@abetlen abetlen commented Jun 8, 2026

Fix multi-step Responses tool streaming in the example server.

  • Preserve custom tool format metadata for Responses streaming clients.
  • Ignore unsupported built-in Responses tools when adapting tools for chat templates.
  • Continue schema-derived leading-capture parsing after tool calls.
  • Recover malformed Gemma-style tool argument wrappers before falling back to string arguments.

Validation:

  • python3 -m py_compile examples/server/server.py
  • Gemma 4 MTP server smoke-tested on tirgoviste.local with Codex single-step and multi-step shell tool calls.

@abetlen abetlen merged commit d4ac2c2 into main Jun 8, 2026
15 checks passed
@abetlen abetlen deleted the fix/example-responses-tool-streaming branch June 8, 2026 05:56
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.

1 participant