@rpcbase/agents-sdk 0.11.0 → 0.13.0

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.
Files changed (199) hide show
  1. package/dist/agents-sdk.css +1 -1
  2. package/dist/api/apiErrors.d.ts.map +1 -1
  3. package/dist/api/chat/handler.d.ts +1 -1
  4. package/dist/api/chat/handler.d.ts.map +1 -1
  5. package/dist/api/chat/historyCompaction.d.ts.map +1 -1
  6. package/dist/api/chat/messages/handler.d.ts +1 -1
  7. package/dist/api/chat/messages/handler.d.ts.map +1 -1
  8. package/dist/api/chat/messages/trailing/handler.d.ts +1 -1
  9. package/dist/api/chat/messages/trailing/handler.d.ts.map +1 -1
  10. package/dist/api/chat/models.d.ts +2 -2
  11. package/dist/api/chat/models.d.ts.map +1 -1
  12. package/dist/api/chat/prompts.d.ts.map +1 -1
  13. package/dist/api/chat/resumableSse.d.ts.map +1 -1
  14. package/dist/api/chat/runtimeConfig.d.ts +68 -0
  15. package/dist/api/chat/runtimeConfig.d.ts.map +1 -1
  16. package/dist/api/chat/stream/handler.d.ts +1 -1
  17. package/dist/api/chat/stream/handler.d.ts.map +1 -1
  18. package/dist/api/chat/titles.d.ts.map +1 -1
  19. package/dist/api/chat/toolApproval.d.ts +35 -0
  20. package/dist/api/chat/toolApproval.d.ts.map +1 -0
  21. package/dist/api/chat/toolRouting.d.ts.map +1 -1
  22. package/dist/api/chat/tools.d.ts +110 -110
  23. package/dist/api/chat/tools.d.ts.map +1 -1
  24. package/dist/api/chatCtx.d.ts.map +1 -1
  25. package/dist/api/chatDb.d.ts +1 -1
  26. package/dist/api/chatDb.d.ts.map +1 -1
  27. package/dist/api/chatStore.d.ts.map +1 -1
  28. package/dist/api/document/handler.d.ts +1 -1
  29. package/dist/api/document/handler.d.ts.map +1 -1
  30. package/dist/api/history/handler.d.ts +1 -1
  31. package/dist/api/history/handler.d.ts.map +1 -1
  32. package/dist/api/ping/handler.d.ts +1 -1
  33. package/dist/api/ping/handler.d.ts.map +1 -1
  34. package/dist/api/session/current/handler.d.ts +1 -1
  35. package/dist/api/session/current/handler.d.ts.map +1 -1
  36. package/dist/api/session/tenant/handler.d.ts +1 -1
  37. package/dist/api/session/tenant/handler.d.ts.map +1 -1
  38. package/dist/api/stream-test/handler.d.ts +1 -1
  39. package/dist/api/stream-test/handler.d.ts.map +1 -1
  40. package/dist/api/suggestions/handler.d.ts +1 -1
  41. package/dist/api/suggestions/handler.d.ts.map +1 -1
  42. package/dist/api/test/reset/handler.d.ts +1 -1
  43. package/dist/api/test/reset/handler.d.ts.map +1 -1
  44. package/dist/api/upload/handler.d.ts +1 -1
  45. package/dist/api/upload/handler.d.ts.map +1 -1
  46. package/dist/api/vote/handler.d.ts +1 -1
  47. package/dist/api/vote/handler.d.ts.map +1 -1
  48. package/dist/chat-models.browser.js +1 -1
  49. package/dist/chat-models.js +1 -1
  50. package/dist/chatDb-CJCdqpjR.js +280 -0
  51. package/dist/chatDb-DLQOzat8.js +280 -0
  52. package/dist/client-routes.browser.js +2 -2
  53. package/dist/client-routes.d.ts.map +1 -1
  54. package/dist/client-routes.js +2 -2
  55. package/dist/components/AppErrorExtra.d.ts.map +1 -1
  56. package/dist/components/ai-elements/artifact.d.ts.map +1 -1
  57. package/dist/components/ai-elements/canvas.d.ts.map +1 -1
  58. package/dist/components/ai-elements/checkpoint.d.ts +1 -1
  59. package/dist/components/ai-elements/checkpoint.d.ts.map +1 -1
  60. package/dist/components/ai-elements/code-block.d.ts.map +1 -1
  61. package/dist/components/ai-elements/confirmation.d.ts.map +1 -1
  62. package/dist/components/ai-elements/controls.d.ts.map +1 -1
  63. package/dist/components/ai-elements/conversation.d.ts.map +1 -1
  64. package/dist/components/ai-elements/edge.d.ts +5 -2
  65. package/dist/components/ai-elements/edge.d.ts.map +1 -1
  66. package/dist/components/ai-elements/image.d.ts.map +1 -1
  67. package/dist/components/ai-elements/inline-citation.d.ts.map +1 -1
  68. package/dist/components/ai-elements/loader.d.ts.map +1 -1
  69. package/dist/components/ai-elements/message.d.ts.map +1 -1
  70. package/dist/components/ai-elements/model-selector.d.ts +3 -2
  71. package/dist/components/ai-elements/model-selector.d.ts.map +1 -1
  72. package/dist/components/ai-elements/node.d.ts.map +1 -1
  73. package/dist/components/ai-elements/open-in-chat.d.ts.map +1 -1
  74. package/dist/components/ai-elements/panel.d.ts.map +1 -1
  75. package/dist/components/ai-elements/plan.d.ts.map +1 -1
  76. package/dist/components/ai-elements/prompt-input.d.ts.map +1 -1
  77. package/dist/components/ai-elements/queue.d.ts.map +1 -1
  78. package/dist/components/ai-elements/shimmer.d.ts +3 -1
  79. package/dist/components/ai-elements/shimmer.d.ts.map +1 -1
  80. package/dist/components/ai-elements/sources.d.ts.map +1 -1
  81. package/dist/components/ai-elements/suggestion.d.ts.map +1 -1
  82. package/dist/components/ai-elements/task.d.ts.map +1 -1
  83. package/dist/components/ai-elements/tool.d.ts +6 -2
  84. package/dist/components/ai-elements/tool.d.ts.map +1 -1
  85. package/dist/components/ai-elements/toolbar.d.ts.map +1 -1
  86. package/dist/components/ai-elements/web-preview.d.ts.map +1 -1
  87. package/dist/components/artifact.d.ts +4 -4
  88. package/dist/components/artifact.d.ts.map +1 -1
  89. package/dist/components/chat.d.ts.map +1 -1
  90. package/dist/components/create-artifact.d.ts.map +1 -1
  91. package/dist/components/data-stream-provider.d.ts +3 -1
  92. package/dist/components/data-stream-provider.d.ts.map +1 -1
  93. package/dist/components/diffview.d.ts.map +1 -1
  94. package/dist/components/document-skeleton.d.ts.map +1 -1
  95. package/dist/components/elements/actions.d.ts.map +1 -1
  96. package/dist/components/elements/branch.d.ts.map +1 -1
  97. package/dist/components/elements/code-block.d.ts.map +1 -1
  98. package/dist/components/elements/conversation.d.ts.map +1 -1
  99. package/dist/components/elements/image.d.ts.map +1 -1
  100. package/dist/components/elements/inline-citation.d.ts.map +1 -1
  101. package/dist/components/elements/loader.d.ts.map +1 -1
  102. package/dist/components/elements/message.d.ts.map +1 -1
  103. package/dist/components/elements/prompt-input.d.ts.map +1 -1
  104. package/dist/components/elements/response.d.ts +4 -4
  105. package/dist/components/elements/response.d.ts.map +1 -1
  106. package/dist/components/elements/source.d.ts.map +1 -1
  107. package/dist/components/elements/suggestion.d.ts.map +1 -1
  108. package/dist/components/elements/task.d.ts.map +1 -1
  109. package/dist/components/elements/tool.d.ts.map +1 -1
  110. package/dist/components/elements/web-preview.d.ts.map +1 -1
  111. package/dist/components/greeting.d.ts.map +1 -1
  112. package/dist/components/icons.d.ts.map +1 -1
  113. package/dist/components/message.d.ts +2 -3
  114. package/dist/components/message.d.ts.map +1 -1
  115. package/dist/components/messages.d.ts.map +1 -1
  116. package/dist/components/preview-attachment.d.ts.map +1 -1
  117. package/dist/components/sheet-editor.d.ts +2 -1
  118. package/dist/components/sheet-editor.d.ts.map +1 -1
  119. package/dist/components/sidebar-history-item.d.ts +3 -1
  120. package/dist/components/sidebar-history-item.d.ts.map +1 -1
  121. package/dist/components/suggestion.d.ts.map +1 -1
  122. package/dist/components/toolbar.d.ts +4 -2
  123. package/dist/components/toolbar.d.ts.map +1 -1
  124. package/dist/components/ui/alert-dialog.d.ts +13 -13
  125. package/dist/components/ui/alert-dialog.d.ts.map +1 -1
  126. package/dist/components/ui/button.d.ts +2 -2
  127. package/dist/components/ui/command.d.ts +6 -5
  128. package/dist/components/ui/command.d.ts.map +1 -1
  129. package/dist/components/ui/dialog.d.ts +13 -13
  130. package/dist/components/ui/dialog.d.ts.map +1 -1
  131. package/dist/components/ui/dropdown-menu.d.ts +10 -10
  132. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  133. package/dist/components/ui/hover-card.d.ts.map +1 -1
  134. package/dist/components/ui/input-group.d.ts +2 -2
  135. package/dist/components/ui/sheet.d.ts +13 -13
  136. package/dist/components/ui/sheet.d.ts.map +1 -1
  137. package/dist/components/ui/sidebar.d.ts +1 -1
  138. package/dist/components/ui/tooltip.d.ts.map +1 -1
  139. package/dist/components/version-footer.d.ts.map +1 -1
  140. package/dist/{data-stream-handler-DZVidaYF.js → data-stream-handler-Bc_AaWm-.js} +11996 -11800
  141. package/dist/{data-stream-handler-92yP7o7h.js → data-stream-handler-CF9RENIU.js} +11996 -11800
  142. package/dist/{handler-CqHZvSDn.js → handler-BMF6eWg5.js} +1 -1
  143. package/dist/{handler-CyIhnwWt.js → handler-BTWWHJUs.js} +1 -1
  144. package/dist/{handler-BSHosw1_.js → handler-C-CFaSnD.js} +1 -1
  145. package/dist/{handler-4jQU-pKI.js → handler-C34eWXJg.js} +1 -1
  146. package/dist/{handler-DQ839WRs.js → handler-CG2GBD33.js} +1 -1
  147. package/dist/{handler-C5WZxe_K.js → handler-Cl7-HRxy.js} +1 -1
  148. package/dist/{handler-9ImzUQo6.js → handler-CwoR5Bdv.js} +1 -1
  149. package/dist/{handler-Eqi6AW3u.js → handler-D003Oipd.js} +1 -1
  150. package/dist/{handler-DY6vJrcD.js → handler-D88wEmsv.js} +1 -1
  151. package/dist/{handler-BS72H0IN.js → handler-DBuF7L41.js} +1 -1
  152. package/dist/{handler-CVaKWKR-.js → handler-DOtL2C2i.js} +1 -1
  153. package/dist/{handler-DSmQKLdK.js → handler-DilZY3o3.js} +1 -1
  154. package/dist/{handler-hnEIUYCb.js → handler-DiyNUz4m.js} +1 -1
  155. package/dist/handler-Dmt7P8bu.js +1807 -0
  156. package/dist/{handler-CBFBehn3.js → handler-DnkxwQzf.js} +1 -1
  157. package/dist/handler-M3DwIezB.js +1801 -0
  158. package/dist/hooks/use-chat-documents.d.ts +2 -2
  159. package/dist/hooks/use-chat-votes.d.ts +2 -2
  160. package/dist/index.browser.js +2 -2
  161. package/dist/index.js +2 -2
  162. package/dist/lib/ai/models.d.ts +1 -1
  163. package/dist/lib/ai/models.d.ts.map +1 -1
  164. package/dist/lib/ai/openai-reasoning.d.ts +2 -2
  165. package/dist/lib/ai/openai-reasoning.d.ts.map +1 -1
  166. package/dist/lib/chat-streaming.d.ts.map +1 -1
  167. package/dist/lib/db/schema.d.ts +1 -1
  168. package/dist/lib/db/schema.d.ts.map +1 -1
  169. package/dist/lib/editor/config.d.ts.map +1 -1
  170. package/dist/lib/editor/functions.d.ts.map +1 -1
  171. package/dist/lib/editor/react-renderer.d.ts.map +1 -1
  172. package/dist/lib/errors.d.ts.map +1 -1
  173. package/dist/lib/message-visibility.d.ts +15 -0
  174. package/dist/lib/message-visibility.d.ts.map +1 -0
  175. package/dist/lib/tenant.d.ts.map +1 -1
  176. package/dist/lib/types.d.ts +7 -0
  177. package/dist/lib/types.d.ts.map +1 -1
  178. package/dist/lib/utils.d.ts.map +1 -1
  179. package/dist/message-visibility-zTseZa3P.js +27 -0
  180. package/dist/models/RBAgentsUsageEvent.d.ts +4 -3
  181. package/dist/models/RBAgentsUsageEvent.d.ts.map +1 -1
  182. package/dist/models/index.d.ts +14 -14
  183. package/dist/{models-BTzlEPg8.js → models-Bvdwv_p7.js} +14 -8
  184. package/dist/models.browser.js +5 -1
  185. package/dist/models.js +5 -1
  186. package/dist/openai-reasoning-CmTuRHwM.js +26 -0
  187. package/dist/routes.browser.js +8 -8
  188. package/dist/routes.js +8 -8
  189. package/dist/runtime.d.ts +2 -2
  190. package/dist/runtime.d.ts.map +1 -1
  191. package/dist/runtime.js +1 -1
  192. package/dist/tailwind-source.js +1 -1
  193. package/package.json +19 -18
  194. package/dist/chat-streaming-CaGHOBwC.js +0 -18
  195. package/dist/chatDb-DjZAfZRr.js +0 -276
  196. package/dist/chatDb-MmVCT1uj.js +0 -276
  197. package/dist/handler-2eyR7_IM.js +0 -1465
  198. package/dist/handler-SyCVZCc_.js +0 -1471
  199. package/dist/openai-reasoning-BCA05blq.js +0 -19
