ai 5.0.0-alpha.9 → 5.0.0-beta.10
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 +212 -0
- package/dist/index.d.mts +2472 -3333
- package/dist/index.d.ts +2472 -3333
- package/dist/index.js +7620 -7018
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7631 -7019
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +3 -306
- package/dist/internal/index.d.ts +3 -306
- package/dist/internal/index.js +125 -95
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +112 -80
- package/dist/internal/index.mjs.map +1 -1
- package/dist/mcp-stdio/index.d.mts +16 -96
- package/dist/mcp-stdio/index.d.ts +16 -96
- package/dist/mcp-stdio/index.js +71 -71
- package/dist/mcp-stdio/index.js.map +1 -1
- package/dist/mcp-stdio/index.mjs +2 -2
- package/dist/mcp-stdio/index.mjs.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,217 @@
|
|
1
1
|
# ai
|
2
2
|
|
3
|
+
## 5.0.0-beta.10
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- 2b637d6: chore (ai): rename UIMessageStreamPart to UIMessageChunk
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- 16ccfb2: feat (ai): add readUIMessageStream helper
|
12
|
+
- 90ca2b9: feat(ai): Record tool call errors on tool call spans recorded in `generateText` and `streamText`.
|
13
|
+
- af1d5a5: fix(ai): Unexpected reasoning-start event in extract reasoning middleware
|
14
|
+
|
15
|
+
## 5.0.0-beta.9
|
16
|
+
|
17
|
+
### Patch Changes
|
18
|
+
|
19
|
+
- 86cfc72: feat (ai): add ignoreIncompleteToolCalls option to convertToModelMessages
|
20
|
+
|
21
|
+
## 5.0.0-beta.8
|
22
|
+
|
23
|
+
### Patch Changes
|
24
|
+
|
25
|
+
- 6909543: feat (ai): support system parameter in Agent constructor
|
26
|
+
- c8fce91: feat (ai): add experimental Agent abstraction
|
27
|
+
- 9121250: Expose provider metadata as an attribute on exported OTEL spans
|
28
|
+
- Updated dependencies [97fedf9]
|
29
|
+
- @ai-sdk/gateway@1.0.0-beta.4
|
30
|
+
|
31
|
+
## 5.0.0-beta.7
|
32
|
+
|
33
|
+
### Patch Changes
|
34
|
+
|
35
|
+
- 60132dd: fixed date formatting for updated mcp protocol version
|
36
|
+
|
37
|
+
## 5.0.0-beta.6
|
38
|
+
|
39
|
+
### Patch Changes
|
40
|
+
|
41
|
+
- 143c55b: feat (ai): export Chat callback types
|
42
|
+
- f04ffe4: feat (ui): add onData callback to Chat
|
43
|
+
- 97c35c0: feat (ui): transient data parts
|
44
|
+
- fccf75c: update mcp protocol version
|
45
|
+
|
46
|
+
## 5.0.0-beta.5
|
47
|
+
|
48
|
+
### Patch Changes
|
49
|
+
|
50
|
+
- 4f3e637: fix (ui): avoid caching globalThis.fetch in case it is patched by other libraries
|
51
|
+
|
52
|
+
## 5.0.0-beta.4
|
53
|
+
|
54
|
+
### Patch Changes
|
55
|
+
|
56
|
+
- 09f41ac: fix (ui): add message metadata in Chat.sendMessage
|
57
|
+
|
58
|
+
## 5.0.0-beta.3
|
59
|
+
|
60
|
+
### Patch Changes
|
61
|
+
|
62
|
+
- Updated dependencies [f3639fa]
|
63
|
+
- Updated dependencies [d454e4b]
|
64
|
+
- @ai-sdk/gateway@1.0.0-beta.3
|
65
|
+
|
66
|
+
## 5.0.0-beta.2
|
67
|
+
|
68
|
+
### Patch Changes
|
69
|
+
|
70
|
+
- 0d9583c: fix (ai): use user-provided media type when available
|
71
|
+
- c6b64a7: feat (ai): allow async prepareRequest on HttpChatTransport
|
72
|
+
- cb3b9c9: fix (ai): catch errors in ui message stream
|
73
|
+
- d1a034f: feature: using Zod 4 for internal stuff
|
74
|
+
- Updated dependencies [0571b98]
|
75
|
+
- Updated dependencies [c91586a]
|
76
|
+
- Updated dependencies [39a4fab]
|
77
|
+
- Updated dependencies [d1a034f]
|
78
|
+
- @ai-sdk/provider-utils@3.0.0-beta.2
|
79
|
+
- @ai-sdk/gateway@1.0.0-beta.2
|
80
|
+
|
81
|
+
## 5.0.0-beta.1
|
82
|
+
|
83
|
+
### Major Changes
|
84
|
+
|
85
|
+
- 9ad0484: feat (ai): automatic tool execution error handling
|
86
|
+
|
87
|
+
### Patch Changes
|
88
|
+
|
89
|
+
- d88455d: feat (ai): expose http chat transport type
|
90
|
+
- 4048ce3: fix (ai): add tests and examples for openai responses
|
91
|
+
- f2b041e: Fix custom `fetch` in HttpChatTransport
|
92
|
+
- cb68df0: feat: add transcription and speech model support to provider registry
|
93
|
+
- 26695a3: feat (ui): add state for text and reasoning ui message parts
|
94
|
+
- e7d2ce3: feat: provider-executed tools
|
95
|
+
- 102b066: fix (ai): fix invalid fetch call
|
96
|
+
- e862b5b: feat (ai): allow sync tool.execute
|
97
|
+
- 7bd025b: fix (ai): fix sync tool execute with streamText
|
98
|
+
- Updated dependencies [742b7be]
|
99
|
+
- Updated dependencies [7cddb72]
|
100
|
+
- Updated dependencies [ccce59b]
|
101
|
+
- Updated dependencies [e2b9e4b]
|
102
|
+
- Updated dependencies [45c1ea2]
|
103
|
+
- Updated dependencies [e025824]
|
104
|
+
- Updated dependencies [0d06df6]
|
105
|
+
- Updated dependencies [472524a]
|
106
|
+
- Updated dependencies [dd3ff01]
|
107
|
+
- Updated dependencies [7435eb5]
|
108
|
+
- Updated dependencies [cb68df0]
|
109
|
+
- Updated dependencies [bfdca8d]
|
110
|
+
- Updated dependencies [f77bc38]
|
111
|
+
- Updated dependencies [44f4aba]
|
112
|
+
- Updated dependencies [023ba40]
|
113
|
+
- Updated dependencies [5e57fae]
|
114
|
+
- Updated dependencies [71f938d]
|
115
|
+
- Updated dependencies [28a5ed5]
|
116
|
+
- @ai-sdk/provider@2.0.0-beta.1
|
117
|
+
- @ai-sdk/provider-utils@3.0.0-beta.1
|
118
|
+
- @ai-sdk/gateway@1.0.0-beta.1
|
119
|
+
|
120
|
+
## 5.0.0-alpha.15
|
121
|
+
|
122
|
+
### Major Changes
|
123
|
+
|
124
|
+
- 04d5063: chore (ai): rename default provider global to AI_SDK_DEFAULT_PROVIDER
|
125
|
+
- b4b4bb2: chore (ui): rename experimental_resume to resumeStream
|
126
|
+
- d884051: feat (ai): simplify default provider setup
|
127
|
+
- 954aa73: feat (ui): extended regenerate support
|
128
|
+
- 60e2c56: feat (ai): restructure chat transports
|
129
|
+
|
130
|
+
### Patch Changes
|
131
|
+
|
132
|
+
- b1e3abd: feat (ai): expose ui message stream headers
|
133
|
+
- 142576e: feat (ui): support message replacement in chat via messageId param on sendMessage
|
134
|
+
- 395c85e: feat (ai): add consumeSseStream option to UI message stream responses
|
135
|
+
- Updated dependencies [48d257a]
|
136
|
+
- Updated dependencies [8ba77a7]
|
137
|
+
- Updated dependencies [c145d62]
|
138
|
+
- @ai-sdk/provider@2.0.0-alpha.15
|
139
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.15
|
140
|
+
- @ai-sdk/gateway@1.0.0-alpha.15
|
141
|
+
|
142
|
+
## 5.0.0-alpha.14
|
143
|
+
|
144
|
+
### Major Changes
|
145
|
+
|
146
|
+
- 63f9e9b: chore (provider,ai): tools have input/output instead of args,result
|
147
|
+
|
148
|
+
### Patch Changes
|
149
|
+
|
150
|
+
- Updated dependencies [b5da06a]
|
151
|
+
- Updated dependencies [63f9e9b]
|
152
|
+
- Updated dependencies [2e13791]
|
153
|
+
- @ai-sdk/provider@2.0.0-alpha.14
|
154
|
+
- @ai-sdk/gateway@1.0.0-alpha.14
|
155
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.14
|
156
|
+
|
157
|
+
## 5.0.0-alpha.13
|
158
|
+
|
159
|
+
### Major Changes
|
160
|
+
|
161
|
+
- 0a710d8: feat (ui): typed tool parts in ui messages
|
162
|
+
- 6a83f7d: refactoring (ai): restructure message metadata transfer
|
163
|
+
- 1f55c21: chore (ai): send reasoning to the client by default
|
164
|
+
- 33eb499: feat (ai): inject message id in createUIMessageStream
|
165
|
+
- 901df02: feat (ui): use UI_MESSAGE generic
|
166
|
+
|
167
|
+
### Patch Changes
|
168
|
+
|
169
|
+
- Updated dependencies [68ecf2f]
|
170
|
+
- @ai-sdk/provider@2.0.0-alpha.13
|
171
|
+
- @ai-sdk/gateway@1.0.0-alpha.13
|
172
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.13
|
173
|
+
|
174
|
+
## 5.0.0-alpha.12
|
175
|
+
|
176
|
+
### Major Changes
|
177
|
+
|
178
|
+
- 4892798: chore (ai): always stream tool calls
|
179
|
+
|
180
|
+
### Patch Changes
|
181
|
+
|
182
|
+
- da1e6f0: feat (ui): add generics to ui message stream parts
|
183
|
+
- Updated dependencies [e2aceaf]
|
184
|
+
- @ai-sdk/gateway@1.0.0-alpha.12
|
185
|
+
- @ai-sdk/provider@2.0.0-alpha.12
|
186
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.12
|
187
|
+
|
188
|
+
## 5.0.0-alpha.11
|
189
|
+
|
190
|
+
### Major Changes
|
191
|
+
|
192
|
+
- e8324c5: feat (ai): add args callbacks to tools
|
193
|
+
|
194
|
+
### Patch Changes
|
195
|
+
|
196
|
+
- Updated dependencies [c1e6647]
|
197
|
+
- @ai-sdk/provider@2.0.0-alpha.11
|
198
|
+
- @ai-sdk/gateway@1.0.0-alpha.11
|
199
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.11
|
200
|
+
|
201
|
+
## 5.0.0-alpha.10
|
202
|
+
|
203
|
+
### Major Changes
|
204
|
+
|
205
|
+
- 98f25e5: chore (ui): remove managed chat inputs
|
206
|
+
- 7bb58d4: chore (ai): restructure prepareRequest
|
207
|
+
|
208
|
+
### Patch Changes
|
209
|
+
|
210
|
+
- Updated dependencies [c4df419]
|
211
|
+
- @ai-sdk/provider@2.0.0-alpha.10
|
212
|
+
- @ai-sdk/gateway@1.0.0-alpha.10
|
213
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.10
|
214
|
+
|
3
215
|
## 5.0.0-alpha.9
|
4
216
|
|
5
217
|
### Major Changes
|