Skip to content

v0.6.2

Choose a tag to compare

@dalehurley dalehurley released this 17 Mar 01:43
· 4 commits to main since this release

Bug Fix

  • 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