github vercel/ai ai@7.0.173

latest releases: @ai-sdk/vue@3.0.332, @ai-sdk/svelte@4.0.332, @ai-sdk/rsc@2.0.332...
2 hours ago

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 WorkflowAgent

    WorkflowAgent.generate() and WorkflowAgent.stream() now log the warnings of every model call through the AI SDK warning logger, like ToolLoopAgent. The AI_SDK_LOG_WARNINGS global controls the output.

  • f6809e3: fix(workflow): align the prepareStep results of WorkflowAgent with ToolLoopAgent. Returned instructions (or the deprecated system) replace the instructions of the step and carry forward to later steps, returned providerOptions are merged with the agent options, and returned headers are merged over the headers of the call.

  • 2559173: feat(workflow): support toolApproval in WorkflowAgent

    WorkflowAgent accepts a toolApproval configuration in the constructor and per generate() or stream() call. The configuration takes precedence over a tool's needsApproval setting, 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 an execution-denied tool result without pausing the workflow.

  • f1de9cb: feat(workflow): support the timeout object in WorkflowAgent

    generate() and stream() accept timeout: { totalMs, stepMs, firstChunkMs, chunkMs } in addition to a number. stepMs limits each model call. In stream(), firstChunkMs and chunkMs limit the wait for model output. Invalid timeout values are rejected with an InvalidArgumentError. 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

Don't miss a new ai release

NewReleases is sending notifications on new releases.