@mastra/ai-sdk 1.7.1 → 1.7.2

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.
@@ -1,5 +1,4 @@
1
1
  import { JSONSchema7 } from '../../@types_json-schema/index.d.ts';
2
- import { JSONSchema7Definition } from '../../@types_json-schema/index.d.ts';
3
2
  import { ServerResponse } from 'node:http';
4
3
  import { ServerResponse as ServerResponse_2 } from 'http';
5
4
  import { z } from 'zod/v4';
@@ -225,135 +224,6 @@ export declare type AgentStreamParameters<CALL_OPTIONS, TOOLS extends ToolSet> =
225
224
  experimental_transform?: StreamTextTransform<TOOLS> | Array<StreamTextTransform<TOOLS>>;
226
225
  };
227
226
 
228
- declare namespace _ai_sdk_provider {
229
- export {
230
- JSONSchema7,
231
- JSONSchema7Definition,
232
- AISDKError,
233
- APICallError,
234
- EmbeddingModelV2,
235
- EmbeddingModelV2Embedding,
236
- EmbeddingModelV3,
237
- EmbeddingModelV3CallOptions,
238
- EmbeddingModelV3Embedding,
239
- EmbeddingModelV3Middleware,
240
- EmbeddingModelV3Result,
241
- EmptyResponseBodyError,
242
- VideoModelV3 as Experimental_VideoModelV3,
243
- VideoModelV3CallOptions as Experimental_VideoModelV3CallOptions,
244
- VideoModelV3File as Experimental_VideoModelV3File,
245
- VideoModelV3FrameImage as Experimental_VideoModelV3FrameImage,
246
- VideoModelV3FrameType as Experimental_VideoModelV3FrameType,
247
- VideoModelV3VideoData as Experimental_VideoModelV3VideoData,
248
- ImageModelV2,
249
- ImageModelV2CallOptions,
250
- ImageModelV2CallWarning,
251
- ImageModelV2ProviderMetadata,
252
- ImageModelV3,
253
- ImageModelV3CallOptions,
254
- ImageModelV3File,
255
- ImageModelV3Middleware,
256
- ImageModelV3ProviderMetadata,
257
- ImageModelV3Usage,
258
- InvalidArgumentError_2 as InvalidArgumentError,
259
- InvalidPromptError,
260
- InvalidResponseDataError,
261
- JSONArray,
262
- JSONObject,
263
- JSONParseError,
264
- JSONValue_2 as JSONValue,
265
- LanguageModelV2,
266
- LanguageModelV2CallOptions,
267
- LanguageModelV2CallWarning,
268
- LanguageModelV2Content,
269
- LanguageModelV2DataContent,
270
- LanguageModelV2File,
271
- LanguageModelV2FilePart,
272
- LanguageModelV2FinishReason,
273
- LanguageModelV2FunctionTool,
274
- LanguageModelV2Message,
275
- LanguageModelV2Middleware,
276
- LanguageModelV2Prompt,
277
- LanguageModelV2ProviderDefinedTool,
278
- LanguageModelV2Reasoning,
279
- LanguageModelV2ReasoningPart,
280
- LanguageModelV2ResponseMetadata,
281
- LanguageModelV2Source,
282
- LanguageModelV2StreamPart,
283
- LanguageModelV2Text,
284
- LanguageModelV2TextPart,
285
- LanguageModelV2ToolCall,
286
- LanguageModelV2ToolCallPart,
287
- LanguageModelV2ToolChoice,
288
- LanguageModelV2ToolResultOutput,
289
- LanguageModelV2ToolResultPart,
290
- LanguageModelV2Usage,
291
- LanguageModelV3,
292
- LanguageModelV3CallOptions,
293
- LanguageModelV3Content,
294
- LanguageModelV3DataContent,
295
- LanguageModelV3File,
296
- LanguageModelV3FilePart,
297
- LanguageModelV3FinishReason,
298
- LanguageModelV3FunctionTool,
299
- LanguageModelV3GenerateResult,
300
- LanguageModelV3Message,
301
- LanguageModelV3Middleware,
302
- LanguageModelV3Prompt,
303
- LanguageModelV3ProviderTool,
304
- LanguageModelV3Reasoning,
305
- LanguageModelV3ReasoningPart,
306
- LanguageModelV3ResponseMetadata,
307
- LanguageModelV3Source,
308
- LanguageModelV3StreamPart,
309
- LanguageModelV3StreamResult,
310
- LanguageModelV3Text,
311
- LanguageModelV3TextPart,
312
- LanguageModelV3ToolApprovalRequest,
313
- LanguageModelV3ToolApprovalResponsePart,
314
- LanguageModelV3ToolCall,
315
- LanguageModelV3ToolCallPart,
316
- LanguageModelV3ToolChoice,
317
- LanguageModelV3ToolResult,
318
- LanguageModelV3ToolResultOutput,
319
- LanguageModelV3ToolResultPart,
320
- LanguageModelV3Usage,
321
- LoadAPIKeyError,
322
- LoadSettingError,
323
- NoContentGeneratedError,
324
- NoSuchModelError,
325
- ProviderV2,
326
- ProviderV3,
327
- RerankingModelV3,
328
- RerankingModelV3CallOptions,
329
- SharedV2Headers,
330
- SharedV2ProviderMetadata,
331
- SharedV2ProviderOptions,
332
- SharedV3Headers,
333
- SharedV3ProviderMetadata,
334
- SharedV3ProviderOptions,
335
- SharedV3Warning,
336
- SpeechModelV2,
337
- SpeechModelV2CallOptions,
338
- SpeechModelV2CallWarning,
339
- SpeechModelV3,
340
- SpeechModelV3CallOptions,
341
- TooManyEmbeddingValuesForCallError,
342
- TranscriptionModelV2,
343
- TranscriptionModelV2CallOptions,
344
- TranscriptionModelV2CallWarning,
345
- TranscriptionModelV3,
346
- TranscriptionModelV3CallOptions,
347
- TypeValidationContext,
348
- TypeValidationError,
349
- UnsupportedFunctionalityError,
350
- getErrorMessage_2 as getErrorMessage,
351
- isJSONArray,
352
- isJSONObject,
353
- isJSONValue
354
- }
355
- }
356
-
357
227
  declare namespace _ai_sdk_provider_utils {
358
228
  export {
359
229
  EventSourceMessage,
@@ -3135,7 +3005,7 @@ declare interface GatewayLanguageModelEntry {
3135
3005
 
3136
3006
  declare type GatewayLanguageModelSpecification = Pick<LanguageModelV3, 'specificationVersion' | 'provider' | 'modelId'>;
3137
3007
 
3138
- export declare type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen-3.6-max-preview' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-235b-a22b-instruct' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'alibaba/qwen3.5-flash' | 'alibaba/qwen3.5-plus' | 'alibaba/qwen3.6-27b' | 'alibaba/qwen3.6-plus' | 'alibaba/qwen3.7-max' | 'alibaba/qwen3.7-plus' | 'amazon/nova-2-lite' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-fable-5' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-opus-4.7' | 'anthropic/claude-opus-4.7-fast' | 'anthropic/claude-opus-4.8' | 'anthropic/claude-opus-4.8-fast' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-sonnet-4.6' | 'anthropic/claude-sonnet-5' | 'arcee-ai/trinity-large-thinking' | 'arcee-ai/trinity-mini' | 'bytedance/seed-1.6' | 'bytedance/seed-1.8' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-v3.2' | 'deepseek/deepseek-v3.2-thinking' | 'deepseek/deepseek-v4-flash' | 'deepseek/deepseek-v4-pro' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-pro' | 'google/gemini-3-flash' | 'google/gemini-3-pro-image' | 'google/gemini-3-pro-preview' | 'google/gemini-3.1-flash-image' | 'google/gemini-3.1-flash-image-preview' | 'google/gemini-3.1-flash-lite' | 'google/gemini-3.1-flash-lite-image' | 'google/gemini-3.1-flash-lite-preview' | 'google/gemini-3.1-pro-preview' | 'google/gemini-3.5-flash' | 'google/gemini-omni-flash-preview' | 'google/gemma-4-26b-a4b-it' | 'google/gemma-4-31b-it' | 'inception/mercury-2' | 'inception/mercury-coder-small' | 'interfaze/interfaze-beta' | 'kwaipilot/kat-coder-air-v2.5' | 'kwaipilot/kat-coder-pro-v1' | 'kwaipilot/kat-coder-pro-v2' | 'kwaipilot/kat-coder-pro-v2.5' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.2-11b' | 'meta/llama-3.2-1b' | 'meta/llama-3.2-3b' | 'meta/llama-3.2-90b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'meta/muse-spark-1.1' | 'minimax/minimax-m2' | 'minimax/minimax-m2.1' | 'minimax/minimax-m2.1-lightning' | 'minimax/minimax-m2.5' | 'minimax/minimax-m2.5-highspeed' | 'minimax/minimax-m2.7' | 'minimax/minimax-m2.7-highspeed' | 'minimax/minimax-m3' | 'mistral/codestral' | 'mistral/devstral-2' | 'mistral/devstral-small-2' | 'mistral/magistral-medium' | 'mistral/magistral-small' | 'mistral/ministral-14b' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large-3' | 'mistral/mistral-medium' | 'mistral/mistral-medium-3.5' | 'mistral/mistral-nemo' | 'mistral/mistral-small' | 'mistral/pixtral-12b' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2.5' | 'moonshotai/kimi-k2.6' | 'moonshotai/kimi-k2.7-code' | 'moonshotai/kimi-k2.7-code-highspeed' | 'moonshotai/kimi-k3' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'nvidia/nemotron-3-nano-30b-a3b' | 'nvidia/nemotron-3-super-120b-a12b' | 'nvidia/nemotron-3-ultra-550b-a55b' | 'nvidia/nemotron-nano-12b-v2-vl' | 'nvidia/nemotron-nano-9b-v2' | 'openai/gpt-3.5-turbo' | 'openai/gpt-4-turbo' | 'openai/gpt-4.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' | 'openai/gpt-4o-mini-search-preview' | 'openai/gpt-5' | 'openai/gpt-5-chat' | 'openai/gpt-5-codex' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-instant' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.2' | 'openai/gpt-5.2-chat' | 'openai/gpt-5.2-codex' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.3-chat' | 'openai/gpt-5.3-codex' | 'openai/gpt-5.4' | 'openai/gpt-5.4-mini' | 'openai/gpt-5.4-nano' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.5' | 'openai/gpt-5.5-pro' | 'openai/gpt-5.6-luna' | 'openai/gpt-5.6-sol' | 'openai/gpt-5.6-terra' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-deep-research' | 'openai/o3-mini' | 'openai/o3-pro' | 'openai/o4-mini' | 'perplexity/sonar' | 'perplexity/sonar-pro' | 'perplexity/sonar-reasoning-pro' | 'sakana/fugu-ultra' | 'stepfun/step-3.5-flash' | 'stepfun/step-3.7-flash' | 'thinkingmachines/inkling' | 'xai/grok-4.1-fast-non-reasoning' | 'xai/grok-4.1-fast-reasoning' | 'xai/grok-4.20-multi-agent' | 'xai/grok-4.20-multi-agent-beta' | 'xai/grok-4.20-non-reasoning' | 'xai/grok-4.20-non-reasoning-beta' | 'xai/grok-4.20-reasoning' | 'xai/grok-4.20-reasoning-beta' | 'xai/grok-4.3' | 'xai/grok-4.5' | 'xai/grok-build-0.1' | 'xiaomi/mimo-v2.5' | 'xiaomi/mimo-v2.5-pro' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | 'zai/glm-4.6v' | 'zai/glm-4.6v-flash' | 'zai/glm-4.7' | 'zai/glm-4.7-flash' | 'zai/glm-4.7-flashx' | 'zai/glm-5' | 'zai/glm-5-turbo' | 'zai/glm-5.1' | 'zai/glm-5.2' | 'zai/glm-5.2-fast' | 'zai/glm-5v-turbo' | (string & {});
3008
+ export declare type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen-3.6-max-preview' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-235b-a22b-instruct' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'alibaba/qwen3.5-flash' | 'alibaba/qwen3.5-plus' | 'alibaba/qwen3.6-27b' | 'alibaba/qwen3.6-plus' | 'alibaba/qwen3.7-max' | 'alibaba/qwen3.7-plus' | 'amazon/nova-2-lite' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-fable-5' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-opus-4.7' | 'anthropic/claude-opus-4.8' | 'anthropic/claude-opus-4.8-fast' | 'anthropic/claude-opus-5' | 'anthropic/claude-opus-5-fast' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-sonnet-4.6' | 'anthropic/claude-sonnet-5' | 'arcee-ai/trinity-large-thinking' | 'arcee-ai/trinity-mini' | 'bytedance/seed-1.6' | 'bytedance/seed-1.8' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-v3.2' | 'deepseek/deepseek-v3.2-thinking' | 'deepseek/deepseek-v4-flash' | 'deepseek/deepseek-v4-pro' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-pro' | 'google/gemini-3-flash' | 'google/gemini-3-pro-image' | 'google/gemini-3.1-flash-image' | 'google/gemini-3.1-flash-image-preview' | 'google/gemini-3.1-flash-lite' | 'google/gemini-3.1-flash-lite-image' | 'google/gemini-3.1-pro-preview' | 'google/gemini-3.5-flash' | 'google/gemini-3.5-flash-lite' | 'google/gemini-3.6-flash' | 'google/gemini-omni-flash-preview' | 'google/gemma-4-26b-a4b-it' | 'google/gemma-4-31b-it' | 'inception/mercury-2' | 'inception/mercury-coder-small' | 'inclusionai/ling-3.0-flash-free' | 'interfaze/interfaze-beta' | 'kwaipilot/kat-coder-air-v2.5' | 'kwaipilot/kat-coder-pro-v1' | 'kwaipilot/kat-coder-pro-v2' | 'kwaipilot/kat-coder-pro-v2.5' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'meta/muse-spark-1.1' | 'minimax/minimax-m2' | 'minimax/minimax-m2.1' | 'minimax/minimax-m2.1-lightning' | 'minimax/minimax-m2.5' | 'minimax/minimax-m2.5-highspeed' | 'minimax/minimax-m2.7' | 'minimax/minimax-m2.7-highspeed' | 'minimax/minimax-m3' | 'mistral/codestral' | 'mistral/devstral-2' | 'mistral/devstral-small-2' | 'mistral/magistral-medium' | 'mistral/magistral-small' | 'mistral/ministral-14b' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large-3' | 'mistral/mistral-medium' | 'mistral/mistral-medium-3.5' | 'mistral/mistral-nemo' | 'mistral/mistral-small' | 'mistral/pixtral-12b' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2.5' | 'moonshotai/kimi-k2.6' | 'moonshotai/kimi-k2.7-code' | 'moonshotai/kimi-k2.7-code-highspeed' | 'moonshotai/kimi-k3' | 'moonshotai/kimi-k3-fast' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'nvidia/nemotron-3-nano-30b-a3b' | 'nvidia/nemotron-3-super-120b-a12b' | 'nvidia/nemotron-3-ultra-550b-a55b' | 'nvidia/nemotron-nano-12b-v2-vl' | 'nvidia/nemotron-nano-9b-v2' | 'openai/gpt-3.5-turbo' | 'openai/gpt-4-turbo' | 'openai/gpt-4.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' | 'openai/gpt-4o-mini-search-preview' | 'openai/gpt-5' | 'openai/gpt-5-codex' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-instant' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.2' | 'openai/gpt-5.2-codex' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.3-chat' | 'openai/gpt-5.3-codex' | 'openai/gpt-5.4' | 'openai/gpt-5.4-mini' | 'openai/gpt-5.4-nano' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.5' | 'openai/gpt-5.5-pro' | 'openai/gpt-5.6-luna' | 'openai/gpt-5.6-sol' | 'openai/gpt-5.6-terra' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-deep-research' | 'openai/o3-mini' | 'openai/o3-pro' | 'openai/o4-mini' | 'perplexity/sonar' | 'perplexity/sonar-pro' | 'perplexity/sonar-reasoning-pro' | 'poolside/laguna-s-2.1' | 'poolside/laguna-s-2.1-free' | 'sakana/fugu-ultra' | 'stepfun/step-3.5-flash' | 'stepfun/step-3.7-flash' | 'tencent/hy3' | 'thinkingmachines/inkling' | 'xai/grok-4.1-fast-non-reasoning' | 'xai/grok-4.1-fast-reasoning' | 'xai/grok-4.20-multi-agent' | 'xai/grok-4.20-multi-agent-beta' | 'xai/grok-4.20-non-reasoning' | 'xai/grok-4.20-non-reasoning-beta' | 'xai/grok-4.20-reasoning' | 'xai/grok-4.20-reasoning-beta' | 'xai/grok-4.3' | 'xai/grok-4.5' | 'xai/grok-build-0.1' | 'xiaomi/mimo-v2.5' | 'xiaomi/mimo-v2.5-pro' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | 'zai/glm-4.6v' | 'zai/glm-4.6v-flash' | 'zai/glm-4.7' | 'zai/glm-4.7-flash' | 'zai/glm-4.7-flashx' | 'zai/glm-5' | 'zai/glm-5-turbo' | 'zai/glm-5.1' | 'zai/glm-5.2' | 'zai/glm-5.2-fast' | 'zai/glm-5v-turbo' | (string & {});
3139
3009
 
3140
3010
  declare interface GatewayProvider extends ProviderV3 {
3141
3011
  (modelId: GatewayModelId): LanguageModelV3;
@@ -3952,7 +3822,9 @@ export declare interface GenerateTextResult<TOOLS extends ToolSet, OUTPUT extend
3952
3822
  */
3953
3823
  readonly content: Array<ContentPart<TOOLS>>;
3954
3824
  /**
3955
- * The text that was generated in the last step.
3825
+ * The concatenation of all text parts generated in the final step.
3826
+ * It is an empty string if the final step contains no text parts.
3827
+ * Inspect `content` for a text part to distinguish that case.
3956
3828
  */
3957
3829
  readonly text: string;
3958
3830
  /**
@@ -4059,8 +3931,10 @@ export declare interface GenerateTextResult<TOOLS extends ToolSet, OUTPUT extend
4059
3931
  */
4060
3932
  readonly experimental_output: InferGenerateOutput<OUTPUT>;
4061
3933
  /**
4062
- * The generated structured output. It uses the `output` specification.
3934
+ * The generated output according to the `output` specification.
4063
3935
  *
3936
+ * @throws {NoOutputGeneratedError} When no output is available, for example
3937
+ * when the final step does not finish with a `stop` reason.
4064
3938
  */
4065
3939
  readonly output: InferGenerateOutput<OUTPUT>;
4066
3940
  }
@@ -4100,8 +3974,6 @@ export declare interface GenerateVideoResult {
4100
3974
 
4101
3975
  declare function getErrorMessage(error: unknown | undefined): string;
4102
3976
 
4103
- declare function getErrorMessage_2(error: unknown | undefined): string;
4104
-
4105
3977
  declare const getFromApi: <T>({ url, headers, successfulResponseHandler, failedResponseHandler, abortSignal, fetch, }: {
4106
3978
  url: string;
4107
3979
  headers?: Record<string, string | undefined>;
@@ -4821,20 +4693,6 @@ export declare class InvalidArgumentError extends AISDKError {
4821
4693
  static isInstance(error: unknown): error is InvalidArgumentError;
4822
4694
  }
4823
4695
 
4824
- /**
4825
- * A function argument is invalid.
4826
- */
4827
- declare class InvalidArgumentError_2 extends AISDKError {
4828
- private readonly [symbol$a_2];
4829
- readonly argument: string;
4830
- constructor({ message, cause, argument, }: {
4831
- argument: string;
4832
- message: string;
4833
- cause?: unknown;
4834
- });
4835
- static isInstance(error: unknown): error is InvalidArgumentError_2;
4836
- }
4837
-
4838
4696
  export declare class InvalidDataContentError extends AISDKError {
4839
4697
  private readonly [symbol$4_2];
4840
4698
  readonly content: unknown;
@@ -4967,12 +4825,6 @@ export declare function isDynamicToolUIPart(part: UIMessagePart<UIDataTypes, UIT
4967
4825
  */
4968
4826
  export declare function isFileUIPart(part: UIMessagePart<UIDataTypes, UITools>): part is FileUIPart;
4969
4827
 
4970
- declare function isJSONArray(value: unknown): value is JSONArray;
4971
-
4972
- declare function isJSONObject(value: unknown): value is JSONObject;
4973
-
4974
- declare function isJSONValue(value: unknown): value is JSONValue_2;
4975
-
4976
4828
  export declare function isLoopFinished(): StopCondition<any>;
4977
4829
 
4978
4830
  /**
@@ -5551,84 +5403,6 @@ declare type LanguageModelV2Message = ({
5551
5403
  providerOptions?: SharedV2ProviderOptions;
5552
5404
  };
5553
5405
 
5554
- /**
5555
- * Experimental middleware for LanguageModelV2.
5556
- * This type defines the structure for middleware that can be used to modify
5557
- * the behavior of LanguageModelV2 operations.
5558
- */
5559
- declare type LanguageModelV2Middleware = {
5560
- /**
5561
- * Middleware specification version. Use `v2` for the current version.
5562
- */
5563
- middlewareVersion?: 'v2' | undefined;
5564
- /**
5565
- * Override the provider name if desired.
5566
- * @param options.model - The language model instance.
5567
- */
5568
- overrideProvider?: (options: {
5569
- model: LanguageModelV2;
5570
- }) => string;
5571
- /**
5572
- * Override the model ID if desired.
5573
- * @param options.model - The language model instance.
5574
- */
5575
- overrideModelId?: (options: {
5576
- model: LanguageModelV2;
5577
- }) => string;
5578
- /**
5579
- * Override the supported URLs if desired.
5580
- * @param options.model - The language model instance.
5581
- */
5582
- overrideSupportedUrls?: (options: {
5583
- model: LanguageModelV2;
5584
- }) => PromiseLike<Record<string, RegExp[]>> | Record<string, RegExp[]>;
5585
- /**
5586
- * Transforms the parameters before they are passed to the language model.
5587
- * @param options - Object containing the type of operation and the parameters.
5588
- * @param options.type - The type of operation ('generate' or 'stream').
5589
- * @param options.params - The original parameters for the language model call.
5590
- * @returns A promise that resolves to the transformed parameters.
5591
- */
5592
- transformParams?: (options: {
5593
- type: 'generate' | 'stream';
5594
- params: LanguageModelV2CallOptions;
5595
- model: LanguageModelV2;
5596
- }) => PromiseLike<LanguageModelV2CallOptions>;
5597
- /**
5598
- * Wraps the generate operation of the language model.
5599
- * @param options - Object containing the generate function, parameters, and model.
5600
- * @param options.doGenerate - The original generate function.
5601
- * @param options.doStream - The original stream function.
5602
- * @param options.params - The parameters for the generate call. If the
5603
- * `transformParams` middleware is used, this will be the transformed parameters.
5604
- * @param options.model - The language model instance.
5605
- * @returns A promise that resolves to the result of the generate operation.
5606
- */
5607
- wrapGenerate?: (options: {
5608
- doGenerate: () => ReturnType<LanguageModelV2['doGenerate']>;
5609
- doStream: () => ReturnType<LanguageModelV2['doStream']>;
5610
- params: LanguageModelV2CallOptions;
5611
- model: LanguageModelV2;
5612
- }) => Promise<Awaited<ReturnType<LanguageModelV2['doGenerate']>>>;
5613
- /**
5614
- * Wraps the stream operation of the language model.
5615
- *
5616
- * @param options - Object containing the stream function, parameters, and model.
5617
- * @param options.doGenerate - The original generate function.
5618
- * @param options.doStream - The original stream function.
5619
- * @param options.params - The parameters for the stream call. If the
5620
- * `transformParams` middleware is used, this will be the transformed parameters.
5621
- * @param options.model - The language model instance.
5622
- * @returns A promise that resolves to the result of the stream operation.
5623
- */
5624
- wrapStream?: (options: {
5625
- doGenerate: () => ReturnType<LanguageModelV2['doGenerate']>;
5626
- doStream: () => ReturnType<LanguageModelV2['doStream']>;
5627
- params: LanguageModelV2CallOptions;
5628
- model: LanguageModelV2;
5629
- }) => PromiseLike<Awaited<ReturnType<LanguageModelV2['doStream']>>>;
5630
- };
5631
-
5632
5406
  /**
5633
5407
  * A prompt is a list of messages.
5634
5408
  *
@@ -8170,11 +7944,12 @@ export declare function pipeAgentUIStreamToResponse<CALL_OPTIONS = never, TOOLS
8170
7944
  * @param options.statusText - Optional HTTP status text.
8171
7945
  * @param options.headers - Optional response headers.
8172
7946
  * @param options.textStream - The text stream to pipe.
7947
+ * @returns A promise that resolves when the stream has been written.
8173
7948
  */
8174
7949
  export declare function pipeTextStreamToResponse({ response, status, statusText, headers, textStream, }: {
8175
7950
  response: ServerResponse;
8176
7951
  textStream: ReadableStream<string>;
8177
- } & ResponseInit): void;
7952
+ } & ResponseInit): Promise<void>;
8178
7953
 
8179
7954
  /**
8180
7955
  * Pipes a UI message stream to a Node.js ServerResponse object.
@@ -8186,11 +7961,12 @@ export declare function pipeTextStreamToResponse({ response, status, statusText,
8186
7961
  * @param options.headers - Additional HTTP headers to include in the response.
8187
7962
  * @param options.stream - The UI message chunk stream to send.
8188
7963
  * @param options.consumeSseStream - Optional callback to consume a copy of the SSE stream independently.
7964
+ * @returns A promise that resolves when the stream has been written.
8189
7965
  */
8190
7966
  export declare function pipeUIMessageStreamToResponse({ response, status, statusText, headers, stream, consumeSseStream, }: {
8191
7967
  response: ServerResponse;
8192
7968
  stream: ReadableStream<UIMessageChunk>;
8193
- } & UIMessageStreamResponseInit): void;
7969
+ } & UIMessageStreamResponseInit): Promise<void>;
8194
7970
 
8195
7971
  declare const postFormDataToApi: <T>({ url, headers, formData, failedResponseHandler, successfulResponseHandler, abortSignal, fetch, }: {
8196
7972
  url: string;
@@ -8277,6 +8053,8 @@ export declare type PrepareSendMessagesRequest<UI_MESSAGE extends UIMessage> = (
8277
8053
  api?: string;
8278
8054
  }>;
8279
8055
 
8056
+ declare type PrepareStepCallSettings = Pick<CallSettings, 'maxOutputTokens' | 'temperature' | 'topP' | 'topK' | 'presencePenalty' | 'frequencyPenalty' | 'stopSequences' | 'seed'>;
8057
+
8280
8058
  /**
8281
8059
  * Function that you can use to provide different settings for a step.
8282
8060
  *
@@ -8315,9 +8093,13 @@ export declare type PrepareStepFunction<TOOLS extends Record<string, Tool> = Rec
8315
8093
 
8316
8094
  /**
8317
8095
  * The result type returned by a {@link PrepareStepFunction},
8318
- * allowing per-step overrides of model, tools, or messages.
8096
+ * allowing per-step overrides of model call settings, model, tools, or
8097
+ * messages.
8098
+ *
8099
+ * Model call setting overrides apply only to the current step. Undefined
8100
+ * settings fall back to the outer call settings.
8319
8101
  */
8320
- export declare type PrepareStepResult<TOOLS extends Record<string, Tool> = Record<string, Tool>> = {
8102
+ export declare type PrepareStepResult<TOOLS extends Record<string, Tool> = Record<string, Tool>> = ({
8321
8103
  /**
8322
8104
  * Optionally override which LanguageModel instance is used for this step.
8323
8105
  */
@@ -8354,7 +8136,7 @@ export declare type PrepareStepResult<TOOLS extends Record<string, Tool> = Recor
8354
8136
  * container IDs for Anthropic's code execution.
8355
8137
  */
8356
8138
  providerOptions?: ProviderOptions;
8357
- } | undefined;
8139
+ } & PrepareStepCallSettings) | undefined;
8358
8140
 
8359
8141
  /**
8360
8142
  * Prompt part of the AI function options.
@@ -10253,7 +10035,8 @@ export declare type StepResult<TOOLS extends ToolSet> = {
10253
10035
  */
10254
10036
  readonly content: Array<ContentPart<TOOLS>>;
10255
10037
  /**
10256
- * The generated text.
10038
+ * The concatenation of all text parts generated in this step.
10039
+ * It is an empty string if the step contains no text parts.
10257
10040
  */
10258
10041
  readonly text: string;
10259
10042
  /**
@@ -10591,7 +10374,7 @@ export declare interface StreamObjectResult<PARTIAL, RESULT, ELEMENT_STREAM> {
10591
10374
  * @param response A Node.js response-like object (ServerResponse).
10592
10375
  * @param init Optional headers, status code, and status text.
10593
10376
  */
10594
- pipeTextStreamToResponse(response: ServerResponse_2, init?: ResponseInit): void;
10377
+ pipeTextStreamToResponse(response: ServerResponse_2, init?: ResponseInit): Promise<void>;
10595
10378
  /**
10596
10379
  * Creates a simple text stream response.
10597
10380
  * The response has a `Content-Type` header set to `text/plain; charset=utf-8`.
@@ -11069,8 +10852,9 @@ export declare interface StreamTextResult<TOOLS extends ToolSet, OUTPUT extends
11069
10852
  readonly providerMetadata: PromiseLike<ProviderMetadata | undefined>;
11070
10853
  /**
11071
10854
  * A text stream that returns only the generated text deltas. You can use it
11072
- * as either an AsyncIterable or a ReadableStream. When an error occurs, the
11073
- * stream will throw the error.
10855
+ * as either an AsyncIterable or a ReadableStream. Error parts are not
10856
+ * surfaced in this stream. Use the `onError` callback or `fullStream` to
10857
+ * observe them.
11074
10858
  */
11075
10859
  readonly textStream: AsyncIterableStream<string>;
11076
10860
  /**
@@ -11117,7 +10901,7 @@ export declare interface StreamTextResult<TOOLS extends ToolSet, OUTPUT extends
11117
10901
  /**
11118
10902
  * Writes UI message stream output to a Node.js response-like object.
11119
10903
  */
11120
- pipeUIMessageStreamToResponse<UI_MESSAGE extends UIMessage>(response: ServerResponse, options?: UIMessageStreamResponseInit & UIMessageStreamOptions<UI_MESSAGE>): void;
10904
+ pipeUIMessageStreamToResponse<UI_MESSAGE extends UIMessage>(response: ServerResponse, options?: UIMessageStreamResponseInit & UIMessageStreamOptions<UI_MESSAGE>): Promise<void>;
11121
10905
  /**
11122
10906
  * Writes text delta output to a Node.js response-like object.
11123
10907
  * It sets a `Content-Type` header to `text/plain; charset=utf-8` and
@@ -11126,7 +10910,7 @@ export declare interface StreamTextResult<TOOLS extends ToolSet, OUTPUT extends
11126
10910
  * @param response A Node.js response-like object (ServerResponse).
11127
10911
  * @param init Optional headers, status code, and status text.
11128
10912
  */
11129
- pipeTextStreamToResponse(response: ServerResponse, init?: ResponseInit): void;
10913
+ pipeTextStreamToResponse(response: ServerResponse, init?: ResponseInit): Promise<void>;
11130
10914
  /**
11131
10915
  * Converts the result to a streamed response object with a stream data part stream.
11132
10916
  *
@@ -11201,8 +10985,6 @@ declare const symbol$9_2: unique symbol;
11201
10985
 
11202
10986
  declare const symbol$a: unique symbol;
11203
10987
 
11204
- declare const symbol$a_2: unique symbol;
11205
-
11206
10988
  declare const symbol$b: unique symbol;
11207
10989
 
11208
10990
  declare const symbol$b_2: unique symbol;
@@ -12971,136 +12753,7 @@ export declare type UIMessageChunk<METADATA = unknown, DATA_TYPES extends UIData
12971
12753
  messageMetadata: METADATA;
12972
12754
  };
12973
12755
 
12974
- export declare const uiMessageChunkSchema: _ai_sdk_provider_utils.LazySchema<{
12975
- type: "text-start";
12976
- id: string;
12977
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
12978
- } | {
12979
- type: "text-delta";
12980
- id: string;
12981
- delta: string;
12982
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
12983
- } | {
12984
- type: "text-end";
12985
- id: string;
12986
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
12987
- } | {
12988
- type: "error";
12989
- errorText: string;
12990
- } | {
12991
- type: "tool-input-start";
12992
- toolCallId: string;
12993
- toolName: string;
12994
- providerExecuted?: boolean | undefined;
12995
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
12996
- toolMetadata?: JSONObject | undefined;
12997
- dynamic?: boolean | undefined;
12998
- title?: string | undefined;
12999
- } | {
13000
- type: "tool-input-delta";
13001
- toolCallId: string;
13002
- inputTextDelta: string;
13003
- } | {
13004
- type: "tool-input-available";
13005
- toolCallId: string;
13006
- toolName: string;
13007
- input: unknown;
13008
- providerExecuted?: boolean | undefined;
13009
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
13010
- toolMetadata?: JSONObject | undefined;
13011
- dynamic?: boolean | undefined;
13012
- title?: string | undefined;
13013
- } | {
13014
- type: "tool-input-error";
13015
- toolCallId: string;
13016
- toolName: string;
13017
- input: unknown;
13018
- errorText: string;
13019
- providerExecuted?: boolean | undefined;
13020
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
13021
- toolMetadata?: JSONObject | undefined;
13022
- dynamic?: boolean | undefined;
13023
- title?: string | undefined;
13024
- } | {
13025
- type: "tool-approval-request";
13026
- approvalId: string;
13027
- toolCallId: string;
13028
- signature?: string | undefined;
13029
- } | {
13030
- type: "tool-output-available";
13031
- toolCallId: string;
13032
- output: unknown;
13033
- providerExecuted?: boolean | undefined;
13034
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
13035
- toolMetadata?: JSONObject | undefined;
13036
- dynamic?: boolean | undefined;
13037
- preliminary?: boolean | undefined;
13038
- } | {
13039
- type: "tool-output-error";
13040
- toolCallId: string;
13041
- errorText: string;
13042
- providerExecuted?: boolean | undefined;
13043
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
13044
- toolMetadata?: JSONObject | undefined;
13045
- dynamic?: boolean | undefined;
13046
- } | {
13047
- type: "tool-output-denied";
13048
- toolCallId: string;
13049
- } | {
13050
- type: "reasoning-start";
13051
- id: string;
13052
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
13053
- } | {
13054
- type: "reasoning-delta";
13055
- id: string;
13056
- delta: string;
13057
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
13058
- } | {
13059
- type: "reasoning-end";
13060
- id: string;
13061
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
13062
- } | {
13063
- type: "source-url";
13064
- sourceId: string;
13065
- url: string;
13066
- title?: string | undefined;
13067
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
13068
- } | {
13069
- type: "source-document";
13070
- sourceId: string;
13071
- mediaType: string;
13072
- title: string;
13073
- filename?: string | undefined;
13074
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
13075
- } | {
13076
- type: "file";
13077
- url: string;
13078
- mediaType: string;
13079
- providerMetadata?: _ai_sdk_provider.SharedV3ProviderMetadata | undefined;
13080
- } | {
13081
- type: `data-${string}`;
13082
- data: unknown;
13083
- id?: string | undefined;
13084
- transient?: boolean | undefined;
13085
- } | {
13086
- type: "start-step";
13087
- } | {
13088
- type: "finish-step";
13089
- } | {
13090
- type: "start";
13091
- messageId?: string | undefined;
13092
- messageMetadata?: unknown;
13093
- } | {
13094
- type: "finish";
13095
- finishReason?: "length" | "error" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
13096
- messageMetadata?: unknown;
13097
- } | {
13098
- type: "abort";
13099
- reason?: string | undefined;
13100
- } | {
13101
- type: "message-metadata";
13102
- messageMetadata: unknown;
13103
- }>;
12756
+ export declare const uiMessageChunkSchema: _ai_sdk_provider_utils.LazySchema<UIMessageChunk<unknown, UIDataTypes>>;
13104
12757
 
13105
12758
  export declare type UIMessagePart<DATA_TYPES extends UIDataTypes, TOOLS extends UITools> = TextUIPart | ReasoningUIPart | ToolUIPart<TOOLS> | DynamicToolUIPart | SourceUrlUIPart | SourceDocumentUIPart | FileUIPart | DataUIPart<DATA_TYPES> | StepStartUIPart;
13106
12759
 
@@ -13972,5 +13625,5 @@ export declare function zodSchema<OBJECT>(zodSchema: z4.core.$ZodType<OBJECT, an
13972
13625
  }): Schema<OBJECT>;
13973
13626
 
13974
13627
  export { }
13975
- export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, LazySchema as LazySchema, ZodSchema as ZodSchema, StandardSchema as StandardSchema, ValidationResult as ValidationResult, ParseResult as ParseResult, ProviderOptions as ProviderOptions, ReasoningPart as ReasoningPart, ToolOutputProperties as ToolOutputProperties, ToolResultOutput as ToolResultOutput, ToolNeedsApprovalFunction as ToolNeedsApprovalFunction, TypeValidationContext as TypeValidationContext, EmbeddingModelV2 as EmbeddingModelV2, EmbeddingModelV3Embedding as EmbeddingModelV3Embedding, EmbeddingModelV3Middleware as EmbeddingModelV3Middleware, ImageModelV2 as ImageModelV2, ImageModelV3ProviderMetadata as ImageModelV3ProviderMetadata, ImageModelV2ProviderMetadata as ImageModelV2ProviderMetadata, ImageModelV3Middleware as ImageModelV3Middleware, GlobalProviderModelId as GlobalProviderModelId, LanguageModelV2 as LanguageModelV2, SharedV3Warning as SharedV3Warning, LanguageModelV3Middleware as LanguageModelV3Middleware, SharedV3ProviderMetadata as SharedV3ProviderMetadata, SpeechModelV2 as SpeechModelV2, TranscriptionModelV2 as TranscriptionModelV2, ImageModelV3Usage as ImageModelV3Usage, DeepPartialInternal as DeepPartialInternal, AttributeValue as AttributeValue, Tracer as Tracer, BaseToolCall as BaseToolCall, Source as Source, ResponseMessage as ResponseMessage, LanguageModelV3ToolCall as LanguageModelV3ToolCall, GenerateTextIncludeSettings as GenerateTextIncludeSettings, ValueOf as ValueOf, asUITool as asUITool, _ai_sdk_provider_utils as _ai_sdk_provider_utils, _ai_sdk_provider as _ai_sdk_provider, DataUIMessageChunk as DataUIMessageChunk, InferElementOutput as InferElementOutput, ConsumeStreamOptions as ConsumeStreamOptions, StreamTextIncludeSettings as StreamTextIncludeSettings, StreamTextOnAbortCallback as StreamTextOnAbortCallback, CallbackModelInfo as CallbackModelInfo, LanguageModelV3ToolChoice as LanguageModelV3ToolChoice, Listener as Listener, MaybePromiseLike as MaybePromiseLike, Output_2 as Output_2, InferAgentTools as InferAgentTools, UIMessageStreamResponseInit as UIMessageStreamResponseInit, getOriginalFetch as getOriginalFetch, InferUIMessageTools as InferUIMessageTools, InferUIMessageToolCall as InferUIMessageToolCall, UIDataTypesToSchemas as UIDataTypesToSchemas, InferUIMessageData as InferUIMessageData, InferUIMessageMetadata as InferUIMessageMetadata, Resolvable as Resolvable, FetchFunction as FetchFunction, SingleRequestTextStreamPart as SingleRequestTextStreamPart, RetryErrorReason_2 as RetryErrorReason_2, GenerateImagePrompt as GenerateImagePrompt, JSONValue_2 as JSONValue_2, Job as Job, StreamObjectOnErrorCallback as StreamObjectOnErrorCallback, VideoModelResponseMetadata as VideoModelResponseMetadata, VideoModelProviderMetadata as VideoModelProviderMetadata, VideoModel as VideoModel, VideoModelV3FrameType as VideoModelV3FrameType, EmbeddingModelV3CallOptions as EmbeddingModelV3CallOptions, LanguageModelV3CallOptions as LanguageModelV3CallOptions, JSONObject as JSONObject, LanguageModelV3 as LanguageModelV3, EmbeddingModelV3 as EmbeddingModelV3, ImageModelV3 as ImageModelV3, TranscriptionModelV3 as TranscriptionModelV3, SpeechModelV3 as SpeechModelV3, RerankingModelV3 as RerankingModelV3, VideoModelV3 as VideoModelV3, ProviderV2 as ProviderV2, ExtractModelId as ExtractModelId, ExtractLiteralUnion as ExtractLiteralUnion, ProviderV3 as ProviderV3 };
13976
- export { schemaSymbol, symbol$1, symbol$1_2, symbol$2, symbol$2_2, symbol$3, symbol$3_2, symbol$4, symbol$4_2, symbol$5, symbol$5_2, symbol$6, symbol$6_2, symbol$7, symbol$7_2, symbol$8, symbol$8_2, symbol$9, symbol$9_2, symbol$a, symbol$a_2, symbol$b, symbol$b_2, symbol$c, symbol$c_2, symbol$d, symbol$d_2, symbol$e, symbol$f, symbol$g, symbol$h, symbol$i, symbol$j, symbol$k, symbol, symbol_2, symbol_3 };
13628
+ export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, LazySchema as LazySchema, ZodSchema as ZodSchema, StandardSchema as StandardSchema, ValidationResult as ValidationResult, ParseResult as ParseResult, ProviderOptions as ProviderOptions, ReasoningPart as ReasoningPart, ToolOutputProperties as ToolOutputProperties, ToolResultOutput as ToolResultOutput, ToolNeedsApprovalFunction as ToolNeedsApprovalFunction, TypeValidationContext as TypeValidationContext, EmbeddingModelV2 as EmbeddingModelV2, EmbeddingModelV3Embedding as EmbeddingModelV3Embedding, EmbeddingModelV3Middleware as EmbeddingModelV3Middleware, ImageModelV2 as ImageModelV2, ImageModelV3ProviderMetadata as ImageModelV3ProviderMetadata, ImageModelV2ProviderMetadata as ImageModelV2ProviderMetadata, ImageModelV3Middleware as ImageModelV3Middleware, GlobalProviderModelId as GlobalProviderModelId, LanguageModelV2 as LanguageModelV2, SharedV3Warning as SharedV3Warning, LanguageModelV3Middleware as LanguageModelV3Middleware, SharedV3ProviderMetadata as SharedV3ProviderMetadata, SpeechModelV2 as SpeechModelV2, TranscriptionModelV2 as TranscriptionModelV2, ImageModelV3Usage as ImageModelV3Usage, DeepPartialInternal as DeepPartialInternal, AttributeValue as AttributeValue, Tracer as Tracer, BaseToolCall as BaseToolCall, Source as Source, PrepareStepCallSettings as PrepareStepCallSettings, ResponseMessage as ResponseMessage, LanguageModelV3ToolCall as LanguageModelV3ToolCall, GenerateTextIncludeSettings as GenerateTextIncludeSettings, ValueOf as ValueOf, asUITool as asUITool, _ai_sdk_provider_utils as _ai_sdk_provider_utils, DataUIMessageChunk as DataUIMessageChunk, InferElementOutput as InferElementOutput, ConsumeStreamOptions as ConsumeStreamOptions, StreamTextIncludeSettings as StreamTextIncludeSettings, StreamTextOnAbortCallback as StreamTextOnAbortCallback, CallbackModelInfo as CallbackModelInfo, LanguageModelV3ToolChoice as LanguageModelV3ToolChoice, Listener as Listener, MaybePromiseLike as MaybePromiseLike, Output_2 as Output_2, InferAgentTools as InferAgentTools, UIMessageStreamResponseInit as UIMessageStreamResponseInit, getOriginalFetch as getOriginalFetch, InferUIMessageTools as InferUIMessageTools, InferUIMessageToolCall as InferUIMessageToolCall, UIDataTypesToSchemas as UIDataTypesToSchemas, InferUIMessageData as InferUIMessageData, InferUIMessageMetadata as InferUIMessageMetadata, Resolvable as Resolvable, FetchFunction as FetchFunction, SingleRequestTextStreamPart as SingleRequestTextStreamPart, RetryErrorReason_2 as RetryErrorReason_2, GenerateImagePrompt as GenerateImagePrompt, JSONValue_2 as JSONValue_2, Job as Job, StreamObjectOnErrorCallback as StreamObjectOnErrorCallback, VideoModelResponseMetadata as VideoModelResponseMetadata, VideoModelProviderMetadata as VideoModelProviderMetadata, VideoModel as VideoModel, VideoModelV3FrameType as VideoModelV3FrameType, EmbeddingModelV3CallOptions as EmbeddingModelV3CallOptions, LanguageModelV3CallOptions as LanguageModelV3CallOptions, JSONObject as JSONObject, LanguageModelV3 as LanguageModelV3, EmbeddingModelV3 as EmbeddingModelV3, ImageModelV3 as ImageModelV3, TranscriptionModelV3 as TranscriptionModelV3, SpeechModelV3 as SpeechModelV3, RerankingModelV3 as RerankingModelV3, VideoModelV3 as VideoModelV3, ProviderV2 as ProviderV2, ExtractModelId as ExtractModelId, ExtractLiteralUnion as ExtractLiteralUnion, ProviderV3 as ProviderV3 };
13629
+ export { schemaSymbol, symbol$1, symbol$1_2, symbol$2, symbol$2_2, symbol$3, symbol$3_2, symbol$4, symbol$4_2, symbol$5, symbol$5_2, symbol$6, symbol$6_2, symbol$7, symbol$7_2, symbol$8, symbol$8_2, symbol$9, symbol$9_2, symbol$a, symbol$b, symbol$b_2, symbol$c, symbol$c_2, symbol$d, symbol$d_2, symbol$e, symbol$f, symbol$g, symbol$h, symbol$i, symbol$j, symbol$k, symbol, symbol_2, symbol_3 };