Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Responses with metadata set to null currently fail to decode because ResponseModel requires a non-optional dictionary. Web search actions decode into an empty struct, silently discarding their query/queries, and image generation results discard output_format. These fields are present in the official Responses schema.
Make metadata optional and expose the documented web-search action fields (type, query, queries, url and pattern) and image outputFormat. Both full responses and streaming output items use these models. Other required ResponseModel fields remain required, and invalid types in the newly exposed fields remain decoding errors.
Source compatibility: ResponseModel.metadata changes from [String: String] to [String: String]?. Callers that access the dictionary directly must use optional chaining or explicitly fall back to an empty dictionary. An existing test now asserts that a supplied empty dictionary remains empty rather than treating it as null.
Validation:
Schema references:
Fixtures are synthetic and require no credentials. This does not relax parallel_tool_calls, invent defaults for sparse failed responses, or change unknown-tool decoding policy.