You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed PausesLoop detection in SDK-resolved tool results: When the Laravel AI SDK resolves tool calls internally (via the Prism gateway), the ReAct loop's ACTION phase is skipped. Previously, only AskHumanSignal was scanned in these SDK-resolved results — PausesLoop signals were missed entirely. This caused both SDK tools (e.g. stamp duty calculator + email composer) to be executed within a single prompt() call, instead of pausing after the first interactive tool.
What Changed
Added scanSdkResolvedToolResults() and scanSdkResolvedToolResultsStream() methods to the ReActLoop trait
These methods scan $response->toolResults for PausesLoop instances, build pause observations with deferred tool context, fire onPause callbacks, and return a LoopResult with the pause signal and deferred tools
Both the sync reactLoop() and streaming reactLoopStream() paths now correctly handle PausesLoop in SDK-resolved results