Patch Changes
-
0a5d0e7: Fix
toolChoice: 'none'by forwarding it to the Hugging Face Responses API and rejecting tool calls before local execution ingenerateText,streamText, andWorkflowAgent. Streamed tool parts are withheld so client-side tools cannot act on them, andrepairToolCallandexperimental_refineToolInputare not invoked for rejected tool calls. -
10026d1: Add the
interruptedfinish reason for provider streams that end without a completion signal. Preserve partial output without introducing an error solely for interruption, and stop tool execution, agent continuation, and automatic UI follow-ups for interrupted responses, including late tool results and approvals. Provider detection and emission will be added separately.Compatibility notice: Adding
interruptedto the public finish-reason types can break type checking after upgrading, even though this is a patch release. Exhaustive switches (for example, using anassertNeverfallback) and mappings such asRecord<FinishReason, string>must handle the new value. Update any custom validation or application logic that assumes the existing set of finish reasons is exhaustive.When providers begin emitting
interrupted, a stream ending without a completion signal will preserve partial output and report this finish reason without emitting an error solely for the interruption. Applications that need to detect incomplete responses should checkfinishReason === 'interrupted'as well as their existing error handling. -
08335ae: Retain custom content parts (e.g.
openai.compaction) inWorkflowAgent.stream()step results and subsequent model requests -
Updated dependencies [1727442]
-
Updated dependencies [0a5d0e7]
-
Updated dependencies [10026d1]
- ai@7.0.149
- @ai-sdk/provider@4.0.32
- @ai-sdk/provider-utils@5.0.66