ai 7.0.148 → 7.0.150

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 (42) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/index.d.ts +168 -3
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +325 -35
  5. package/dist/index.js.map +1 -1
  6. package/dist/internal/index.d.ts +2 -1
  7. package/dist/internal/index.d.ts.map +1 -1
  8. package/dist/internal/index.js +4 -1
  9. package/dist/internal/index.js.map +1 -1
  10. package/dist/test/index.d.ts +17 -2
  11. package/dist/test/index.d.ts.map +1 -1
  12. package/dist/test/index.js +12 -1
  13. package/dist/test/index.js.map +1 -1
  14. package/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +7 -0
  15. package/docs/03-ai-sdk-core/18-code-mode.mdx +3 -1
  16. package/docs/03-ai-sdk-core/36-transcription.mdx +40 -39
  17. package/docs/03-ai-sdk-core/37-speech.mdx +66 -0
  18. package/docs/03-ai-sdk-core/60-telemetry.mdx +25 -2
  19. package/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +1 -1
  20. package/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +4 -4
  21. package/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +7 -7
  22. package/docs/07-reference/01-ai-sdk-core/12-stream-speech.mdx +195 -0
  23. package/docs/07-reference/01-ai-sdk-core/index.mdx +5 -0
  24. package/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +1 -1
  25. package/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +1 -1
  26. package/docs/07-reference/03-ai-sdk-rsc/01-stream-ui.mdx +1 -1
  27. package/docs/07-reference/05-ai-sdk-errors/ai-tool-choice-violation-error.mdx +12 -7
  28. package/package.json +12 -12
  29. package/src/error/no-speech-generated-error.ts +5 -1
  30. package/src/error/tool-choice-violation-error.ts +6 -4
  31. package/src/generate-speech/index.ts +7 -0
  32. package/src/generate-speech/is-streaming-speech-model.ts +17 -0
  33. package/src/generate-speech/stream-speech-result.ts +95 -0
  34. package/src/generate-speech/stream-speech.ts +569 -0
  35. package/src/generate-text/collect-tool-approvals.ts +10 -0
  36. package/src/generate-text/generate-text.ts +24 -12
  37. package/src/generate-text/stream-language-model-call.ts +37 -12
  38. package/src/generate-text/stream-text.ts +4 -1
  39. package/src/test/mock-streaming-speech-model-v4.ts +28 -0
  40. package/src/types/language-model.ts +2 -0
  41. package/src/ui/chat.ts +40 -12
  42. package/src/ui-message-stream/ui-message-chunks.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # ai
2
2
 
3
+ ## 7.0.150
4
+
5
+ ### Patch Changes
6
+
7
+ - 8e18d59: feat(ai): add experimental_streamSpeech
8
+
9
+ Streams speech audio from a string, or an array, iterable, or stream of text deltas and/or text parts (each with an optional `voice` and `providerOptions`) using speech models that implement the experimental `Experimental_StreamingSpeechModelV4` extension. Returns a single-consumer `audioStream` / `fullStream` plus `usage`, `warnings`, `responses`, and `providerMetadata` promises. Provider `error` parts are non-fatal and reported through `onError` (default `console.error`). A user abort or a cancel rejects the result promises immediately. Exports the `Experimental_SpeechTextPart`, `Experimental_SpeechStreamPart`, `Experimental_SpeechStreamUsage`, and `Experimental_StreamSpeechResult` types, adds an optional `cause` to `NoSpeechGeneratedError`, and adds `Experimental_MockStreamingSpeechModelV4` to `ai/test`.
10
+
11
+ - Updated dependencies [8202f5b]
12
+ - Updated dependencies [85d84a1]
13
+ - @ai-sdk/gateway@4.0.123
14
+ - @ai-sdk/provider-utils@5.0.67
15
+ - @ai-sdk/provider@4.0.33
16
+
17
+ ## 7.0.149
18
+
19
+ ### Patch Changes
20
+
21
+ - 1727442: fix(ai): process only the first approval response per tool call, so repeated or conflicting responses in the final tool message no longer execute a tool twice or both execute and deny it
22
+ - 0a5d0e7: Fix `toolChoice: 'none'` by forwarding it to the Hugging Face Responses API and rejecting tool calls before local execution in `generateText`, `streamText`, and `WorkflowAgent`. Streamed tool parts are withheld so client-side tools cannot act on them, and `repairToolCall` and `experimental_refineToolInput` are not invoked for rejected tool calls.
23
+ - 10026d1: Add the `interrupted` finish reason for provider streams that end without a completion signal. Preserve partial output without introducing an error solely for interruption, and stop tool execution, agent continuation, and automatic UI follow-ups for interrupted responses, including late tool results and approvals. Provider detection and emission will be added separately.
24
+
25
+ **Compatibility notice:** Adding `interrupted` to the public finish-reason types can break type checking after upgrading, even though this is a patch release. Exhaustive switches (for example, using an `assertNever` fallback) and mappings such as `Record<FinishReason, string>` must handle the new value. Update any custom validation or application logic that assumes the existing set of finish reasons is exhaustive.
26
+
27
+ When providers begin emitting `interrupted`, a stream ending without a completion signal will preserve partial output and report this finish reason without emitting an error solely for the interruption. Applications that need to detect incomplete responses should check `finishReason === 'interrupted'` as well as their existing error handling.
28
+
29
+ - Updated dependencies [101ce42]
30
+ - Updated dependencies [e104368]
31
+ - Updated dependencies [eb1f056]
32
+ - Updated dependencies [10026d1]
33
+ - Updated dependencies [5893e99]
34
+ - @ai-sdk/gateway@4.0.122
35
+ - @ai-sdk/provider@4.0.32
36
+ - @ai-sdk/provider-utils@5.0.66
37
+
3
38
  ## 7.0.148
4
39
 
