Repository navigation
[1.x] Group OpenAI tool search's deferred tools in a namespace - #1259
Open
leonardoaugustus wants to merge 1 commit into
Open
leonardoaugustus wants to merge 1 commit into
leonardoaugustus wants to merge 1 commit into
Conversation
OpenAI answers the continuation that carries a deferred tool's result (previous_response_id + function_call_output) with a 500 server_error when the deferred functions are sent loose. Grouped in a namespace, the shape OpenAI's tool search guide recommends, the same request passes. Fixes laravel#1255 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
github-actions Bot
pushed a commit
to pentacore/media-manager
that referenced
this pull request
Nov 24, 2026
## [1.63.2](v1.63.1...v1.63.2) (2026-11-24) ### Bug Fixes * **a11y:** name the template picker, its search boxes and the time window strip ([84ee7bf](84ee7bf)) * **ai:** group OpenAI tool search's deferred tools in a namespace ([cedf4b1](cedf4b1)), closes [laravel/ai#1259](laravel/ai#1259) [laravel/ai#1255](laravel/ai#1255) * **ai:** let a human review override the cascade LLM's second-opinion outcome ([508740f](508740f)) * **chat-templates:** ignore stale list refreshes, double picks and raw network errors ([ae10188](ae10188)) * **chat-templates:** post a saved message's body instead of a ?body= query ([77f9a64](77f9a64))
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.
Fixes #1255.
With
ToolSearchon OpenAI, the request that follows a deferred tool call (previous_response_id+function_call_output) fails with a 500server_error. The first response is fine (tool_search_call,tool_search_output,function_call).The failure depends on how the deferred functions are declared. I sent the same two requests straight to the Responses API (no SDK) on gpt-5.6-luna, gpt-5.4 and gpt-5.4-mini:
tools(current SDK shape),toolsresentnamespace,toolsresentA namespace with 27 functions also passed. The
function_callthe model returns still carries the bare functionname(plus anamespacefield), so tool resolution is unchanged, and replaying afunction_callitem withoutnamespacein a full-history request also passes.This PR wraps each
ToolSearch's deferred tools in anamespace(deferred_tools, thendeferred_tools_2, …), placed before thetool_searchentry, as in OpenAI's tool search guide. Azure keeps the loose shape through agroupsDeferredToolsInNamespace()override, since its client-executed search is not affected and I could not test namespaces there.🤖 Generated with Claude Code