Repository navigation
ai@7.0.173
Patch Changes
-
3c09e00: Prevent in-place schema validation or input refinement from changing approved tool arguments during approval replay.
-
f43ee39: fix(workflow): log the default step limit warning when
WorkflowAgent.generate()stops at the default limit. -
7ce7ffc: fix(workflow): log provider warnings in
WorkflowAgentWorkflowAgent.generate()andWorkflowAgent.stream()now log the warnings of every model call through the AI SDK warning logger, likeToolLoopAgent. TheAI_SDK_LOG_WARNINGSglobal controls the output. -
f6809e3: fix(workflow): align the
prepareStepresults ofWorkflowAgentwithToolLoopAgent. Returnedinstructions(or the deprecatedsystem) replace the instructions of the step and carry forward to later steps, returnedproviderOptionsare merged with the agent options, and returnedheadersare merged over the headers of the call. -
2559173: feat(workflow): support
toolApprovalinWorkflowAgentWorkflowAgentaccepts atoolApprovalconfiguration in the constructor and pergenerate()orstream()call. The configuration takes precedence over a tool'sneedsApprovalsetting, and its functions run in workflow context, outside of the durable model steps. Calls that the configuration approves run in the same step, and calls that it denies receive anexecution-deniedtool result without pausing the workflow. -
f1de9cb: feat(workflow): support the
timeoutobject inWorkflowAgentgenerate()andstream()accepttimeout: { totalMs, stepMs, firstChunkMs, chunkMs }in addition to a number.stepMslimits each model call. Instream(),firstChunkMsandchunkMslimit the wait for model output. Invalid timeout values are rejected with anInvalidArgumentError. A timeout now also ends a model step when the provider stream ignores the abort signal. -
Updated dependencies [9baa2d0]
- @ai-sdk/gateway@4.0.146