5
40
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { GatewayAsyncJobMetadata, GatewayModelId, GatewayModelId as GatewayModelId$1, GatewayProviderMetadata, createGateway, gateway } from "@ai-sdk/gateway";
2
2
  import { Arrayable, AssistantContent, AssistantModelMessage, AssistantModelMessage as AssistantModelMessage$1, Context, DataContent, DataContent as DataContent$1, DownloadError, Experimental_SandboxProcess, Experimental_SandboxSession, Experimental_SandboxSession as Experimental_SandboxSession$1, Experimental_ToolCallerTool, Experimental_ToolCallerTool as Experimental_ToolCallerTool$1, FetchFunction, FilePart, FilePart as FilePart$1, FlexibleSchema, FlexibleSchema as FlexibleSchema$1, HasRequiredKey, IdGenerator, IdGenerator as IdGenerator$1, ImagePart, InferSchema, InferSchema as InferSchema$1, InferToolContext, InferToolInput, InferToolInput as InferToolInput$1, InferToolOutput, InferToolOutput as InferToolOutput$1, InferToolSetContext, MaybePromiseLike, ModelMessage, ModelMessage as ModelMessage$1, ProviderOptions, ReasoningFilePart, ReasoningPart, Resolvable, Schema, SystemModelMessage, SystemModelMessage as SystemModelMessage$1, TextPart, TextPart as TextPart$1, Tool, Tool as Tool$1, ToolApprovalRequest, ToolApprovalResponse, ToolCall, ToolCallPart, ToolContent, ToolExecuteFunction, ToolExecutionOptions, ToolExecutionOptions as ToolExecutionOptions$1, ToolModelMessage, ToolModelMessage as ToolModelMessage$1, ToolResultPart, ToolSet, ToolSet as ToolSet$1, UserContent, UserModelMessage, UserModelMessage as UserModelMessage$1, WebSocketConstructor, asSchema, createIdGenerator, dynamicTool, experimental_toolCaller, generateId as generateId$1, jsonSchema, parseJsonEventStream, tool as tool$1, zodSchema } from "@ai-sdk/provider-utils";
3
- import { AISDKError, AISDKError as AISDKError$1, APICallError, EmbeddingModelV2, EmbeddingModelV3, EmbeddingModelV4, EmbeddingModelV4CallOptions, EmbeddingModelV4Embedding, EmbeddingModelV4Middleware, EmptyResponseBodyError, Experimental_BatchV4, Experimental_BatchV4Error, Experimental_BatchV4ModelIds, Experimental_BatchV4StartResult, Experimental_BatchV4Status, Experimental_DecisionModelV4, Experimental_DecisionModelV4CallOptions, Experimental_DecisionModelV4Question, Experimental_DecisionModelV4Question as Experimental_DecisionQuestion, Experimental_DecisionModelV4Result, Experimental_DecisionRefusalError, Experimental_DecisionUnsupportedQuestionTypeError, Experimental_DecisionUnsupportedQuestionTypeError as Experimental_DecisionUnsupportedQuestionTypeError$1, Experimental_EvaluationModelV4, Experimental_RealtimeFactoryV4, Experimental_RealtimeFactoryV4GetTokenOptions, Experimental_RealtimeFactoryV4GetTokenResult, Experimental_RealtimeModelV4, Experimental_RealtimeModelV4ClientEvent, Experimental_RealtimeModelV4ServerEvent, Experimental_RealtimeModelV4SessionConfig, Experimental_RealtimeModelV4ToolDefinition, Experimental_SpeechTranslationModelV4, Experimental_SpeechTranslationModelV4Usage, Experimental_VideoModelV3, Experimental_VideoModelV4, Experimental_VideoModelV4FrameType, Experimental_VideoModelV4OperationStatusResult, Experimental_VideoModelV4OperationWebhook, FilesV4, FilesV4UploadFileCallOptions, ImageModelV2, ImageModelV2ProviderMetadata, ImageModelV3, ImageModelV4, ImageModelV4Middleware, ImageModelV4ProviderMetadata, ImageModelV4Usage, InvalidPromptError, InvalidResponseDataError, JSONObject, JSONParseError, JSONParseError as JSONParseError$1, JSONSchema7, JSONSchema7 as JSONSchema7$1, JSONValue as JSONValue$1, LanguageModelV2, LanguageModelV3, LanguageModelV4, LanguageModelV4CallOptions, LanguageModelV4Citation, LanguageModelV4Content, LanguageModelV4Middleware, LanguageModelV4Prompt, LanguageModelV4Source, LanguageModelV4ToolCall, LanguageModelV4ToolChoice, LoadAPIKeyError, LoadSettingError, NoContentGeneratedError, NoSuchModelError, NoSuchModelError as NoSuchModelError$1, NoSuchProviderReferenceError, ProviderV2, ProviderV3, ProviderV4, RerankingModelV3, RerankingModelV4, SharedV4AudioFormat, SharedV4Headers, SharedV4ProviderMetadata, SharedV4ProviderReference, SharedV4Warning, SkillsV4, SkillsV4File, SkillsV4UploadSkillCallOptions, SkillsV4UploadSkillResult, SpeechModelV2, SpeechModelV3, SpeechModelV4, TooManyEmbeddingValuesForCallError, TranscriptionModelV2, TranscriptionModelV3, TranscriptionModelV4, TypeValidationError, TypeValidationError as TypeValidationError$1, UnsupportedFunctionalityError } from "@ai-sdk/provider";
3
+ import { AISDKError, AISDKError as AISDKError$1, APICallError, EmbeddingModelV2, EmbeddingModelV3, EmbeddingModelV4, EmbeddingModelV4CallOptions, EmbeddingModelV4Embedding, EmbeddingModelV4Middleware, EmptyResponseBodyError, Experimental_BatchV4, Experimental_BatchV4Error, Experimental_BatchV4ModelIds, Experimental_BatchV4StartResult, Experimental_BatchV4Status, Experimental_DecisionModelV4, Experimental_DecisionModelV4CallOptions, Experimental_DecisionModelV4Question, Experimental_DecisionModelV4Question as Experimental_DecisionQuestion, Experimental_DecisionModelV4Result, Experimental_DecisionRefusalError, Experimental_DecisionUnsupportedQuestionTypeError, Experimental_DecisionUnsupportedQuestionTypeError as Experimental_DecisionUnsupportedQuestionTypeError$1, Experimental_EvaluationModelV4, Experimental_RealtimeFactoryV4, Experimental_RealtimeFactoryV4GetTokenOptions, Experimental_RealtimeFactoryV4GetTokenResult, Experimental_RealtimeModelV4, Experimental_RealtimeModelV4ClientEvent, Experimental_RealtimeModelV4ServerEvent, Experimental_RealtimeModelV4SessionConfig, Experimental_RealtimeModelV4ToolDefinition, Experimental_SpeechModelV4StreamUsage, Experimental_SpeechTranslationModelV4, Experimental_SpeechTranslationModelV4Usage, Experimental_VideoModelV3, Experimental_VideoModelV4, Experimental_VideoModelV4FrameType, Experimental_VideoModelV4OperationStatusResult, Experimental_VideoModelV4OperationWebhook, FilesV4, FilesV4UploadFileCallOptions, ImageModelV2, ImageModelV2ProviderMetadata, ImageModelV3, ImageModelV4, ImageModelV4Middleware, ImageModelV4ProviderMetadata, ImageModelV4Usage, InvalidPromptError, InvalidResponseDataError, JSONObject, JSONParseError, JSONParseError as JSONParseError$1, JSONSchema7, JSONSchema7 as JSONSchema7$1, JSONValue as JSONValue$1, LanguageModelV2, LanguageModelV3, LanguageModelV4, LanguageModelV4CallOptions, LanguageModelV4Citation, LanguageModelV4Content, LanguageModelV4Middleware, LanguageModelV4Prompt, LanguageModelV4Source, LanguageModelV4ToolCall, LanguageModelV4ToolChoice, LoadAPIKeyError, LoadSettingError, NoContentGeneratedError, NoSuchModelError, NoSuchModelError as NoSuchModelError$1, NoSuchProviderReferenceError, ProviderV2, ProviderV3, ProviderV4, RerankingModelV3, RerankingModelV4, SharedV4AudioFormat, SharedV4Headers, SharedV4ProviderMetadata, SharedV4ProviderReference, SharedV4Warning, SkillsV4, SkillsV4File, SkillsV4UploadSkillCallOptions, SkillsV4UploadSkillResult, SpeechModelV2, SpeechModelV3, SpeechModelV4, TooManyEmbeddingValuesForCallError, TranscriptionModelV2, TranscriptionModelV3, TranscriptionModelV4, TypeValidationError, TypeValidationError as TypeValidationError$1, UnsupportedFunctionalityError } from "@ai-sdk/provider";
4
4
  import { ZodType, array, boolean, custom, discriminatedUnion, enum as enum$1, instanceof as instanceof$1, lazy, literal, looseObject, never, null as null$1, number, object, record, string, union, unknown } from "zod/v4";
