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
onPause() callback — fires when a tool returns a PausesLoop result, receiving the pause signal, deferred tool names, iteration, and response
LoopResult::$deferredTools — array of tool names the LLM requested but were not executed due to the pause
Pause observation — when the loop pauses, an observation is built and stored in the conversation history, explicitly listing which tools were executed and which were deferred. This ensures the LLM picks up remaining tools when the conversation resumes.
Changed
The onPause callback replaces onLoopComplete when the loop pauses (previously loopComplete fired on pause, now pause fires instead)
CoTResult now includes pauseSignal and deferredTools properties (consistent with LoopResult)
Fixed
When the loop paused after executing an interactive tool (e.g. SDK app), the LLM had no context about deferred tools when the conversation resumed. Now the observation explicitly tells the LLM which tools still need to be called.