@@ -67,7 +67,7 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
67
67
  args?: never;
68
68
  supportsDeferredResults?: never;
69
69
  } & {
70
- type?: undefined | "function";
70
+ type?: undefined | 'function';
71
71
  } & {
72
72
  execute: import("ai").ToolExecuteFunction<{
73
73
  latitude?: number | undefined;
@@ -134,7 +134,7 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
134
134
  args?: never;
135
135
  supportsDeferredResults?: never;
136
136
  } & {
137
- type: "dynamic";
137
+ type: 'dynamic';
138
138
  } & {
139
139
  execute: import("ai").ToolExecuteFunction<{
140
140
  latitude?: number | undefined;
@@ -184,7 +184,7 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
184
184
  city?: string | undefined;
185
185
  }, Record<string, unknown>, NoInfer<import("@ai-sdk/provider-utils").Context>>;
186
186
  } & {
187
- type: "provider";
187
+ type: 'provider';
188
188
  id: `${string}.${string}`;
189
189
  args: Record<string, unknown>;
190
190
  description?: never;
@@ -242,7 +242,7 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
242
242
  city?: string | undefined;
243
243
  }, Record<string, unknown>, NoInfer<import("@ai-sdk/provider-utils").Context>>;
244
244
  } & {
245
- type: "provider";
245
+ type: 'provider';
246
246
  id: `${string}.${string}`;
247
247
  args: Record<string, unknown>;
248
248
  description?: never;
@@ -264,12 +264,12 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
264
264
  metadata?: import("@ai-sdk/provider").JSONObject;
265
265
  inputSchema: import("ai").FlexibleSchema<{
266
266
  title: string;
267
- kind: "text" | "code" | "sheet";
267
+ kind: "code" | "sheet" | "text";
268
268
  }>;
269
269
  contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
270
270
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
271
271
  title: string;
272
- kind: "text" | "code" | "sheet";
272
+ kind: "code" | "sheet" | "text";
273
273
  }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