5
5
  import { ServerResponse } from "node:http";
6
6
  import { ServerResponse as ServerResponse$1 } from "http";
@@ -122,9 +122,10 @@ type LanguageModel = GlobalProviderModelId | LanguageModelV4 | LanguageModelV3 |
122
122
  * - `content-filter`: content filter violation stopped the model
123
123
  * - `tool-calls`: model triggered tool calls
124
124
  * - `error`: model stopped because of an error
125
+ * - `interrupted`: provider stream ended without a completion signal; output may be incomplete
125
126
  * - `other`: model stopped for other reasons
126
127
  */
127
- type FinishReason = 'stop' | 'length' | 'content-filter' | 'tool-calls' | 'error' | 'other';
128
+ type FinishReason = 'stop' | 'length' | 'content-filter' | 'tool-calls' | 'error' | 'interrupted' | 'other';
128
129
  /**
129
130
  * Registry for call warning variants. Packages that expose additional warning
130
131
  * protocols can augment this interface.
@@ -6141,6 +6142,7 @@ export declare abstract class AbstractChat<UI_MESSAGE extends UIMessage> {
6141
6142
  private sendAutomaticallyWhen?;
6142
6143
  private pendingMessagePreparations;
6143
6144
  private pendingApprovalMessageId;
6145
+ private interruptedMessageIds;
6144
6146
  private activeResponse;
6145
6147
  private activeResumeRequest;
6146
6148
  private resumableStreamState;
@@ -8113,6 +8115,7 @@ export declare class NoSpeechGeneratedError extends AISDKError$1 {
8113
8115
  readonly responses: Array<SpeechModelResponseMetadata>;
8114
8116
  constructor(options: {
8115
8117
  responses: Array<SpeechModelResponseMetadata>;
8118
+ cause?: unknown;
8116
8119
  });
8117
8120
  static isInstance(error: unknown): error is NoSpeechGeneratedError;
8118
8121
  }
@@ -8275,6 +8278,8 @@ export declare class ToolCallRepairError extends AISDKError$1 {
8275
8278
  //#region src/error/tool-choice-violation-error.d.ts
8276
8279
  declare const symbol$6: unique symbol;
8277
8280
  type EnforcedToolChoice = Extract<LanguageModelV4ToolChoice, {
8281
+ type: 'none';
8282
+ } | {
8278
8283
  type: 'required';
8279
8284
  } | {
8280
8285
  type: 'tool';
@@ -9277,6 +9282,166 @@ export declare function generateSpeech({ model, text, voice, outputFormat, instr
9277
9282
  };
9278
9283
  }): Promise<SpeechResult>;
9279
9284
  //#endregion
9285
+ //#region src/generate-speech/stream-speech-result.d.ts
9286
+ /**
9287
+ * A piece of text to synthesize. Pass a stream of these (or mix them with
9288
+ * plain strings) to give parts their own voice, e.g. for dialogue.
9289
+ */
9290
+ type SpeechTextPart = {
9291
+ type: 'text';
9292
+ text: string;
9293
+ /**
9294
+ * The voice that speaks this part (provider-specific, like the call's
9295
+ * `voice`). Single-voice providers reject a voice that differs from the
9296
+ * call's voice.
9297
+ */
9298
+ voice?: string;
9299
+ /**
9300
+ * Additional provider-specific options for this part.
9301
+ */
9302
+ providerOptions?: ProviderOptions;
9303
+ };
9304
+ type SpeechStreamPart = {
9305
+ /**
9306
+ * Audio chunk in generation order. Chunks are not necessarily
9307
+ * standalone files; concatenate them to reconstruct the audio. A chunk
9308
+ * is empty only when it carries `providerMetadata` (e.g. a turn marker).
9309
+ */
9310
+ type: 'audio';
9311
+ id?: string;
9312
+ audio: Uint8Array;
9313
+ audioFormat: SharedV4AudioFormat;
9314
+ providerMetadata?: SharedV4ProviderMetadata;
9315
+ } | {
9316
+ type: 'raw';
9317
+ rawValue: unknown;
9318
+ } | {
9319
+ type: 'error';
9320
+ error: unknown;
9321
+ };
9322
+ type SpeechStreamUsage = Experimental_SpeechModelV4StreamUsage;
9323
+ interface StreamSpeechResult {
9324
+ /**
9325
+ * Usage information reported for the call, if available.
9326
+ */
9327
+ readonly usage: PromiseLike<SpeechStreamUsage>;
9328
+ /**
9329
+ * Warnings for the call, e.g. unsupported settings.
9330
+ */
9331
+ readonly warnings: PromiseLike<Array<Warning>>;
9332
+ /**
9333
+ * Response metadata.
9334
+ */
9335
+ readonly responses: PromiseLike<Array<SpeechModelResponseMetadata>>;
9336
+ /**
9337
+ * Additional provider-specific metadata.
9338
+ */
9339
+ readonly providerMetadata: PromiseLike<Record<string, JSONObject>>;
9340
+ /**
9341
+ * Stream of audio bytes in generation order.
9342
+ *
9343
+ * `audioStream` and `fullStream` share one live stream: only one of them
9344
+ * can be accessed, and only once. Access it before any result promise;
9345
+ * accessing a result promise first consumes the stream internally.
9346
+ */
9347
+ readonly audioStream: AsyncIterableStream<Uint8Array>;
9348
+ /**
9349
+ * Full stream of speech parts (audio, raw, and error parts).
9350
+ *
9351
+ * `audioStream` and `fullStream` share one live stream: only one of them
9352
+ * can be accessed, and only once. Access it before any result promise;
9353
+ * accessing a result promise first consumes the stream internally.
9354
+ */
9355
+ readonly fullStream: AsyncIterableStream<SpeechStreamPart>;
9356
+ }
9357
+ //#endregion
9358
+ //#region src/generate-speech/stream-speech.d.ts
9359
+ /**
9360
+ * Streams speech audio using a speech model.
9361
+ *
9362
+ * @param model - The speech model to use. It must support streaming speech.
9363
+ * @param text - The text to convert to speech: a complete string, or a stream of text deltas
9364
+ * (e.g. the text stream of `streamText`) or text parts that is synthesized as it arrives.
9365
+ * A text part can set its own `voice` on providers that support several voices per stream.
9366
+ * @param voice - The voice to use for speech generation.
9367
+ * @param outputFormat - The format of the output audio chunks, e.g. `{ type: 'audio/pcm', rate: 24000 }`.
9368
+ * @param instructions - Instructions for the speech generation e.g. "Speak in a slow and steady tone".
9369
+ * @param speed - The speed of the speech generation.
9370
+ * @param language - The language for speech generation (ISO 639-1 code e.g. "en", "es", "fr") or "auto" for automatic detection.
9371
+ * @param providerOptions - Additional provider-specific options.
9372
+ * @param abortSignal - An optional abort signal that can be used to cancel the call.
9373
+ * @param headers - Additional HTTP/WebSocket headers to send when supported by the provider.
9374
+ * @param includeRawChunks - When true, raw provider chunks are included in `fullStream`.
9375
+ * @param onError - Called for each provider error part; defaults to `console.error`.
9376
+ *
9377
+ * @returns A result object with the audio stream and the final usage and metadata.
9378
+ */
9379
+ declare function streamSpeech({ model, text, voice, outputFormat, instructions, speed, language, providerOptions, abortSignal, headers, includeRawChunks, onError, _internal: { currentDate } }: {
9380
+ /**
9381
+ * The speech model to use.
9382
+ */
9383
+ model: SpeechModel;
9384
+ /**
9385
+ * The text to convert to speech: a complete string, or an array, iterable,
9386
+ * or stream of text deltas and/or text parts.
9387
+ */
9388
+ text: string | Iterable<string | SpeechTextPart> | AsyncIterable<string | SpeechTextPart> | ReadableStream<string | SpeechTextPart>;
9389
+ /**
9390
+ * The voice to use for speech generation.
9391
+ */
9392
+ voice?: string;
9393
+ /**
9394
+ * The desired format of the output audio chunks, e.g.
9395
+ * `{ type: 'audio/pcm', rate: 24000 }` or `{ type: 'audio/mpeg' }`.
9396
+ * Supported formats are provider-specific.
9397
+ */
9398
+ outputFormat?: SharedV4AudioFormat;
9399
+ /**
9400
+ * Instructions for the speech generation e.g. "Speak in a slow and steady tone".
9401
+ */
9402
+ instructions?: string;
9403
+ /**
9404
+ * The speed of the speech generation.
9405
+ */
9406
+ speed?: number;
9407
+ /**
9408
+ * The language for speech generation. This should be an ISO 639-1 language code (e.g. "en", "es", "fr")
9409
+ * or "auto" for automatic language detection. Provider support varies.
9410
+ */
9411
+ language?: string;
9412
+ /**
9413
+ * Additional provider-specific options.
9414
+ */
9415
+ providerOptions?: ProviderOptions;
9416
+ /**
9417
+ * Abort signal.
9418
+ */
9419
+ abortSignal?: AbortSignal;
9420
+ /**
9421
+ * Additional headers to include in the request, if supported by the provider.
9422
+ */
9423
+ headers?: Record<string, string>;
9424
+ /**
9425
+ * When true, providers should include raw provider chunks in the stream.
9426
+ */
9427
+ includeRawChunks?: boolean;
9428
+ /**
9429
+ * Called for each error part the provider reports. Error parts are not
9430
+ * fatal: `fullStream` includes them and `audioStream` skips them. The
9431
+ * callback is not awaited, and errors it throws are ignored.
9432
+ * Defaults to logging the error with `console.error`.
9433
+ */
9434
+ onError?: (event: {
9435
+ error: unknown;
9436
+ }) => void | PromiseLike<void>;
9437
+ /**
9438
+ * Internal test hooks.
9439
+ */
9440
+ _internal?: {
9441
+ currentDate?: () => Date;
9442
+ };
9443
+ }): StreamSpeechResult;
9444
+ //#endregion
9280
9445
  //#region src/generate-speech/index.d.ts
