ai 5.0.0-beta.3 → 5.0.0-beta.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,251 @@
1
1
  # ai
2
2
 
3
+ ## 5.0.0-beta.31
4
+
5
+ ### Patch Changes
6
+
7
+ - 6622441: feat (ai): add static/dynamic toolCalls/toolResults helpers
8
+ - ced8eee: feat(ai): re-export zodSchema from main package
9
+ - cee64b2: fix(otel): change back toolCall attributes of input/output back to args/result for compatibility
10
+ - ee38081: Add support for audio/webm to detect-media-type
11
+ - dd5fd43: feat (ai): support dynamic tools in Chat onToolCall
12
+ - Updated dependencies [dd5fd43]
13
+ - @ai-sdk/provider-utils@3.0.0-beta.8
14
+ - @ai-sdk/gateway@1.0.0-beta.17
15
+
16
+ ## 5.0.0-beta.30
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [fedb55e]
21
+ - @ai-sdk/gateway@1.0.0-beta.16
22
+
23
+ ## 5.0.0-beta.29
24
+
25
+ ### Patch Changes
26
+
27
+ - e7fcc86: feat (ai): introduce dynamic tools
28
+ - d92b9a8: fix(ai): add support for MCP protocol version 2025-06-18
29
+ - Updated dependencies [e7fcc86]
30
+ - @ai-sdk/provider-utils@3.0.0-beta.7
31
+ - @ai-sdk/gateway@1.0.0-beta.15
32
+
33
+ ## 5.0.0-beta.28
34
+
35
+ ### Patch Changes
36
+
37
+ - 84343eb: fix (ui): call sendAutomaticallyWhen with updated messages
38
+ - a753b3a: feat (provider/anthropic): cache control for tools
39
+ - Updated dependencies [ac34802]
40
+ - @ai-sdk/provider-utils@3.0.0-beta.6
41
+ - @ai-sdk/gateway@1.0.0-beta.14
42
+
43
+ ## 5.0.0-beta.27
44
+
45
+ ### Patch Changes
46
+
47
+ - d5ae088: feat (ui): add sendAutomaticallyWhen to Chat
48
+ - Updated dependencies [0477a13]
49
+ - Updated dependencies [cf1e00e]
50
+ - Updated dependencies [cc21603]
51
+ - @ai-sdk/gateway@1.0.0-beta.13
52
+
53
+ ## 5.0.0-beta.26
54
+
55
+ ### Patch Changes
56
+
57
+ - ae77a99: chore (ai): rename text and reasoning chunks in streamText fullstream
58
+ - 1f6ce57: feat (ai): infer tool call types in the `onToolCall` callback
59
+ - 5a975a4: feat (ui): update Chat tool result submission
60
+ - 2a62513: Fix error thrown when emptying messages in onError or onFinish
61
+ - 904fa5e: feat (ai/core): add terminateOnError option to readUIMessageStream
62
+ - f81c720: chore(ai): bundle dependencies in CLI binary
63
+ - Updated dependencies [70ebead]
64
+ - @ai-sdk/gateway@1.0.0-beta.12
65
+
66
+ ## 5.0.0-beta.25
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [8bd3624]
71
+ - Updated dependencies [e001ea1]
72
+ - @ai-sdk/gateway@1.0.0-beta.11
73
+
74
+ ## 5.0.0-beta.24
75
+
76
+ ### Patch Changes
77
+
78
+ - add5ac1: feat (ai): make streamText toUIMessageStream async iterable
79
+ - ff1c81a: feat (ai): add streamText onAbort callback
80
+ - e4c8647: feat (ui): allow asynchronous onFinish in createUIMessageStream
81
+ - 383cbfa: feat (ai): add isAborted to onFinish callback for ui message streams
82
+ - Updated dependencies [57edfcb]
83
+ - Updated dependencies [383cbfa]
84
+ - @ai-sdk/provider-utils@3.0.0-beta.5
85
+ - @ai-sdk/gateway@1.0.0-beta.10
86
+
87
+ ## 5.0.0-beta.23
88
+
89
+ ### Patch Changes
90
+
91
+ - 89ba235: fix (ui): support tool names with dash
92
+
93
+ ## 5.0.0-beta.22
94
+
95
+ ### Patch Changes
96
+
97
+ - de2d2ab: feat(ai): add provider and provider registry middleware functionality
98
+ - 6c42e56: feat (ai): validate ui stream data chunks
99
+ - c93a8bc: chore(ai): export AsyncIterableStream type from async-iterable-stream module
100
+ - 20398f2: feat: ai sdk cli documentation + adjusted default model
101
+ - 86293e5: fix (ai): use correct generateMessageId in streamText toUIMessageStream
102
+ - 205077b: fix: improve Zod compatibility
103
+ - Updated dependencies [205077b]
104
+ - @ai-sdk/provider-utils@3.0.0-beta.4
105
+ - @ai-sdk/gateway@1.0.0-beta.9
106
+
107
+ ## 5.0.0-beta.21
108
+
109
+ ### Patch Changes
110
+
111
+ - 38ae5cc: feat (ai): export InferUIMessageChunk type
112
+ - faea29f: fix (provider/openai): multi-step reasoning with text
113
+ - 90ac328: fix (ui): tool part metadata support in ui messages
114
+ - 4a1e0c8: fix(ai-cli): fix bundling and improve authentication error handling
115
+ - 30ac566: fix (ui): text message metadata support in ui messages
116
+
117
+ ## 5.0.0-beta.20
118
+
119
+ ### Patch Changes
120
+
121
+ - 4c8f834: feat: automatically respect rate limit headers in retry logic
122
+
123
+ Added automatic support for respecting rate limit headers (`retry-after-ms` and `retry-after`) in the SDK's retry logic. When these headers are present and contain reasonable values (0-60 seconds), the retry mechanism will use the server-specified delay instead of exponential backoff. This matches the behavior of Anthropic and OpenAI client SDKs and improves rate limit handling without requiring any API changes.
124
+
125
+ ## 5.0.0-beta.19
126
+
127
+ ### Patch Changes
128
+
129
+ - 10b21eb: feat(cli): add ai command line interface
130
+ - 75c3396: fix (ai): handle errors in 2nd streamText doStream call
131
+ - 05d2819: feat: allow zod 4.x as peer dependency
132
+ - db64cbe: fix (provider/openai): multi-step reasoning with tool calls
133
+ - Updated dependencies [05d2819]
134
+ - @ai-sdk/provider-utils@3.0.0-beta.3
135
+ - @ai-sdk/gateway@1.0.0-beta.8
136
+
137
+ ## 5.0.0-beta.18
138
+
139
+ ### Patch Changes
140
+
141
+ - d3960e3: selectTelemetryAttributes more robustness
142
+ - 9338f3e: fix (ai): throw error for v1 models
143
+
144
+ ## 5.0.0-beta.17
145
+
146
+ ### Patch Changes
147
+
148
+ - Updated dependencies [c190907]
149
+ - @ai-sdk/gateway@1.0.0-beta.7
150
+
151
+ ## 5.0.0-beta.16
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies [9e16bfd]
156
+ - @ai-sdk/gateway@1.0.0-beta.6
157
+
158
+ ## 5.0.0-beta.15
159
+
160
+ ### Patch Changes
161
+
162
+ - 8e31d46: feat (ai): export SourceDocumentUIPart
163
+
164
+ ## 5.0.0-beta.14
165
+
166
+ ### Patch Changes
167
+
168
+ - Updated dependencies [30ab1de]
169
+ - @ai-sdk/gateway@1.0.0-beta.5
170
+
171
+ ## 5.0.0-beta.13
172
+
173
+ ### Patch Changes
174
+
175
+ - 377bbcf: fix (ui): tool input can be undefined during input-streaming
176
+ - ce1d1f3: feat (ai): export mock image, speech, and transcription models
177
+ - c040e2f: fix (ui): inject generated response message id
178
+ - c808e4d: fix (ui): do not send changing assistant message ids when onFinish is provided
179
+
180
+ ## 5.0.0-beta.12
181
+
182
+ ### Patch Changes
183
+
184
+ - fc0380b: feat (ui): resolvable header, body, credentials in http chat transport
185
+ - 51f497d: feat (ai): step input message modification in prepareStep
186
+ - 4f3776c: feat (ai): add InferUITools helper
187
+
188
+ ## 5.0.0-beta.11
189
+
190
+ ### Patch Changes
191
+
192
+ - 9e40cbe: Allow destructuring output and errorText on `ToolUIPart` type
193
+
194
+ ## 5.0.0-beta.10
195
+
196
+ ### Major Changes
197
+
198
+ - 2b637d6: chore (ai): rename UIMessageStreamPart to UIMessageChunk
199
+
200
+ ### Patch Changes
201
+
202
+ - 16ccfb2: feat (ai): add readUIMessageStream helper
203
+ - 90ca2b9: feat(ai): Record tool call errors on tool call spans recorded in `generateText` and `streamText`.
204
+ - af1d5a5: fix(ai): Unexpected reasoning-start event in extract reasoning middleware
205
+
206
+ ## 5.0.0-beta.9
207
+
208
+ ### Patch Changes
209
+
210
+ - 86cfc72: feat (ai): add ignoreIncompleteToolCalls option to convertToModelMessages
211
+
212
+ ## 5.0.0-beta.8
213
+
214
+ ### Patch Changes
215
+
216
+ - 6909543: feat (ai): support system parameter in Agent constructor
217
+ - c8fce91: feat (ai): add experimental Agent abstraction
218
+ - 9121250: Expose provider metadata as an attribute on exported OTEL spans
219
+ - Updated dependencies [97fedf9]
220
+ - @ai-sdk/gateway@1.0.0-beta.4
221
+
222
+ ## 5.0.0-beta.7
223
+
224
+ ### Patch Changes
225
+
226
+ - 60132dd: fixed date formatting for updated mcp protocol version
227
+
228
+ ## 5.0.0-beta.6
229
+
230
+ ### Patch Changes
231
+
232
+ - 143c55b: feat (ai): export Chat callback types
233
+ - f04ffe4: feat (ui): add onData callback to Chat
234
+ - 97c35c0: feat (ui): transient data parts
235
+ - fccf75c: update mcp protocol version
236
+
237
+ ## 5.0.0-beta.5
238
+
239
+ ### Patch Changes
240
+
241
+ - 4f3e637: fix (ui): avoid caching globalThis.fetch in case it is patched by other libraries
242
+
243
+ ## 5.0.0-beta.4
244
+
245
+ ### Patch Changes
246
+
247
+ - 09f41ac: fix (ui): add message metadata in Chat.sendMessage
248
+
3
249
  ## 5.0.0-beta.3
4
250
 
5
251
  ### Patch Changes