274
274
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
275
275
  onInputDelta?: ((options: {
@@ -278,19 +278,19 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
278
278
  onInputAvailable?: ((options: {
279
279
  input: {
280
280
  title: string;
281
- kind: "text" | "code" | "sheet";
281
+ kind: "code" | "sheet" | "text";
282
282
  };
283
283
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
284
284
  toModelOutput?: ((options: {
285
285
  toolCallId: string;
286
286
  input: {
287
287
  title: string;
288
- kind: "text" | "code" | "sheet";
288
+ kind: "code" | "sheet" | "text";
289
289
  };
290
290
  output: NoInfer<{
291
291
  id: `${string}-${string}-${string}-${string}-${string}`;
292
292
  title: string;
293
- kind: "text" | "code" | "sheet";
293
+ kind: "code" | "sheet" | "text";
294
294
  content: string;
295
295
  }>;
296
296
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
@@ -298,16 +298,16 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
298
298
  outputSchema?: import("ai").FlexibleSchema<{
299
299
  id: `${string}-${string}-${string}-${string}-${string}`;
300
300
  title: string;
301
- kind: "text" | "code" | "sheet";
301
+ kind: "code" | "sheet" | "text";
302
302
  content: string;
303
303
  }> | undefined;
304
304
  execute: import("ai").ToolExecuteFunction<{
305
305
  title: string;
306
- kind: "text" | "code" | "sheet";
306
+ kind: "code" | "sheet" | "text";
307
307
  }, {
308
308
  id: `${string}-${string}-${string}-${string}-${string}`;
309
309
  title: string;
310
- kind: "text" | "code" | "sheet";
310
+ kind: "code" | "sheet" | "text";
311
311
  content: string;
312
312
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
313
313
  } & {
@@ -319,7 +319,7 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
319
319
  inputExamples?: {
320
320
  input: NoInfer<{
321
321
  title: string;
322
- kind: "text" | "code" | "sheet";
322
+ kind: "code" | "sheet" | "text";
323
323
  }>;
324
324
  }[] | undefined;
325
325
  id?: never;
@@ -327,15 +327,15 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
327
327
  args?: never;
328
328
  supportsDeferredResults?: never;
329
329
  } & {
330
- type?: undefined | "function";
330
+ type?: undefined | 'function';
331
331
  } & {
332
332
  execute: import("ai").ToolExecuteFunction<{
333
333
  title: string;
334
- kind: "text" | "code" | "sheet";
334
+ kind: "code" | "sheet" | "text";
335
335
  }, {
336
336
  id: `${string}-${string}-${string}-${string}-${string}`;
337
337
  title: string;
338
- kind: "text" | "code" | "sheet";
338
+ kind: "code" | "sheet" | "text";
339
339
  content: string;
340
340
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
341
341
  }) | ({
@@ -344,12 +344,12 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
344
344
  metadata?: import("@ai-sdk/provider").JSONObject;
345
345
  inputSchema: import("ai").FlexibleSchema<{
346
346
  title: string;
347
- kind: "text" | "code" | "sheet";
347
+ kind: "code" | "sheet" | "text";
348
348
  }>;
349
349
  contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
350
350
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
351
351
  title: string;
352
- kind: "text" | "code" | "sheet";
352
+ kind: "code" | "sheet" | "text";
353
353
  }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
354
354
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
355
355
  onInputDelta?: ((options: {
@@ -358,19 +358,19 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
358
358
  onInputAvailable?: ((options: {
359
359
  input: {
360
360
  title: string;
361
- kind: "text" | "code" | "sheet";
361
+ kind: "code" | "sheet" | "text";
362
362
  };
363
363
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
364
364
  toModelOutput?: ((options: {
365
365
  toolCallId: string;
366
366
  input: {
367
367
  title: string;
368
- kind: "text" | "code" | "sheet";
368
+ kind: "code" | "sheet" | "text";
369
369
  };
370
370
  output: NoInfer<{
371
371
  id: `${string}-${string}-${string}-${string}-${string}`;
372
372
  title: string;
373
- kind: "text" | "code" | "sheet";
373
+ kind: "code" | "sheet" | "text";
374
374
  content: string;
375
375
  }>;
376
376
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
@@ -378,16 +378,16 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
378
378
  outputSchema?: import("ai").FlexibleSchema<{
379
379
  id: `${string}-${string}-${string}-${string}-${string}`;
380
380
  title: string;
381
- kind: "text" | "code" | "sheet";
381
+ kind: "code" | "sheet" | "text";
382
382
  content: string;
383
383
  }> | undefined;
384
384
  execute: import("ai").ToolExecuteFunction<{
385
385
  title: string;
386
- kind: "text" | "code" | "sheet";
386
+ kind: "code" | "sheet" | "text";
387
387
  }, {
388
388
  id: `${string}-${string}-${string}-${string}-${string}`;
389
389
  title: string;
390
- kind: "text" | "code" | "sheet";
390
+ kind: "code" | "sheet" | "text";
391
391
  content: string;
392
392
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
393
393
  } & {
@@ -399,7 +399,7 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
399
399
  inputExamples?: {
400
400
  input: NoInfer<{
401
401
  title: string;
402
- kind: "text" | "code" | "sheet";
402
+ kind: "code" | "sheet" | "text";
403
403
  }>;
404
404
  }[] | undefined;
405
405
  id?: never;
@@ -407,15 +407,15 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
407
407
  args?: never;
408
408
  supportsDeferredResults?: never;
409
409
  } & {
410
- type: "dynamic";
410
+ type: 'dynamic';
411
411
  } & {
412
412
  execute: import("ai").ToolExecuteFunction<{
413
413
  title: string;
414
- kind: "text" | "code" | "sheet";
414
+ kind: "code" | "sheet" | "text";
415
415
  }, {
416
416
  id: `${string}-${string}-${string}-${string}-${string}`;
417
417
  title: string;
418
- kind: "text" | "code" | "sheet";
418
+ kind: "code" | "sheet" | "text";
419
419
  content: string;
420
420
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
421
421
  }) | ({
@@ -424,12 +424,12 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
424
424
  metadata?: import("@ai-sdk/provider").JSONObject;
425
425
  inputSchema: import("ai").FlexibleSchema<{
426
426
  title: string;
427
- kind: "text" | "code" | "sheet";
427
+ kind: "code" | "sheet" | "text";
428
428
  }>;
429
429
  contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
430
430
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
431
431
  title: string;
432
- kind: "text" | "code" | "sheet";
432
+ kind: "code" | "sheet" | "text";
433
433
  }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
434
434
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
435
435
  onInputDelta?: ((options: {
@@ -438,19 +438,19 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
438
438
  onInputAvailable?: ((options: {
439
439
  input: {
440
440
  title: string;
441
- kind: "text" | "code" | "sheet";
441
+ kind: "code" | "sheet" | "text";
442
442
  };
443
443
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
444
444
  toModelOutput?: ((options: {
445
445
  toolCallId: string;
446
446
  input: {
447
447
  title: string;
448
- kind: "text" | "code" | "sheet";
448
+ kind: "code" | "sheet" | "text";
449
449
  };
450
450
  output: NoInfer<{
451
451
  id: `${string}-${string}-${string}-${string}-${string}`;
452
452
  title: string;
453
- kind: "text" | "code" | "sheet";
453
+ kind: "code" | "sheet" | "text";
454
454
  content: string;
455
455
  }>;
456
456
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
@@ -458,20 +458,20 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
458
458
  outputSchema?: import("ai").FlexibleSchema<{
459
459
  id: `${string}-${string}-${string}-${string}-${string}`;
460
460
  title: string;
461
- kind: "text" | "code" | "sheet";
461
+ kind: "code" | "sheet" | "text";
462
462
  content: string;
463
463
  }> | undefined;
464
464
  execute: import("ai").ToolExecuteFunction<{
465
465
  title: string;
466
- kind: "text" | "code" | "sheet";
466
+ kind: "code" | "sheet" | "text";
467
467
  }, {
468
468
  id: `${string}-${string}-${string}-${string}-${string}`;
469
469
  title: string;
470
- kind: "text" | "code" | "sheet";
470
+ kind: "code" | "sheet" | "text";
471
471
  content: string;
472
472
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
473
473
  } & {
474
- type: "provider";
474
+ type: 'provider';
475
475
  id: `${string}.${string}`;
476
476
  args: Record<string, unknown>;
477
477
  description?: never;
@@ -483,11 +483,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
483
483
  } & {
484
484
  execute: import("ai").ToolExecuteFunction<{
485
485
  title: string;
486
- kind: "text" | "code" | "sheet";
486
+ kind: "code" | "sheet" | "text";
487
487
  }, {
488
488
  id: `${string}-${string}-${string}-${string}-${string}`;
489
489
  title: string;
490
- kind: "text" | "code" | "sheet";
490
+ kind: "code" | "sheet" | "text";
491
491
  content: string;
492
492
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
493
493
  }) | ({
@@ -496,12 +496,12 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
496
496
  metadata?: import("@ai-sdk/provider").JSONObject;
497
497
  inputSchema: import("ai").FlexibleSchema<{
498
498
  title: string;
499
- kind: "text" | "code" | "sheet";
499
+ kind: "code" | "sheet" | "text";
500
500
  }>;
501
501
  contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
502
502
  needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
503
503
  title: string;
504
- kind: "text" | "code" | "sheet";
504
+ kind: "code" | "sheet" | "text";
505
505
  }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
506
506
  onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
507
507
  onInputDelta?: ((options: {
@@ -510,19 +510,19 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
510
510
  onInputAvailable?: ((options: {
511
511
  input: {
512
512
  title: string;
513
- kind: "text" | "code" | "sheet";
513
+ kind: "code" | "sheet" | "text";
514
514
  };
515
515
  } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
516
516
  toModelOutput?: ((options: {
517
517
  toolCallId: string;
518
518
  input: {
519
519
  title: string;
520
- kind: "text" | "code" | "sheet";
520
+ kind: "code" | "sheet" | "text";
521
521
  };
522
522
  output: NoInfer<{
523
523
  id: `${string}-${string}-${string}-${string}-${string}`;
524
524
  title: string;
525
- kind: "text" | "code" | "sheet";
525
+ kind: "code" | "sheet" | "text";
526
526
  content: string;
527
527
  }>;
528
528
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
@@ -530,20 +530,20 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
530
530
  outputSchema?: import("ai").FlexibleSchema<{
531
531
  id: `${string}-${string}-${string}-${string}-${string}`;
532
532
  title: string;
533
- kind: "text" | "code" | "sheet";
533
+ kind: "code" | "sheet" | "text";
534
534
  content: string;
535
535
  }> | undefined;
536
536
  execute: import("ai").ToolExecuteFunction<{
537
537
  title: string;
538
- kind: "text" | "code" | "sheet";
538
+ kind: "code" | "sheet" | "text";
539
539
  }, {
540
540
  id: `${string}-${string}-${string}-${string}-${string}`;
541
541
  title: string;
542
- kind: "text" | "code" | "sheet";
542
+ kind: "code" | "sheet" | "text";
543
543
  content: string;
544
544
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
545
545
  } & {
546
- type: "provider";
546
+ type: 'provider';
547
547
  id: `${string}.${string}`;
548
548
  args: Record<string, unknown>;
549
549
  description?: never;
@@ -555,11 +555,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
555
555
  } & {
556
556
  execute: import("ai").ToolExecuteFunction<{
557
557
  title: string;
558
- kind: "text" | "code" | "sheet";
558
+ kind: "code" | "sheet" | "text";
559
559
  }, {
560
560
  id: `${string}-${string}-${string}-${string}-${string}`;
561
561
  title: string;
562
- kind: "text" | "code" | "sheet";
562
+ kind: "code" | "sheet" | "text";
563
563
  content: string;
564
564
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
565
565
  });
@@ -607,11 +607,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
607
607
  kind?: undefined;
608
608
  content?: undefined;
609
609
  } | {
610
+ error?: undefined;
610
611
  id: string;
611
612
  title: string;
612
613
  kind: DocumentKind;
613
614
  content: string;
614
- error?: undefined;
615
615
  }>;
616
616
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
617
617
  } & {
@@ -622,11 +622,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
622
622
  kind?: undefined;
623
623
  content?: undefined;
624
624
  } | {
625
+ error?: undefined;
625
626
  id: string;
626
627
  title: string;
627
628
  kind: DocumentKind;
628
629
  content: string;
629
- error?: undefined;
630
630
  }> | undefined;
631
631
  execute: import("ai").ToolExecuteFunction<{
632
632
  id: string;
@@ -640,11 +640,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
640
640
  kind?: undefined;
641
641
  content?: undefined;
642
642
  } | {
643
+ error?: undefined;
643
644
  id: string;
644
645
  title: string;
645
646
  kind: DocumentKind;
646
647
  content: string;
647
- error?: undefined;
648
648
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
649
649
  } & {
650
650
  description?: string | ((options: {
@@ -665,7 +665,7 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
665
665
  args?: never;
666
666
  supportsDeferredResults?: never;
667
667
  } & {
668
- type?: undefined | "function";
668
+ type?: undefined | 'function';
669
669
  } & {
670
670
  execute: import("ai").ToolExecuteFunction<{
671
671
  id: string;
@@ -679,11 +679,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
679
679
  kind?: undefined;
680
680
  content?: undefined;
681
681
  } | {
682
+ error?: undefined;
682
683
  id: string;
683
684
  title: string;
684
685
  kind: DocumentKind;
685
686
  content: string;
686
- error?: undefined;
687
687
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
688
688
  }) | ({
689
689
  title?: string;
@@ -729,11 +729,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
729
729
  kind?: undefined;
730
730
  content?: undefined;
731
731
  } | {
732
+ error?: undefined;
732
733
  id: string;
733
734
  title: string;
734
735
  kind: DocumentKind;
735
736
  content: string;
736
- error?: undefined;
737
737
  }>;
738
738
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
739
739
  } & {
@@ -744,11 +744,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
744
744
  kind?: undefined;
745
745
  content?: undefined;
746
746
  } | {
747
+ error?: undefined;
747
748
  id: string;
748
749
  title: string;
749
750
  kind: DocumentKind;
750
751
  content: string;
751
- error?: undefined;
752
752
  }> | undefined;
753
753
  execute: import("ai").ToolExecuteFunction<{
754
754
  id: string;
@@ -762,11 +762,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
762
762
  kind?: undefined;
763
763
  content?: undefined;
764
764
  } | {
765
+ error?: undefined;
765
766
  id: string;
766
767
  title: string;
767
768
  kind: DocumentKind;
768
769
  content: string;
769
- error?: undefined;
770
770
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
771
771
  } & {
772
772
  description?: string | ((options: {
@@ -787,7 +787,7 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
787
787
  args?: never;
788
788
  supportsDeferredResults?: never;
789
789
  } & {
790
- type: "dynamic";
790
+ type: 'dynamic';
791
791
  } & {
792
792
  execute: import("ai").ToolExecuteFunction<{
793
793
  id: string;
@@ -801,11 +801,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
801
801
  kind?: undefined;
802
802
  content?: undefined;
803
803
  } | {
804
+ error?: undefined;
804
805
  id: string;
805
806
  title: string;
806
807
  kind: DocumentKind;
807
808
  content: string;
808
- error?: undefined;
809
809
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
810
810
  }) | ({
811
811
  title?: string;
@@ -851,11 +851,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
851
851
  kind?: undefined;
852
852
  content?: undefined;
853
853
  } | {
854
+ error?: undefined;
854
855
  id: string;
855
856
  title: string;
856
857
  kind: DocumentKind;
857
858
  content: string;
858
- error?: undefined;
859
859
  }>;
860
860
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
861
861
  } & {
@@ -866,11 +866,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
866
866
  kind?: undefined;
867
867
  content?: undefined;
868
868
  } | {
869
+ error?: undefined;
869
870
  id: string;
870
871
  title: string;
871
872
  kind: DocumentKind;
872
873
  content: string;
873
- error?: undefined;
874
874
  }> | undefined;
875
875
  execute: import("ai").ToolExecuteFunction<{
876
876
  id: string;
@@ -884,14 +884,14 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
884
884
  kind?: undefined;
885
885
  content?: undefined;
886
886
  } | {
887
+ error?: undefined;
887
888
  id: string;
888
889
  title: string;
889
890
  kind: DocumentKind;
890
891
  content: string;
891
- error?: undefined;
892
892
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
893
893
  } & {
894
- type: "provider";
894
+ type: 'provider';
895
895
  id: `${string}.${string}`;
896
896
  args: Record<string, unknown>;
897
897
  description?: never;
@@ -913,11 +913,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
913
913
  kind?: undefined;
914
914
  content?: undefined;
915
915
  } | {
916
+ error?: undefined;
916
917
  id: string;
917
918
  title: string;
918
919
  kind: DocumentKind;
919
920
  content: string;
920
- error?: undefined;
921
921
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
922
922
  }) | ({
923
923
  title?: string;
@@ -963,11 +963,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
963
963
  kind?: undefined;
964
964
  content?: undefined;
965
965
  } | {
966
+ error?: undefined;
966
967
  id: string;
967
968
  title: string;
968
969
  kind: DocumentKind;
969
970
  content: string;
970
- error?: undefined;
971
971
  }>;
972
972
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
973
973
  } & {
@@ -978,11 +978,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
978
978
  kind?: undefined;
979
979
  content?: undefined;
980
980
  } | {
981
+ error?: undefined;
981
982
  id: string;
982
983
  title: string;
983
984
  kind: DocumentKind;
984
985
  content: string;
985
- error?: undefined;
986
986
  }> | undefined;
987
987
  execute: import("ai").ToolExecuteFunction<{
988
988
  id: string;
@@ -996,14 +996,14 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
996
996
  kind?: undefined;
997
997
  content?: undefined;
998
998
  } | {
999
+ error?: undefined;
999
1000
  id: string;
1000
1001
  title: string;
1001
1002
  kind: DocumentKind;
1002
1003
  content: string;
1003
- error?: undefined;
1004
1004
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1005
1005
  } & {
1006
- type: "provider";
1006
+ type: 'provider';
1007
1007
  id: `${string}.${string}`;
1008
1008
  args: Record<string, unknown>;
1009
1009
  description?: never;
@@ -1025,11 +1025,11 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
1025
1025
  kind?: undefined;
1026
1026
  content?: undefined;
1027
1027
  } | {
1028
+ error?: undefined;
1028
1029
  id: string;
1029
1030
  title: string;
1030
1031
  kind: DocumentKind;
1031
1032
  content: string;
1032
- error?: undefined;
1033
1033
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1034
1034
  });
1035
1035
  updateDocument: ({
@@ -1122,7 +1122,7 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
1122
1122
  args?: never;
1123
1123
  supportsDeferredResults?: never;
1124
1124
  } & {
1125
- type?: undefined | "function";
1125
+ type?: undefined | 'function';
1126
1126
  } & {
1127
1127
  execute: import("ai").ToolExecuteFunction<{
1128
1128
  id: string;
@@ -1230,7 +1230,7 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
1230
1230
  args?: never;
1231
1231
  supportsDeferredResults?: never;
1232
1232
  } & {
1233
- type: "dynamic";
1233
+ type: 'dynamic';
1234
1234
  } & {
1235
1235
  execute: import("ai").ToolExecuteFunction<{
1236
1236
  id: string;
@@ -1322,7 +1322,7 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
1322
1322
  error?: undefined;
1323
1323
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1324
1324
  } & {
1325
- type: "provider";
1325
+ type: 'provider';
1326
1326
  id: `${string}.${string}`;
1327
1327
  args: Record<string, unknown>;
1328
1328
  description?: never;
@@ -1422,7 +1422,7 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
1422
1422
  error?: undefined;
1423
1423
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1424
1424
  } & {
1425
- type: "provider";
1425
+ type: 'provider';
1426
1426
  id: `${string}.${string}`;
1427
1427
  args: Record<string, unknown>;
1428
1428
  description?: never;
@@ -1475,47 +1475,47 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
1475
1475
  documentId: string;
1476
1476
  };
1477
1477
  output: NoInfer<{
1478
- error: string;
1479
1478
  id?: undefined;
1480
1479
  title?: undefined;
1481
1480
  kind?: undefined;
1481
+ error: string;
1482
1482
  message?: undefined;
1483
1483
  } | {
1484
+ error?: undefined;
1484
1485
  id: string;
1485
1486
  title: string;
1486
1487
  kind: DocumentKind;
1487
1488
  message: string;
1488
- error?: undefined;
1489
1489
  }>;
1490
1490
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1491
1491
  } & {
1492
1492
  outputSchema?: import("ai").FlexibleSchema<{
1493
- error: string;
1494
1493
  id?: undefined;
1495
1494
  title?: undefined;
1496
1495
  kind?: undefined;
1496
+ error: string;
1497
1497
  message?: undefined;
1498
1498
  } | {
1499
+ error?: undefined;
1499
1500
  id: string;
1500
1501
  title: string;
1501
1502
  kind: DocumentKind;
1502
1503
  message: string;
1503
- error?: undefined;
1504
1504
  }> | undefined;
1505
1505
  execute: import("ai").ToolExecuteFunction<{
1506
1506
  documentId: string;
1507
1507
  }, {
1508
- error: string;
1509
1508
  id?: undefined;
1510
1509
  title?: undefined;
1511
1510
  kind?: undefined;
1511
+ error: string;
1512
1512
  message?: undefined;
1513
1513
  } | {
1514
+ error?: undefined;
1514
1515
  id: string;
1515
1516
  title: string;
1516
1517
  kind: DocumentKind;
1517
1518
  message: string;
1518
- error?: undefined;
1519
1519
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1520
1520
  } & {
1521
1521
  description?: string | ((options: {
@@ -1533,22 +1533,22 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
1533
1533
  args?: never;
1534
1534
  supportsDeferredResults?: never;
1535
1535
  } & {
1536
- type?: undefined | "function";
1536
+ type?: undefined | 'function';
1537
1537
  } & {
1538
1538
  execute: import("ai").ToolExecuteFunction<{
1539
1539
  documentId: string;
1540
1540
  }, {
1541
- error: string;
1542
1541
  id?: undefined;
1543
1542
  title?: undefined;
1544
1543
  kind?: undefined;
1544
+ error: string;
1545
1545
  message?: undefined;
1546
1546
  } | {
1547
+ error?: undefined;
1547
1548
  id: string;
1548
1549
  title: string;
1549
1550
  kind: DocumentKind;
1550
1551
  message: string;
1551
- error?: undefined;
1552
1552
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1553
1553
  }) | ({
1554
1554
  title?: string;
@@ -1576,47 +1576,47 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
1576
1576
  documentId: string;
1577
1577
  };
1578
1578
  output: NoInfer<{
1579
- error: string;
1580
1579
  id?: undefined;
1581
1580
  title?: undefined;
1582
1581
  kind?: undefined;
1582
+ error: string;
1583
1583
  message?: undefined;
1584
1584
  } | {
1585
+ error?: undefined;
1585
1586
  id: string;
1586
1587
  title: string;
1587
1588
  kind: DocumentKind;
1588
1589
  message: string;
1589
- error?: undefined;
1590
1590
  }>;
1591
1591
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1592
1592
  } & {
1593
1593
  outputSchema?: import("ai").FlexibleSchema<{
1594
- error: string;
1595
1594
  id?: undefined;
1596
1595
  title?: undefined;
1597
1596
  kind?: undefined;
1597
+ error: string;
1598
1598
  message?: undefined;
1599
1599
  } | {
1600
+ error?: undefined;
1600
1601
  id: string;
1601
1602
  title: string;
1602
1603
  kind: DocumentKind;
1603
1604
  message: string;
1604
- error?: undefined;
1605
1605
  }> | undefined;
1606
1606
  execute: import("ai").ToolExecuteFunction<{
1607
1607
  documentId: string;
1608
1608
  }, {
1609
- error: string;
1610
1609
  id?: undefined;
1611
1610
  title?: undefined;
1612
1611
  kind?: undefined;
1612
+ error: string;
1613
1613
  message?: undefined;
1614
1614
  } | {
1615
+ error?: undefined;
1615
1616
  id: string;
1616
1617
  title: string;
1617
1618
  kind: DocumentKind;
1618
1619
  message: string;
1619
- error?: undefined;
1620
1620
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1621
1621
  } & {
1622
1622
  description?: string | ((options: {
@@ -1634,22 +1634,22 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
1634
1634
  args?: never;
1635
1635
  supportsDeferredResults?: never;
1636
1636
  } & {
1637
- type: "dynamic";
1637
+ type: 'dynamic';
1638
1638
  } & {
1639
1639
  execute: import("ai").ToolExecuteFunction<{
1640
1640
  documentId: string;
1641
1641
  }, {
1642
- error: string;
1643
1642
  id?: undefined;
1644
1643
  title?: undefined;
1645
1644
  kind?: undefined;
1645
+ error: string;
1646
1646
  message?: undefined;
1647
1647
  } | {
1648
+ error?: undefined;
1648
1649
  id: string;
1649
1650
  title: string;
1650
1651
  kind: DocumentKind;
1651
1652
  message: string;
1652
- error?: undefined;
1653
1653
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1654
1654
  }) | ({
1655
1655
  title?: string;
@@ -1677,50 +1677,50 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
1677
1677
  documentId: string;
1678
1678
  };
1679
1679
  output: NoInfer<{
1680
- error: string;
1681
1680
  id?: undefined;
1682
1681
  title?: undefined;
1683
1682
  kind?: undefined;
1683
+ error: string;
1684
1684
  message?: undefined;
1685
1685
  } | {
1686
+ error?: undefined;
1686
1687
  id: string;
1687
1688
  title: string;
1688
1689
  kind: DocumentKind;
1689
1690
  message: string;
1690
- error?: undefined;
1691
1691
  }>;
1692
1692
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1693
1693
  } & {
1694
1694
  outputSchema?: import("ai").FlexibleSchema<{
1695
- error: string;
1696
1695
  id?: undefined;
1697
1696
  title?: undefined;
1698
1697
  kind?: undefined;
1698
+ error: string;
1699
1699
  message?: undefined;
1700
1700
  } | {
1701
+ error?: undefined;
1701
1702
  id: string;
1702
1703
  title: string;
1703
1704
  kind: DocumentKind;
1704
1705
  message: string;
1705
- error?: undefined;
1706
1706
  }> | undefined;
1707
1707
  execute: import("ai").ToolExecuteFunction<{
1708
1708
  documentId: string;
1709
1709
  }, {
1710
- error: string;
1711
1710
  id?: undefined;
1712
1711
  title?: undefined;
1713
1712
  kind?: undefined;
1713
+ error: string;
1714
1714
  message?: undefined;
1715
1715
  } | {
1716
+ error?: undefined;
1716
1717
  id: string;
1717
1718
  title: string;
1718
1719
  kind: DocumentKind;
1719
1720
  message: string;
1720
- error?: undefined;
1721
1721
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1722
1722
  } & {
1723
- type: "provider";
1723
+ type: 'provider';
1724
1724
  id: `${string}.${string}`;
1725
1725
  args: Record<string, unknown>;
1726
1726
  description?: never;
@@ -1733,17 +1733,17 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
1733
1733
  execute: import("ai").ToolExecuteFunction<{
1734
1734
  documentId: string;
1735
1735
  }, {
1736
- error: string;
1737
1736
  id?: undefined;
1738
1737
  title?: undefined;
1739
1738
  kind?: undefined;
1739
+ error: string;
1740
1740
  message?: undefined;
1741
1741
  } | {
1742
+ error?: undefined;
1742
1743
  id: string;
1743
1744
  title: string;
1744
1745
  kind: DocumentKind;
1745
1746
  message: string;
1746
- error?: undefined;
1747
1747
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1748
1748
  }) | ({
1749
1749
  title?: string;
@@ -1771,50 +1771,50 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
1771
1771
  documentId: string;
1772
1772
  };
1773
1773
  output: NoInfer<{
1774
- error: string;
1775
1774
  id?: undefined;
1776
1775
  title?: undefined;
1777
1776
  kind?: undefined;
1777
+ error: string;
1778
1778
  message?: undefined;
1779
1779
  } | {
1780
+ error?: undefined;
1780
1781
  id: string;
1781
1782
  title: string;
1782
1783
  kind: DocumentKind;
1783
1784
  message: string;
1784
- error?: undefined;
1785
1785
  }>;
1786
1786
  }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1787
1787
  } & {
1788
1788
  outputSchema?: import("ai").FlexibleSchema<{
1789
- error: string;
1790
1789
  id?: undefined;
1791
1790
  title?: undefined;
1792
1791
  kind?: undefined;
1792
+ error: string;
1793
1793
  message?: undefined;
1794
1794
  } | {
1795
+ error?: undefined;
1795
1796
  id: string;
1796
1797
  title: string;
1797
1798
  kind: DocumentKind;
1798
1799
  message: string;
1799
- error?: undefined;
1800
1800
  }> | undefined;
1801
1801
  execute: import("ai").ToolExecuteFunction<{
1802
1802
  documentId: string;
1803
1803
  }, {
1804
- error: string;
1805
1804
  id?: undefined;
1806
1805
  title?: undefined;
1807
1806
  kind?: undefined;
1807
+ error: string;
1808
1808
  message?: undefined;
1809
1809
  } | {
1810
+ error?: undefined;
1810
1811
  id: string;
1811
1812
  title: string;
1812
1813
  kind: DocumentKind;
1813
1814
  message: string;
1814
- error?: undefined;
1815
1815
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1816
1816
  } & {
1817
- type: "provider";
1817
+ type: 'provider';
1818
1818
  id: `${string}.${string}`;
1819
1819
  args: Record<string, unknown>;
1820
1820
  description?: never;
@@ -1827,17 +1827,17 @@ export declare const createChatTools: ({ ctx, dataStream, requestHints, }: {
1827
1827
  execute: import("ai").ToolExecuteFunction<{
1828
1828
  documentId: string;
1829
1829
  }, {
1830
- error: string;
1831
1830
  id?: undefined;
1832
1831
  title?: undefined;
1833
1832
  kind?: undefined;
1833
+ error: string;
1834
1834
  message?: undefined;
1835
1835
  } | {
1836
+ error?: undefined;
1836
1837
  id: string;
1837
1838
  title: string;
1838
1839
  kind: DocumentKind;
1839
1840
  message: string;
1840
- error?: undefined;
1841
1841
  }, NoInfer<import("@ai-sdk/provider-utils").Context>>;
1842
1842
  });
1843
1843
  webSearch: import("@ai-sdk/provider-utils").ProviderExecutedTool<{}, {