9281
9446
  /**
9282
9447
  * @deprecated Use `generateSpeech` instead.
@@ -10981,5 +11146,5 @@ export declare function uploadSkill({ api, files, displayTitle, providerOptions
10981
11146
  files: UploadSkillFile[];
10982
11147
  }): Promise<UploadSkillResult>;
10983
11148
  //#endregion
10984
- export { AISDKError, APICallError, type ActiveTools, type Agent, type AgentCallParameters, type AgentStreamParameters, type AssistantContent, type AssistantModelMessage, type AsyncIterableStream, type CallWarning, type CallWarningRegistry, type ChatAddToolApproveResponseFunction, type ChatAddToolOutputFunction, type ChatInit, type ChatOnDataCallback, type ChatOnErrorCallback, type ChatOnFinishCallback, type ChatOnToolCallCallback, type ChatRequestOptions, type ChatState, type ChatStatus, type ChatTransport, type ChunkDetector, type Citation, type CompletionRequestOptions, type ContentPart, type CreateUIMessage, type CustomContentUIPart, type DataContent, type DataUIPart, type DeepPartial, type DirectChatTransportOptions, DownloadError, type DynamicToolCall, type DynamicToolError, type DynamicToolResult, type DynamicToolUIPart, type Embedding, type EmbeddingModel, type EmbeddingModelMiddleware, type EmbeddingModelUsage, EmptyResponseBodyError, type ErrorHandler, AbstractRealtimeSession as Experimental_AbstractRealtimeSession, ToolLoopAgent as Experimental_Agent, type ToolLoopAgentSettings as Experimental_AgentSettings, type ToolLoopAgentSettings, type Batch as Experimental_Batch, type BatchError as Experimental_BatchError, type BatchItemResult as Experimental_BatchItemResult, type BatchProvider as Experimental_BatchProvider, type BatchReference as Experimental_BatchReference, type BatchRequest as Experimental_BatchRequest, type BatchStatus as Experimental_BatchStatus, type CancelBatchOptions as Experimental_CancelBatchOptions, type CancelBatchResult as Experimental_CancelBatchResult, type DecideEndEvent as Experimental_DecideEndEvent, type DecideStartEvent as Experimental_DecideStartEvent, type DecisionAnswer as Experimental_DecisionAnswer, type DecisionModel as Experimental_DecisionModel, type DecisionModelCallEndEvent as Experimental_DecisionModelCallEndEvent, type DecisionModelCallStartEvent as Experimental_DecisionModelCallStartEvent, type DecisionProviderRegistry as Experimental_DecisionProviderRegistry, type Experimental_DecisionQuestion, Experimental_DecisionRefusalError, type DecisionResult as Experimental_DecisionResult, type DecisionState as Experimental_DecisionState, type DecisionStatePart as Experimental_DecisionStatePart, Experimental_DecisionUnsupportedQuestionTypeError, type DownloadFunction as Experimental_DownloadFunction, type Experimental_GeneratedImage, type GetBatchResultsOptions as Experimental_GetBatchResultsOptions, type GetBatchStatusOptions as Experimental_GetBatchStatusOptions, type ImageBatchGenerationResult as Experimental_ImageBatchGenerationResult, type ImageBatchItemResult as Experimental_ImageBatchItemResult, type ImageBatchRequest as Experimental_ImageBatchRequest, type InferAgentUIMessage as Experimental_InferAgentUIMessage, type InferAgentUIMessage, type LanguageModelStreamPart as Experimental_LanguageModelStreamPart, type ListBatchesOptions as Experimental_ListBatchesOptions, type ListBatchesResult as Experimental_ListBatchesResult, type LogWarningsFunction as Experimental_LogWarningsFunction, type LogWarningsFunction, type RealtimeClientEvent as Experimental_RealtimeClientEvent, type RealtimeFactory as Experimental_RealtimeFactory, type RealtimeFactoryGetTokenOptions as Experimental_RealtimeFactoryGetTokenOptions, type RealtimeFactoryGetTokenResult as Experimental_RealtimeFactoryGetTokenResult, type RealtimeModel as Experimental_RealtimeModel, type RealtimeServerEvent as Experimental_RealtimeServerEvent, type RealtimeSessionConfig as Experimental_RealtimeSessionConfig, type RealtimeSessionOptions as Experimental_RealtimeSessionOptions, type RealtimeSessionState as Experimental_RealtimeSessionState, type RealtimeSetupResponse as Experimental_RealtimeSetupResponse, type RealtimeState as Experimental_RealtimeState, type RealtimeStatus as Experimental_RealtimeStatus, type RealtimeToolDefinition as Experimental_RealtimeToolDefinition, type Experimental_SandboxProcess, type Experimental_SandboxSession, type Experimental_SpeechResult, type StartBatchOptions as Experimental_StartBatchOptions, type StartBatchResult as Experimental_StartBatchResult, type StreamTranscriptionEndEvent as Experimental_StreamTranscriptionEndEvent, type StreamTranscriptionStartEvent as Experimental_StreamTranscriptionStartEvent, type StreamTranslationResult as Experimental_StreamTranslationResult, type TextBatchGenerationResult as Experimental_TextBatchGenerationResult, type TextBatchItemResult as Experimental_TextBatchItemResult, type TextBatchRequest as Experimental_TextBatchRequest, type Experimental_ToolCallerTool, type Experimental_ToolCallers, type Experimental_TranscriptionResult, type TranslationStreamPart as Experimental_TranslationStreamPart, type FilePart, type FileUIPart, type FinishReason, type FlexibleSchema, type GatewayAsyncJobMetadata, type GatewayModelId, type GatewayProviderMetadata, type GenerateImageCall, type GenerateImageResult, type GenerateObjectEndEvent, type GenerateObjectResult, type GenerateObjectStartEvent, type GenerateObjectStepEndEvent, type GenerateObjectStepStartEvent, type GenerateSpeechEndEvent, type GenerateSpeechStartEvent, type GenerateTextAbortEvent, type GenerateTextEndEvent, type GenerateTextInclude, type GenerateTextOnAbortCallback, type GenerateTextOnEndCallback, type GenerateTextOnFinishCallback, type GenerateTextOnStartCallback, type GenerateTextOnStepEndCallback, type GenerateTextOnStepFinishCallback, type GenerateTextOnStepStartCallback, type GenerateTextResult, type GenerateTextStartEvent, type GenerateTextStepEndEvent, type GenerateTextStepStartEvent, type GenerateVideoPrompt, type GenerateVideoResult, type GeneratedAudioFile, type GeneratedFile, type GenericToolApprovalFunction, type GetVideoStatusResult, type HttpChatTransportInitOptions, type IdGenerator, type ImageModel, type ImageModelMiddleware, type ImageModelProviderMetadata, type ImageModelResponseMetadata, type ImageModelUsage, type ImagePart, type InferCompleteOutput as InferGenerateOutput, type InferSchema, type InferPartialOutput as InferStreamOutput, type InferTelemetryEvent, type InferToolInput, type InferToolOutput, type InferUIDataParts, type InferUIMessageChunk, type InferUITool, type InferUITools, type Instructions, InvalidPromptError, InvalidResponseDataError, JSONParseError, type JSONSchema7, type JSONValue, type LanguageModel, type LanguageModelCallEndEvent, type LanguageModelCallOptions, type LanguageModelCallStartEvent, type LanguageModelMiddleware, type LanguageModelRequestMetadata, type LanguageModelResponseMetadata, type LanguageModelUsage, LoadAPIKeyError, LoadSettingError, type ModelInfo, type ModelMessage, NoContentGeneratedError, NoSuchModelError, NoSuchProviderReferenceError, type ObjectStreamPart, type OnFinishEvent, type OnLanguageModelCallEndCallback, type OnLanguageModelCallStartCallback, type OnStartEvent, type OnStepFinishEvent, type OnStepStartEvent, type OnToolCallFinishEvent, type OnToolCallStartEvent, type OnToolExecutionEndCallback, type OnToolExecutionStartCallback, output_d_exports as Output, type OutputChunkTimingStats, type Output as OutputInterface, type PrepareReconnectToStreamRequest, type PrepareSendMessagesRequest, type PrepareStepFunction, type PrepareStepResult, type PrepareWebSocketChatTransportReconnectToStreamRequest, type PrepareWebSocketChatTransportSendMessagesRequest, type Prompt, type Provider, type ProviderMetadata, type ProviderReference, type ProviderRegistryProvider, type ReasoningFileOutput, type ReasoningFileUIPart, type ReasoningOutput, type ReasoningUIPart, type RepairTextFunction, type RequestOptions, type RerankEndEvent, type RerankResult, type RerankStartEvent, type RerankingModel, type RerankingModelCallEndEvent, type RerankingModelCallStartEvent, type SafeValidateUIMessagesResult, type SafeValidateWebSocketChatTransportRequestResult, type Schema, type SingleToolApprovalFunction, type SourceDocumentUIPart, type SourceUrlUIPart, type SpeechModel, type SpeechModelResponseMetadata, type SpeechResult, type StartVideoResult, type StaticToolCall, type StaticToolError, type StaticToolOutputDenied, type StaticToolResult, type StepResult, type StepResultPerformance, type StepStartUIPart, type StopCondition, type StreamObjectOnFinishCallback, type StreamObjectResult, type StreamTextEndEvent, type StreamTextInclude, type StreamTextOnChunkCallback, type StreamTextOnEndCallback, type StreamTextOnErrorCallback, type StreamTextOnErrorResult, type StreamTextOnErrorRetryCallback, type StreamTextResult, type StreamTextTransform, type StreamTranscriptionResult, type SystemModelMessage, type Telemetry, type TelemetryOptions, type TelemetryTracingChannelMessage, type TelemetryTracingEventType, type TextPart, type TextStreamPart, type TextUIPart, type TimeoutConfiguration, type ToUIMessageChunkOptions, TooManyEmbeddingValuesForCallError, type Tool, type ToolApprovalConfiguration, type ToolApprovalRequest, type ToolApprovalRequestOutput, type ToolApprovalResponse, type ToolApprovalResponseOutput, type ToolApprovalStatus, type ToolCallPart, type ToolCallRepairFunction, type ToolChoice, type ToolContent, type ToolExecuteFunction, type ToolExecutionEndEvent, type ToolExecutionOptions, type ToolExecutionStartEvent, type ToolInputRefinement, type ToolModelMessage, type ToolOrder, type ToolOutputErrorUIPart, type ToolResultPart, type ToolSet, type ToolUIPart, type TranscriptionEndEvent, type TranscriptionModel, type TranscriptionModelResponseMetadata, type TranscriptionResult, type TranscriptionStartEvent, type TranscriptionStreamPart, TypeValidationError, type TypedToolCall, type TypedToolError, type TypedToolOutputDenied, type TypedToolResult, type UIDataPartSchemas, type UIDataTypes, type UIMessage, type UIMessageChunk, type UIMessagePart, type UIMessageStreamOnEndCallback, type UIMessageStreamOnFinishCallback, type UIMessageStreamOnStepEndCallback, type UIMessageStreamOnStepFinishCallback, type UIMessageStreamOptions, type UIMessageStreamOutcome, type UIMessageStreamWriter, type UIMessageStreamWriterWithOutcome, type UITool, type UIToolInvocation, type UITools, UnsupportedFunctionalityError, type UploadFileResult, type UploadSkillResult, type UseCompletionOptions, type UserContent, type UserModelMessage, type Warning, type WebSocketChatTransportAbortRequest, type WebSocketChatTransportInitOptions, type WebSocketChatTransportRequest, type WebSocketChatTransportResponse, type WebSocketChatTransportResumeRequest, type WebSocketChatTransportSendRequest, asSchema, createGateway, createIdGenerator, dynamicTool, cancelBatch as experimental_cancelBatch, decide as experimental_decide, decodeRealtimeAudio as experimental_decodeRealtimeAudio, encodeRealtimeAudio as experimental_encodeRealtimeAudio, filterActiveTools as experimental_filterActiveTools, experimental_generateSpeech, getBatchResults as experimental_getBatchResults, getBatchStatus as experimental_getBatchStatus, getRealtimeToolDefinitions as experimental_getRealtimeToolDefinitions, listBatches as experimental_listBatches, resampleAudio as experimental_resampleAudio, startBatch as experimental_startBatch, streamLanguageModelCall as experimental_streamLanguageModelCall, streamTextLowMemory as experimental_streamTextLowMemory, streamTranscribe as experimental_streamTranscribe, streamTranslate as experimental_streamTranslate, experimental_toolCaller, experimental_transcribe, gateway, generateId$1 as generateId, isStepCount as stepCountIs, jsonSchema, parseJsonEventStream, tool$1 as tool, zodSchema };
11149
+ export { AISDKError, APICallError, type ActiveTools, type Agent, type AgentCallParameters, type AgentStreamParameters, type AssistantContent, type AssistantModelMessage, type AsyncIterableStream, type CallWarning, type CallWarningRegistry, type ChatAddToolApproveResponseFunction, type ChatAddToolOutputFunction, type ChatInit, type ChatOnDataCallback, type ChatOnErrorCallback, type ChatOnFinishCallback, type ChatOnToolCallCallback, type ChatRequestOptions, type ChatState, type ChatStatus, type ChatTransport, type ChunkDetector, type Citation, type CompletionRequestOptions, type ContentPart, type CreateUIMessage, type CustomContentUIPart, type DataContent, type DataUIPart, type DeepPartial, type DirectChatTransportOptions, DownloadError, type DynamicToolCall, type DynamicToolError, type DynamicToolResult, type DynamicToolUIPart, type Embedding, type EmbeddingModel, type EmbeddingModelMiddleware, type EmbeddingModelUsage, EmptyResponseBodyError, type ErrorHandler, AbstractRealtimeSession as Experimental_AbstractRealtimeSession, ToolLoopAgent as Experimental_Agent, type ToolLoopAgentSettings as Experimental_AgentSettings, type ToolLoopAgentSettings, type Batch as Experimental_Batch, type BatchError as Experimental_BatchError, type BatchItemResult as Experimental_BatchItemResult, type BatchProvider as Experimental_BatchProvider, type BatchReference as Experimental_BatchReference, type BatchRequest as Experimental_BatchRequest, type BatchStatus as Experimental_BatchStatus, type CancelBatchOptions as Experimental_CancelBatchOptions, type CancelBatchResult as Experimental_CancelBatchResult, type DecideEndEvent as Experimental_DecideEndEvent, type DecideStartEvent as Experimental_DecideStartEvent, type DecisionAnswer as Experimental_DecisionAnswer, type DecisionModel as Experimental_DecisionModel, type DecisionModelCallEndEvent as Experimental_DecisionModelCallEndEvent, type DecisionModelCallStartEvent as Experimental_DecisionModelCallStartEvent, type DecisionProviderRegistry as Experimental_DecisionProviderRegistry, type Experimental_DecisionQuestion, Experimental_DecisionRefusalError, type DecisionResult as Experimental_DecisionResult, type DecisionState as Experimental_DecisionState, type DecisionStatePart as Experimental_DecisionStatePart, Experimental_DecisionUnsupportedQuestionTypeError, type DownloadFunction as Experimental_DownloadFunction, type Experimental_GeneratedImage, type GetBatchResultsOptions as Experimental_GetBatchResultsOptions, type GetBatchStatusOptions as Experimental_GetBatchStatusOptions, type ImageBatchGenerationResult as Experimental_ImageBatchGenerationResult, type ImageBatchItemResult as Experimental_ImageBatchItemResult, type ImageBatchRequest as Experimental_ImageBatchRequest, type InferAgentUIMessage as Experimental_InferAgentUIMessage, type InferAgentUIMessage, type LanguageModelStreamPart as Experimental_LanguageModelStreamPart, type ListBatchesOptions as Experimental_ListBatchesOptions, type ListBatchesResult as Experimental_ListBatchesResult, type LogWarningsFunction as Experimental_LogWarningsFunction, type LogWarningsFunction, type RealtimeClientEvent as Experimental_RealtimeClientEvent, type RealtimeFactory as Experimental_RealtimeFactory, type RealtimeFactoryGetTokenOptions as Experimental_RealtimeFactoryGetTokenOptions, type RealtimeFactoryGetTokenResult as Experimental_RealtimeFactoryGetTokenResult, type RealtimeModel as Experimental_RealtimeModel, type RealtimeServerEvent as Experimental_RealtimeServerEvent, type RealtimeSessionConfig as Experimental_RealtimeSessionConfig, type RealtimeSessionOptions as Experimental_RealtimeSessionOptions, type RealtimeSessionState as Experimental_RealtimeSessionState, type RealtimeSetupResponse as Experimental_RealtimeSetupResponse, type RealtimeState as Experimental_RealtimeState, type RealtimeStatus as Experimental_RealtimeStatus, type RealtimeToolDefinition as Experimental_RealtimeToolDefinition, type Experimental_SandboxProcess, type Experimental_SandboxSession, type Experimental_SpeechResult, type SpeechStreamPart as Experimental_SpeechStreamPart, type SpeechStreamUsage as Experimental_SpeechStreamUsage, type SpeechTextPart as Experimental_SpeechTextPart, type StartBatchOptions as Experimental_StartBatchOptions, type StartBatchResult as Experimental_StartBatchResult, type StreamSpeechResult as Experimental_StreamSpeechResult, type StreamTranscriptionEndEvent as Experimental_StreamTranscriptionEndEvent, type StreamTranscriptionStartEvent as Experimental_StreamTranscriptionStartEvent, type StreamTranslationResult as Experimental_StreamTranslationResult, type TextBatchGenerationResult as Experimental_TextBatchGenerationResult, type TextBatchItemResult as Experimental_TextBatchItemResult, type TextBatchRequest as Experimental_TextBatchRequest, type Experimental_ToolCallerTool, type Experimental_ToolCallers, type Experimental_TranscriptionResult, type TranslationStreamPart as Experimental_TranslationStreamPart, type FilePart, type FileUIPart, type FinishReason, type FlexibleSchema, type GatewayAsyncJobMetadata, type GatewayModelId, type GatewayProviderMetadata, type GenerateImageCall, type GenerateImageResult, type GenerateObjectEndEvent, type GenerateObjectResult, type GenerateObjectStartEvent, type GenerateObjectStepEndEvent, type GenerateObjectStepStartEvent, type GenerateSpeechEndEvent, type GenerateSpeechStartEvent, type GenerateTextAbortEvent, type GenerateTextEndEvent, type GenerateTextInclude, type GenerateTextOnAbortCallback, type GenerateTextOnEndCallback, type GenerateTextOnFinishCallback, type GenerateTextOnStartCallback, type GenerateTextOnStepEndCallback, type GenerateTextOnStepFinishCallback, type GenerateTextOnStepStartCallback, type GenerateTextResult, type GenerateTextStartEvent, type GenerateTextStepEndEvent, type GenerateTextStepStartEvent, type GenerateVideoPrompt, type GenerateVideoResult, type GeneratedAudioFile, type GeneratedFile, type GenericToolApprovalFunction, type GetVideoStatusResult, type HttpChatTransportInitOptions, type IdGenerator, type ImageModel, type ImageModelMiddleware, type ImageModelProviderMetadata, type ImageModelResponseMetadata, type ImageModelUsage, type ImagePart, type InferCompleteOutput as InferGenerateOutput, type InferSchema, type InferPartialOutput as InferStreamOutput, type InferTelemetryEvent, type InferToolInput, type InferToolOutput, type InferUIDataParts, type InferUIMessageChunk, type InferUITool, type InferUITools, type Instructions, InvalidPromptError, InvalidResponseDataError, JSONParseError, type JSONSchema7, type JSONValue, type LanguageModel, type LanguageModelCallEndEvent, type LanguageModelCallOptions, type LanguageModelCallStartEvent, type LanguageModelMiddleware, type LanguageModelRequestMetadata, type LanguageModelResponseMetadata, type LanguageModelUsage, LoadAPIKeyError, LoadSettingError, type ModelInfo, type ModelMessage, NoContentGeneratedError, NoSuchModelError, NoSuchProviderReferenceError, type ObjectStreamPart, type OnFinishEvent, type OnLanguageModelCallEndCallback, type OnLanguageModelCallStartCallback, type OnStartEvent, type OnStepFinishEvent, type OnStepStartEvent, type OnToolCallFinishEvent, type OnToolCallStartEvent, type OnToolExecutionEndCallback, type OnToolExecutionStartCallback, output_d_exports as Output, type OutputChunkTimingStats, type Output as OutputInterface, type PrepareReconnectToStreamRequest, type PrepareSendMessagesRequest, type PrepareStepFunction, type PrepareStepResult, type PrepareWebSocketChatTransportReconnectToStreamRequest, type PrepareWebSocketChatTransportSendMessagesRequest, type Prompt, type Provider, type ProviderMetadata, type ProviderReference, type ProviderRegistryProvider, type ReasoningFileOutput, type ReasoningFileUIPart, type ReasoningOutput, type ReasoningUIPart, type RepairTextFunction, type RequestOptions, type RerankEndEvent, type RerankResult, type RerankStartEvent, type RerankingModel, type RerankingModelCallEndEvent, type RerankingModelCallStartEvent, type SafeValidateUIMessagesResult, type SafeValidateWebSocketChatTransportRequestResult, type Schema, type SingleToolApprovalFunction, type SourceDocumentUIPart, type SourceUrlUIPart, type SpeechModel, type SpeechModelResponseMetadata, type SpeechResult, type StartVideoResult, type StaticToolCall, type StaticToolError, type StaticToolOutputDenied, type StaticToolResult, type StepResult, type StepResultPerformance, type StepStartUIPart, type StopCondition, type StreamObjectOnFinishCallback, type StreamObjectResult, type StreamTextEndEvent, type StreamTextInclude, type StreamTextOnChunkCallback, type StreamTextOnEndCallback, type StreamTextOnErrorCallback, type StreamTextOnErrorResult, type StreamTextOnErrorRetryCallback, type StreamTextResult, type StreamTextTransform, type StreamTranscriptionResult, type SystemModelMessage, type Telemetry, type TelemetryOptions, type TelemetryTracingChannelMessage, type TelemetryTracingEventType, type TextPart, type TextStreamPart, type TextUIPart, type TimeoutConfiguration, type ToUIMessageChunkOptions, TooManyEmbeddingValuesForCallError, type Tool, type ToolApprovalConfiguration, type ToolApprovalRequest, type ToolApprovalRequestOutput, type ToolApprovalResponse, type ToolApprovalResponseOutput, type ToolApprovalStatus, type ToolCallPart, type ToolCallRepairFunction, type ToolChoice, type ToolContent, type ToolExecuteFunction, type ToolExecutionEndEvent, type ToolExecutionOptions, type ToolExecutionStartEvent, type ToolInputRefinement, type ToolModelMessage, type ToolOrder, type ToolOutputErrorUIPart, type ToolResultPart, type ToolSet, type ToolUIPart, type TranscriptionEndEvent, type TranscriptionModel, type TranscriptionModelResponseMetadata, type TranscriptionResult, type TranscriptionStartEvent, type TranscriptionStreamPart, TypeValidationError, type TypedToolCall, type TypedToolError, type TypedToolOutputDenied, type TypedToolResult, type UIDataPartSchemas, type UIDataTypes, type UIMessage, type UIMessageChunk, type UIMessagePart, type UIMessageStreamOnEndCallback, type UIMessageStreamOnFinishCallback, type UIMessageStreamOnStepEndCallback, type UIMessageStreamOnStepFinishCallback, type UIMessageStreamOptions, type UIMessageStreamOutcome, type UIMessageStreamWriter, type UIMessageStreamWriterWithOutcome, type UITool, type UIToolInvocation, type UITools, UnsupportedFunctionalityError, type UploadFileResult, type UploadSkillResult, type UseCompletionOptions, type UserContent, type UserModelMessage, type Warning, type WebSocketChatTransportAbortRequest, type WebSocketChatTransportInitOptions, type WebSocketChatTransportRequest, type WebSocketChatTransportResponse, type WebSocketChatTransportResumeRequest, type WebSocketChatTransportSendRequest, asSchema, createGateway, createIdGenerator, dynamicTool, cancelBatch as experimental_cancelBatch, decide as experimental_decide, decodeRealtimeAudio as experimental_decodeRealtimeAudio, encodeRealtimeAudio as experimental_encodeRealtimeAudio, filterActiveTools as experimental_filterActiveTools, experimental_generateSpeech, getBatchResults as experimental_getBatchResults, getBatchStatus as experimental_getBatchStatus, getRealtimeToolDefinitions as experimental_getRealtimeToolDefinitions, listBatches as experimental_listBatches, resampleAudio as experimental_resampleAudio, startBatch as experimental_startBatch, streamLanguageModelCall as experimental_streamLanguageModelCall, streamSpeech as experimental_streamSpeech, streamTextLowMemory as experimental_streamTextLowMemory, streamTranscribe as experimental_streamTranscribe, streamTranslate as experimental_streamTranslate, experimental_toolCaller, experimental_transcribe, gateway, generateId$1 as generateId, isStepCount as stepCountIs, jsonSchema, parseJsonEventStream, tool$1 as tool, zodSchema };
10985
11150
  //# sourceMappingURL=index.d.ts.map