Patch Changes
-
59fcf30: fix(ai): make experimental_context required in ToolLoopAgentOnFinishCallback
This fixes a type inconsistency where
ToolLoopAgentOnFinishCallbackhadexperimental_contextas optional whileStreamTextOnFinishCallbackandGenerateTextOnFinishCallbackhad it as required. SinceToolLoopAgentdelegates tostreamText/generateText, and both always passexperimental_contextwhen invoking the callback, the types should match.