ai 7.0.123 → 7.0.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/index.d.ts +191 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +383 -91
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +199 -8
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +9 -3
- package/dist/internal/index.js.map +1 -1
- package/docs/03-ai-sdk-core/36-transcription.mdx +36 -0
- package/docs/03-ai-sdk-core/37-speech.mdx +21 -0
- package/docs/03-ai-sdk-core/60-telemetry.mdx +49 -1
- package/docs/07-reference/01-ai-sdk-core/11-stream-transcribe.mdx +7 -0
- package/docs/07-reference/01-ai-sdk-core/11-transcribe.mdx +7 -0
- package/docs/07-reference/01-ai-sdk-core/12-generate-speech.mdx +7 -0
- package/package.json +12 -12
- package/src/generate-speech/generate-speech.ts +163 -38
- package/src/generate-speech/index.ts +4 -0
- package/src/generate-speech/speech-events.ts +91 -0
- package/src/telemetry/create-telemetry-dispatcher.ts +18 -5
- package/src/telemetry/telemetry.ts +38 -6
- package/src/telemetry/tracing-channel.ts +3 -0
- package/src/transcribe/index.ts +6 -0
- package/src/transcribe/stream-transcribe.ts +182 -31
- package/src/transcribe/transcribe.ts +186 -33
- package/src/transcribe/transcription-events.ts +111 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 7.0.124
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8c65988: feat(ai): add telemetry to speech generation and transcription, including
|
|
8
|
+
provider usage propagation and experimental streaming lifecycle callbacks
|
|
9
|
+
- Updated dependencies [8c65988]
|
|
10
|
+
- Updated dependencies [e25994e]
|
|
11
|
+
- Updated dependencies [527a163]
|
|
12
|
+
- Updated dependencies [e74afc5]
|
|
13
|
+
- @ai-sdk/provider@4.0.21
|
|
14
|
+
- @ai-sdk/provider-utils@5.0.53
|
|
15
|
+
- @ai-sdk/gateway@4.0.102
|
|
16
|
+
|
|
3
17
|
## 7.0.123
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -4488,9 +4488,153 @@ type RerankingModelCallEndEvent = {
|
|
|
4488
4488
|
}>;
|
|
4489
4489
|
};
|
|
4490
4490
|
//#endregion
|
|
4491
|
+
//#region src/generate-speech/speech-events.d.ts
|
|
4492
|
+
/**
|
|
4493
|
+
* Event passed to telemetry integrations when speech generation begins.
|
|
4494
|
+
*/
|
|
4495
|
+
type GenerateSpeechStartEvent = {
|
|
4496
|
+
/** Unique identifier for this speech generation call. */
|
|
4497
|
+
readonly callId: string;
|
|
4498
|
+
/** Identifies the operation type (`ai.generateSpeech`). */
|
|
4499
|
+
readonly operationId: 'ai.generateSpeech';
|
|
4500
|
+
/** The provider identifier. */
|
|
4501
|
+
readonly provider: string;
|
|
4502
|
+
/** The specific model identifier. */
|
|
4503
|
+
readonly modelId: string;
|
|
4504
|
+
/** The text to convert to speech. */
|
|
4505
|
+
readonly text: string;
|
|
4506
|
+
/** The requested voice. */
|
|
4507
|
+
readonly voice: string | undefined;
|
|
4508
|
+
/** The requested output format. */
|
|
4509
|
+
readonly outputFormat: string | undefined;
|
|
4510
|
+
/** Additional speech instructions. */
|
|
4511
|
+
readonly instructions: string | undefined;
|
|
4512
|
+
/** The requested speech speed. */
|
|
4513
|
+
readonly speed: number | undefined;
|
|
4514
|
+
/** The requested language. */
|
|
4515
|
+
readonly language: string | undefined;
|
|
4516
|
+
/** Maximum number of retries for failed requests. */
|
|
4517
|
+
readonly maxRetries: number;
|
|
4518
|
+
/** Additional HTTP headers sent with the request. */
|
|
4519
|
+
readonly headers: Record<string, string> | undefined;
|
|
4520
|
+
/** Additional provider-specific options. */
|
|
4521
|
+
readonly providerOptions: ProviderOptions;
|
|
4522
|
+
};
|
|
4523
|
+
/**
|
|
4524
|
+
* Event passed to telemetry integrations when speech generation completes.
|
|
4525
|
+
*
|
|
4526
|
+
* Raw audio is intentionally not included. Integrations receive only its size,
|
|
4527
|
+
* media type, and format.
|
|
4528
|
+
*/
|
|
4529
|
+
type GenerateSpeechEndEvent = {
|
|
4530
|
+
/** Unique identifier for this speech generation call. */
|
|
4531
|
+
readonly callId: string;
|
|
4532
|
+
/** Identifies the operation type (`ai.generateSpeech`). */
|
|
4533
|
+
readonly operationId: 'ai.generateSpeech';
|
|
4534
|
+
/** The provider identifier. */
|
|
4535
|
+
readonly provider: string;
|
|
4536
|
+
/** The specific model identifier. */
|
|
4537
|
+
readonly modelId: string;
|
|
4538
|
+
/** The text that was converted to speech. */
|
|
4539
|
+
readonly text: string;
|
|
4540
|
+
/** Metadata about the generated audio. */
|
|
4541
|
+
readonly audio: {
|
|
4542
|
+
readonly byteLength: number;
|
|
4543
|
+
readonly mediaType: string;
|
|
4544
|
+
readonly format: string;
|
|
4545
|
+
};
|
|
4546
|
+
/** Usage reported by the provider, when available. */
|
|
4547
|
+
readonly usage: JSONObject | undefined;
|
|
4548
|
+
/** Warnings from the speech model. */
|
|
4549
|
+
readonly warnings: Array<Warning>;
|
|
4550
|
+
/** Optional provider-specific metadata. */
|
|
4551
|
+
readonly providerMetadata: ProviderMetadata | undefined;
|
|
4552
|
+
/** Response metadata from the provider. */
|
|
4553
|
+
readonly response: SpeechModelResponseMetadata;
|
|
4554
|
+
};
|
|
4555
|
+
//#endregion
|
|
4556
|
+
//#region src/transcribe/transcription-events.d.ts
|
|
4557
|
+
/**
|
|
4558
|
+
* Event passed to telemetry integrations when transcription begins.
|
|
4559
|
+
*/
|
|
4560
|
+
type TranscriptionStartEventFor<OPERATION_ID extends string> = {
|
|
4561
|
+
/** Unique identifier for this transcription call. */
|
|
4562
|
+
readonly callId: string;
|
|
4563
|
+
/** Identifies the operation type (`ai.transcribe` or `ai.streamTranscribe`). */
|
|
4564
|
+
readonly operationId: OPERATION_ID;
|
|
4565
|
+
/** The provider identifier. */
|
|
4566
|
+
readonly provider: string;
|
|
4567
|
+
/** The specific model identifier. */
|
|
4568
|
+
readonly modelId: string;
|
|
4569
|
+
/**
|
|
4570
|
+
* Metadata about the input audio. The byte length is known immediately for
|
|
4571
|
+
* non-streaming transcription and is reported on the end event for streams.
|
|
4572
|
+
*/
|
|
4573
|
+
readonly audio: {
|
|
4574
|
+
readonly byteLength: number | undefined;
|
|
4575
|
+
/**
|
|
4576
|
+
* The media type, when it is known before input preparation completes.
|
|
4577
|
+
* URL downloads and invalid inline inputs can begin without this metadata.
|
|
4578
|
+
*/
|
|
4579
|
+
readonly mediaType: string | undefined;
|
|
4580
|
+
};
|
|
4581
|
+
/** The raw input format for streaming transcription. */
|
|
4582
|
+
readonly inputAudioFormat: SharedV4AudioFormat | undefined;
|
|
4583
|
+
/** Maximum number of retries for non-streaming transcription. */
|
|
4584
|
+
readonly maxRetries: number | undefined;
|
|
4585
|
+
/** Additional HTTP or WebSocket headers sent with the request. */
|
|
4586
|
+
readonly headers: Record<string, string> | undefined;
|
|
4587
|
+
/** Additional provider-specific options. */
|
|
4588
|
+
readonly providerOptions: ProviderOptions;
|
|
4589
|
+
};
|
|
4590
|
+
type TranscriptionStartEvent = TranscriptionStartEventFor<'ai.transcribe'>;
|
|
4591
|
+
type StreamTranscriptionStartEvent = TranscriptionStartEventFor<'ai.streamTranscribe'>;
|
|
4592
|
+
/**
|
|
4593
|
+
* Event passed to telemetry integrations when transcription completes.
|
|
4594
|
+
*
|
|
4595
|
+
* Raw audio is intentionally not included.
|
|
4596
|
+
*/
|
|
4597
|
+
type TranscriptionEndEventFor<OPERATION_ID extends string> = {
|
|
4598
|
+
/** Unique identifier for this transcription call. */
|
|
4599
|
+
readonly callId: string;
|
|
4600
|
+
/** Identifies the operation type (`ai.transcribe` or `ai.streamTranscribe`). */
|
|
4601
|
+
readonly operationId: OPERATION_ID;
|
|
4602
|
+
/** The provider identifier. */
|
|
4603
|
+
readonly provider: string;
|
|
4604
|
+
/** The specific model identifier. */
|
|
4605
|
+
readonly modelId: string;
|
|
4606
|
+
/** Metadata about the input audio. */
|
|
4607
|
+
readonly audio: {
|
|
4608
|
+
readonly byteLength: number;
|
|
4609
|
+
readonly mediaType: string;
|
|
4610
|
+
};
|
|
4611
|
+
/** The complete transcript. */
|
|
4612
|
+
readonly text: string;
|
|
4613
|
+
/** Transcript segments with timing information. */
|
|
4614
|
+
readonly segments: Array<{
|
|
4615
|
+
readonly text: string;
|
|
4616
|
+
readonly startSecond: number;
|
|
4617
|
+
readonly endSecond: number;
|
|
4618
|
+
}>;
|
|
4619
|
+
/** The detected language. */
|
|
4620
|
+
readonly language: string | undefined;
|
|
4621
|
+
/** The duration of the input audio, when available. */
|
|
4622
|
+
readonly durationInSeconds: number | undefined;
|
|
4623
|
+
/** Usage reported by the provider, when available. */
|
|
4624
|
+
readonly usage: JSONObject | undefined;
|
|
4625
|
+
/** Warnings from the transcription model. */
|
|
4626
|
+
readonly warnings: Array<Warning>;
|
|
4627
|
+
/** Optional provider-specific metadata. */
|
|
4628
|
+
readonly providerMetadata: ProviderMetadata | undefined;
|
|
4629
|
+
/** Response metadata from the provider. */
|
|
4630
|
+
readonly response: TranscriptionModelResponseMetadata;
|
|
4631
|
+
};
|
|
4632
|
+
type TranscriptionEndEvent = TranscriptionEndEventFor<'ai.transcribe'>;
|
|
4633
|
+
type StreamTranscriptionEndEvent = TranscriptionEndEventFor<'ai.streamTranscribe'>;
|
|
4634
|
+
//#endregion
|
|
4491
4635
|
//#region src/telemetry/tracing-channel.d.ts
|
|
4492
4636
|
export declare const AI_SDK_TELEMETRY_TRACING_CHANNEL = "ai:telemetry";
|
|
4493
|
-
type TelemetryTracingEventType = 'generateText' | 'streamText' | 'step' | 'languageModelCall' | 'executeTool' | 'embed' | 'embedMany' | 'rerank' | 'experimental_evaluate';
|
|
4637
|
+
type TelemetryTracingEventType = 'generateText' | 'streamText' | 'step' | 'languageModelCall' | 'executeTool' | 'embed' | 'embedMany' | 'rerank' | 'generateSpeech' | 'transcribe' | 'streamTranscribe' | 'experimental_evaluate';
|
|
4494
4638
|
type TelemetryTracingChannelMessage<EVENT = unknown> = {
|
|
4495
4639
|
readonly type: TelemetryTracingEventType;
|
|
4496
4640
|
readonly event: EVENT;
|
|
@@ -4498,8 +4642,11 @@ type TelemetryTracingChannelMessage<EVENT = unknown> = {
|
|
|
4498
4642
|
//#endregion
|
|
4499
4643
|
//#region src/telemetry/telemetry.d.ts
|
|
4500
4644
|
type InferTelemetryEvent<EVENT> = EVENT & Omit<TelemetryOptions, 'integrations' | 'isEnabled' | 'includeRuntimeContext'>;
|
|
4501
|
-
type
|
|
4502
|
-
|
|
4645
|
+
type BivariantCallback<EVENT> = {
|
|
4646
|
+
bivarianceHack(event: EVENT): PromiseLike<void> | void;
|
|
4647
|
+
}['bivarianceHack'];
|
|
4648
|
+
type OperationStartEvent = GenerateTextStartEvent | GenerateObjectStartEvent | EmbedStartEvent | RerankStartEvent | GenerateSpeechStartEvent | TranscriptionStartEvent;
|
|
4649
|
+
type OperationEndEvent = GenerateTextEndEvent<ToolSet$1> | GenerateObjectEndEvent<unknown> | EmbedEndEvent | RerankEndEvent | GenerateSpeechEndEvent | TranscriptionEndEvent;
|
|
4503
4650
|
/**
|
|
4504
4651
|
* Implement this interface to create custom telemetry integrations.
|
|
4505
4652
|
* Methods can be sync or return a PromiseLike.
|
|
@@ -4508,11 +4655,12 @@ interface Telemetry {
|
|
|
4508
4655
|
/**
|
|
4509
4656
|
* Called when an operation begins. Fired for text generation
|
|
4510
4657
|
* (generateText/streamText), object generation (generateObject/streamObject),
|
|
4511
|
-
* embedding (embed/embedMany),
|
|
4658
|
+
* embedding (embed/embedMany), reranking, speech generation, and
|
|
4659
|
+
* non-streaming transcription operations.
|
|
4512
4660
|
*
|
|
4513
4661
|
* Use the `operationId` field to distinguish between operation types.
|
|
4514
4662
|
*/
|
|
4515
|
-
onStart?:
|
|
4663
|
+
onStart?: BivariantCallback<InferTelemetryEvent<OperationStartEvent>>;
|
|
4516
4664
|
/**
|
|
4517
4665
|
* Called when an individual step (single LLM invocation) begins.
|
|
4518
4666
|
* A generation may consist of multiple steps (e.g. when tool calls trigger
|
|
@@ -4609,14 +4757,19 @@ interface Telemetry {
|
|
|
4609
4757
|
experimental_onEvaluationModelCallEnd?: Callback<InferTelemetryEvent<EvaluationModelCallEndEvent>>;
|
|
4610
4758
|
/** Called when an experimental evaluation operation completes. */
|
|
4611
4759
|
experimental_onEvaluateEnd?: Callback<InferTelemetryEvent<EvaluateEndEvent>>;
|
|
4760
|
+
/** Called when an experimental streaming transcription operation begins. */
|
|
4761
|
+
experimental_onStreamTranscriptionStart?: Callback<InferTelemetryEvent<StreamTranscriptionStartEvent>>;
|
|
4762
|
+
/** Called when an experimental streaming transcription operation completes. */
|
|
4763
|
+
experimental_onStreamTranscriptionEnd?: Callback<InferTelemetryEvent<StreamTranscriptionEndEvent>>;
|
|
4612
4764
|
/**
|
|
4613
4765
|
* Called when an operation completes. Fired for text generation
|
|
4614
4766
|
* (generateText/streamText), object generation (generateObject/streamObject),
|
|
4615
|
-
* embedding (embed/embedMany),
|
|
4767
|
+
* embedding (embed/embedMany), reranking, speech generation, and
|
|
4768
|
+
* non-streaming transcription operations.
|
|
4616
4769
|
*
|
|
4617
4770
|
* Use the event shape or `operationId` to distinguish between operation types.
|
|
4618
4771
|
*/
|
|
4619
|
-
onEnd?:
|
|
4772
|
+
onEnd?: BivariantCallback<InferTelemetryEvent<OperationEndEvent>>;
|
|
4620
4773
|
/**
|
|
4621
4774
|
* Called when a streaming text generation operation is aborted before it
|
|
4622
4775
|
* completes.
|
|
@@ -8638,10 +8791,11 @@ interface SpeechResult {
|
|
|
8638
8791
|
* @param maxRetries - Maximum number of retries. Set to 0 to disable retries. Default: 2.
|
|
8639
8792
|
* @param abortSignal - An optional abort signal that can be used to cancel the call.
|
|
8640
8793
|
* @param headers - Additional HTTP headers to be sent with the request. Only applicable for HTTP-based providers.
|
|
8794
|
+
* @param telemetry - Optional telemetry configuration.
|
|
8641
8795
|
*
|
|
8642
8796
|
* @returns A result object that contains the generated audio data.
|
|
8643
8797
|
*/
|
|
8644
|
-
export declare function generateSpeech({ model, text, voice, outputFormat, instructions, speed, language, providerOptions, maxRetries: maxRetriesArg, abortSignal, headers }: {
|
|
8798
|
+
export declare function generateSpeech({ model, text, voice, outputFormat, instructions, speed, language, providerOptions, maxRetries: maxRetriesArg, abortSignal, headers, telemetry, _internal: { generateCallId } }: {
|
|
8645
8799
|
/**
|
|
8646
8800
|
* The speech model to use.
|
|
8647
8801
|
*/
|
|
@@ -8699,6 +8853,16 @@ export declare function generateSpeech({ model, text, voice, outputFormat, instr
|
|
|
8699
8853
|
* Only applicable for HTTP-based providers.
|
|
8700
8854
|
*/
|
|
8701
8855
|
headers?: Record<string, string>;
|
|
8856
|
+
/**
|
|
8857
|
+
* Optional telemetry configuration.
|
|
8858
|
+
*/
|
|
8859
|
+
telemetry?: TelemetryOptions;
|
|
8860
|
+
/**
|
|
8861
|
+
* Internal. For test use only. May change without notice.
|
|
8862
|
+
*/
|
|
8863
|
+
_internal?: {
|
|
8864
|
+
generateCallId?: () => string;
|
|
8865
|
+
};
|
|
8702
8866
|
}): Promise<SpeechResult>;
|
|
8703
8867
|
//#endregion
|
|
8704
8868
|
//#region src/generate-speech/index.d.ts
|
|
@@ -9873,7 +10037,7 @@ interface TranscriptionResult {
|
|
|
9873
10037
|
}
|
|
9874
10038
|
//#endregion
|
|
9875
10039
|
//#region src/transcribe/transcribe.d.ts
|
|
9876
|
-
export declare function transcribe({ model, audio, providerOptions, maxRetries: maxRetriesArg, abortSignal, headers, download: downloadFn }: {
|
|
10040
|
+
export declare function transcribe({ model, audio, providerOptions, maxRetries: maxRetriesArg, abortSignal, headers, telemetry, download: downloadFn, _internal: { generateCallId } }: {
|
|
9877
10041
|
/**
|
|
9878
10042
|
* The transcription model to use.
|
|
9879
10043
|
*/
|
|
@@ -9912,6 +10076,10 @@ export declare function transcribe({ model, audio, providerOptions, maxRetries:
|
|
|
9912
10076
|
* Only applicable for HTTP-based providers.
|
|
9913
10077
|
*/
|
|
9914
10078
|
headers?: Record<string, string>;
|
|
10079
|
+
/**
|
|
10080
|
+
* Optional telemetry configuration.
|
|
10081
|
+
*/
|
|
10082
|
+
telemetry?: TelemetryOptions;
|
|
9915
10083
|
/**
|
|
9916
10084
|
* Custom download function for fetching audio from URLs.
|
|
9917
10085
|
* Use `createDownload()` from `ai` to create a download function with custom size limits.
|
|
@@ -9925,6 +10093,12 @@ export declare function transcribe({ model, audio, providerOptions, maxRetries:
|
|
|
9925
10093
|
data: Uint8Array;
|
|
9926
10094
|
mediaType: string | undefined;
|
|
9927
10095
|
}>;
|
|
10096
|
+
/**
|
|
10097
|
+
* Internal. For test use only. May change without notice.
|
|
10098
|
+
*/
|
|
10099
|
+
_internal?: {
|
|
10100
|
+
generateCallId?: () => string;
|
|
10101
|
+
};
|
|
9928
10102
|
}): Promise<TranscriptionResult>;
|
|
9929
10103
|
//#endregion
|
|
9930
10104
|
//#region src/transcribe/stream-transcribe-result.d.ts
|
|
@@ -10010,10 +10184,11 @@ interface StreamTranscriptionResult {
|
|
|
10010
10184
|
* @param providerOptions - Additional provider-specific options.
|
|
10011
10185
|
* @param abortSignal - An optional abort signal that can be used to cancel the call.
|
|
10012
10186
|
* @param headers - Additional HTTP/WebSocket headers to send when supported by the provider.
|
|
10187
|
+
* @param telemetry - Optional telemetry configuration.
|
|
10013
10188
|
*
|
|
10014
10189
|
* @returns A result object that contains the streaming transcript and final transcript metadata.
|
|
10015
10190
|
*/
|
|
10016
|
-
declare function streamTranscribe({ model, audio, inputAudioFormat, providerOptions, abortSignal, headers, includeRawChunks, _internal: { currentDate } }: {
|
|
10191
|
+
declare function streamTranscribe({ model, audio, inputAudioFormat, providerOptions, abortSignal, headers, includeRawChunks, telemetry, _internal: { currentDate, generateCallId } }: {
|
|
10017
10192
|
/**
|
|
10018
10193
|
* The transcription model to use.
|
|
10019
10194
|
*/
|
|
@@ -10042,11 +10217,16 @@ declare function streamTranscribe({ model, audio, inputAudioFormat, providerOpti
|
|
|
10042
10217
|
* When true, providers should include raw provider chunks in the stream.
|
|
10043
10218
|
*/
|
|
10044
10219
|
includeRawChunks?: boolean;
|
|
10220
|
+
/**
|
|
10221
|
+
* Optional telemetry configuration.
|
|
10222
|
+
*/
|
|
10223
|
+
telemetry?: TelemetryOptions;
|
|
10045
10224
|
/**
|
|
10046
10225
|
* Internal test hooks.
|
|
10047
10226
|
*/
|
|
10048
10227
|
_internal?: {
|
|
10049
10228
|
currentDate?: () => Date;
|
|
10229
|
+
generateCallId?: () => string;
|
|
10050
10230
|
};
|
|
10051
10231
|
}): StreamTranscriptionResult;
|
|
10052
10232
|
//#endregion
|
|
@@ -10343,5 +10523,5 @@ export declare function uploadSkill({ api, files, displayTitle, providerOptions
|
|
|
10343
10523
|
files: UploadSkillFile[];
|
|
10344
10524
|
}): Promise<UploadSkillResult>;
|
|
10345
10525
|
//#endregion
|
|
10346
|
-
export { AISDKError, APICallError, type ActiveTools, type Agent, type AgentCallParameters, type AgentStreamParameters, type AssistantContent, type AssistantModelMessage, type AsyncIterableStream, type CallWarning, 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 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 DownloadFunction as Experimental_DownloadFunction, type EvaluateEndEvent as Experimental_EvaluateEndEvent, type EvaluateStartEvent as Experimental_EvaluateStartEvent, type EvaluationAnswer as Experimental_EvaluationAnswer, type EvaluationModel as Experimental_EvaluationModel, type EvaluationModelCallEndEvent as Experimental_EvaluationModelCallEndEvent, type EvaluationModelCallStartEvent as Experimental_EvaluationModelCallStartEvent, type EvaluationProviderRegistry as Experimental_EvaluationProviderRegistry, type EvaluationQuestion as Experimental_EvaluationQuestion, type EvaluationResult as Experimental_EvaluationResult, Experimental_EvaluationUnsupportedQuestionTypeError, 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 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 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 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 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 TranscriptionModel, type TranscriptionModelResponseMetadata, type TranscriptionResult, 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, asSchema, createGateway, createIdGenerator, dynamicTool, cancelBatch as experimental_cancelBatch, decodeRealtimeAudio as experimental_decodeRealtimeAudio, encodeRealtimeAudio as experimental_encodeRealtimeAudio, evaluate as experimental_evaluate, 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, 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 };
|
|
10526
|
+
export { AISDKError, APICallError, type ActiveTools, type Agent, type AgentCallParameters, type AgentStreamParameters, type AssistantContent, type AssistantModelMessage, type AsyncIterableStream, type CallWarning, 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 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 DownloadFunction as Experimental_DownloadFunction, type EvaluateEndEvent as Experimental_EvaluateEndEvent, type EvaluateStartEvent as Experimental_EvaluateStartEvent, type EvaluationAnswer as Experimental_EvaluationAnswer, type EvaluationModel as Experimental_EvaluationModel, type EvaluationModelCallEndEvent as Experimental_EvaluationModelCallEndEvent, type EvaluationModelCallStartEvent as Experimental_EvaluationModelCallStartEvent, type EvaluationProviderRegistry as Experimental_EvaluationProviderRegistry, type EvaluationQuestion as Experimental_EvaluationQuestion, type EvaluationResult as Experimental_EvaluationResult, Experimental_EvaluationUnsupportedQuestionTypeError, 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 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 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, asSchema, createGateway, createIdGenerator, dynamicTool, cancelBatch as experimental_cancelBatch, decodeRealtimeAudio as experimental_decodeRealtimeAudio, encodeRealtimeAudio as experimental_encodeRealtimeAudio, evaluate as experimental_evaluate, 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, 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 };
|
|
10347
10527
|
//# sourceMappingURL=index.d.ts.map
|