ai 7.0.86 → 7.0.88
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 +13 -0
- package/dist/index.d.ts +127 -44
- package/dist/index.js +527 -455
- package/dist/index.js.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/docs/03-agents/07-workflow-agent.mdx +9 -4
- package/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +2 -1
- package/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +7 -0
- package/docs/04-ai-sdk-ui/50-stream-protocol.mdx +6 -2
- package/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +35 -0
- package/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +34 -6
- package/docs/07-reference/05-ai-sdk-errors/ai-tool-choice-violation-error.mdx +38 -0
- package/docs/07-reference/05-ai-sdk-errors/index.mdx +1 -0
- package/package.json +5 -5
- package/src/batch/batch-types.ts +47 -7
- package/src/batch/batch.ts +43 -20
- package/src/error/index.ts +1 -0
- package/src/error/tool-choice-violation-error.ts +80 -0
- package/src/generate-text/generate-text.ts +25 -1
- package/src/ui/process-ui-message-stream.ts +4 -7
- package/src/ui/ui-messages.ts +10 -0
- package/src/ui/validate-ui-messages.ts +10 -0
- package/src/ui-message-stream/ui-message-chunks.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 7.0.88
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8b6b756: fix(ai): prevent generateText from accepting responses that violate required tool choices
|
|
8
|
+
- e07b577: feat: add tool calling support to batch
|
|
9
|
+
|
|
10
|
+
## 7.0.87
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 850d863: fix(ai): preserve approval descriptors in UI message streams
|
|
15
|
+
|
|
3
16
|
## 7.0.86
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmbeddingModelV4Embedding, EmbeddingModelV4, EmbeddingModelV3, EmbeddingModelV2, EmbeddingModelV4Middleware, ImageModelV4ProviderMetadata, ImageModelV2ProviderMetadata, ImageModelV4, ImageModelV3, ImageModelV2, ImageModelV4Middleware, JSONValue as JSONValue$1, LanguageModelV4Source, SharedV4Warning, LanguageModelV4, LanguageModelV3, LanguageModelV2, LanguageModelV4Middleware, RerankingModelV4, RerankingModelV3, SharedV4ProviderMetadata, SharedV4ProviderReference, SpeechModelV4, SpeechModelV3, SpeechModelV2, TranscriptionModelV4, TranscriptionModelV3, TranscriptionModelV2, JSONObject, ImageModelV4Usage, LanguageModelV4CallOptions, LanguageModelV4Prompt, AISDKError, LanguageModelV4ToolCall, JSONSchema7, ProviderV4, ProviderV3, ProviderV2, Experimental_BatchV4Error, Experimental_BatchLanguageModelV4, Experimental_BatchV4Status, Experimental_BatchV4StartResult, SharedV4Headers, JSONParseError, TypeValidationError, Experimental_VideoModelV4, Experimental_VideoModelV3, Experimental_VideoModelV4FrameType, Experimental_VideoModelV4OperationWebhook, Experimental_VideoModelV4OperationStatusResult, EmbeddingModelV4CallOptions, Experimental_RealtimeModelV4ServerEvent, Experimental_RealtimeModelV4, Experimental_RealtimeModelV4SessionConfig, Experimental_RealtimeModelV4ClientEvent, Experimental_RealtimeFactoryV4, Experimental_RealtimeFactoryV4GetTokenOptions, Experimental_RealtimeFactoryV4GetTokenResult, Experimental_RealtimeModelV4ToolDefinition, FilesV4, SkillsV4, NoSuchModelError, SharedV4AudioFormat, Experimental_SpeechTranslationModelV4, Experimental_SpeechTranslationModelV4Usage, FilesV4UploadFileCallOptions, SkillsV4UploadSkillResult, SkillsV4UploadSkillCallOptions, SkillsV4File } from '@ai-sdk/provider';
|
|
1
|
+
import { EmbeddingModelV4Embedding, EmbeddingModelV4, EmbeddingModelV3, EmbeddingModelV2, EmbeddingModelV4Middleware, ImageModelV4ProviderMetadata, ImageModelV2ProviderMetadata, ImageModelV4, ImageModelV3, ImageModelV2, ImageModelV4Middleware, JSONValue as JSONValue$1, LanguageModelV4Source, SharedV4Warning, LanguageModelV4, LanguageModelV3, LanguageModelV2, LanguageModelV4Middleware, RerankingModelV4, RerankingModelV3, SharedV4ProviderMetadata, SharedV4ProviderReference, SpeechModelV4, SpeechModelV3, SpeechModelV2, TranscriptionModelV4, TranscriptionModelV3, TranscriptionModelV2, JSONObject, ImageModelV4Usage, LanguageModelV4CallOptions, LanguageModelV4Prompt, AISDKError, LanguageModelV4ToolCall, JSONSchema7, ProviderV4, ProviderV3, ProviderV2, Experimental_BatchV4Error, Experimental_BatchLanguageModelV4, Experimental_BatchV4Status, Experimental_BatchV4StartResult, SharedV4Headers, LanguageModelV4ToolChoice, LanguageModelV4Content, JSONParseError, TypeValidationError, Experimental_VideoModelV4, Experimental_VideoModelV3, Experimental_VideoModelV4FrameType, Experimental_VideoModelV4OperationWebhook, Experimental_VideoModelV4OperationStatusResult, EmbeddingModelV4CallOptions, Experimental_RealtimeModelV4ServerEvent, Experimental_RealtimeModelV4, Experimental_RealtimeModelV4SessionConfig, Experimental_RealtimeModelV4ClientEvent, Experimental_RealtimeFactoryV4, Experimental_RealtimeFactoryV4GetTokenOptions, Experimental_RealtimeFactoryV4GetTokenResult, Experimental_RealtimeModelV4ToolDefinition, FilesV4, SkillsV4, NoSuchModelError, SharedV4AudioFormat, Experimental_SpeechTranslationModelV4, Experimental_SpeechTranslationModelV4Usage, FilesV4UploadFileCallOptions, SkillsV4UploadSkillResult, SkillsV4UploadSkillCallOptions, SkillsV4File } from '@ai-sdk/provider';
|
|
2
2
|
export { AISDKError, APICallError, EmptyResponseBodyError, InvalidPromptError, InvalidResponseDataError, JSONParseError, JSONSchema7, LoadAPIKeyError, LoadSettingError, NoContentGeneratedError, NoSuchModelError, NoSuchProviderReferenceError, TooManyEmbeddingValuesForCallError, TypeValidationError, UnsupportedFunctionalityError } from '@ai-sdk/provider';
|
|
3
3
|
import { GatewayModelId } from '@ai-sdk/gateway';
|
|
4
4
|
export { GatewayAsyncJobMetadata, GatewayModelId, GatewayProviderMetadata, createGateway, gateway } from '@ai-sdk/gateway';
|
|
@@ -2055,6 +2055,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
|
|
|
2055
2055
|
approval: {
|
|
2056
2056
|
id: string;
|
|
2057
2057
|
approved?: never;
|
|
2058
|
+
descriptor?: unknown;
|
|
2058
2059
|
requestReason?: string;
|
|
2059
2060
|
reason?: never;
|
|
2060
2061
|
isAutomatic?: boolean;
|
|
@@ -2069,6 +2070,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
|
|
|
2069
2070
|
approval: {
|
|
2070
2071
|
id: string;
|
|
2071
2072
|
approved: boolean;
|
|
2073
|
+
descriptor?: unknown;
|
|
2072
2074
|
requestReason?: string;
|
|
2073
2075
|
reason?: string;
|
|
2074
2076
|
isAutomatic?: boolean;
|
|
@@ -2085,6 +2087,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
|
|
|
2085
2087
|
approval?: {
|
|
2086
2088
|
id: string;
|
|
2087
2089
|
approved: true;
|
|
2090
|
+
descriptor?: unknown;
|
|
2088
2091
|
requestReason?: string;
|
|
2089
2092
|
reason?: string;
|
|
2090
2093
|
isAutomatic?: boolean;
|
|
@@ -2101,6 +2104,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
|
|
|
2101
2104
|
approval?: {
|
|
2102
2105
|
id: string;
|
|
2103
2106
|
approved: true;
|
|
2107
|
+
descriptor?: unknown;
|
|
2104
2108
|
requestReason?: string;
|
|
2105
2109
|
reason?: string;
|
|
2106
2110
|
isAutomatic?: boolean;
|
|
@@ -2115,6 +2119,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
|
|
|
2115
2119
|
approval: {
|
|
2116
2120
|
id: string;
|
|
2117
2121
|
approved: false;
|
|
2122
|
+
descriptor?: unknown;
|
|
2118
2123
|
requestReason?: string;
|
|
2119
2124
|
reason?: string;
|
|
2120
2125
|
isAutomatic?: boolean;
|
|
@@ -2165,6 +2170,7 @@ type DynamicToolUIPart = {
|
|
|
2165
2170
|
approval: {
|
|
2166
2171
|
id: string;
|
|
2167
2172
|
approved?: never;
|
|
2173
|
+
descriptor?: unknown;
|
|
2168
2174
|
requestReason?: string;
|
|
2169
2175
|
reason?: never;
|
|
2170
2176
|
isAutomatic?: boolean;
|
|
@@ -2179,6 +2185,7 @@ type DynamicToolUIPart = {
|
|
|
2179
2185
|
approval: {
|
|
2180
2186
|
id: string;
|
|
2181
2187
|
approved: boolean;
|
|
2188
|
+
descriptor?: unknown;
|
|
2182
2189
|
requestReason?: string;
|
|
2183
2190
|
reason?: string;
|
|
2184
2191
|
isAutomatic?: boolean;
|
|
@@ -2195,6 +2202,7 @@ type DynamicToolUIPart = {
|
|
|
2195
2202
|
approval?: {
|
|
2196
2203
|
id: string;
|
|
2197
2204
|
approved: true;
|
|
2205
|
+
descriptor?: unknown;
|
|
2198
2206
|
requestReason?: string;
|
|
2199
2207
|
reason?: string;
|
|
2200
2208
|
isAutomatic?: boolean;
|
|
@@ -2210,6 +2218,7 @@ type DynamicToolUIPart = {
|
|
|
2210
2218
|
approval?: {
|
|
2211
2219
|
id: string;
|
|
2212
2220
|
approved: true;
|
|
2221
|
+
descriptor?: unknown;
|
|
2213
2222
|
requestReason?: string;
|
|
2214
2223
|
reason?: string;
|
|
2215
2224
|
isAutomatic?: boolean;
|
|
@@ -2224,6 +2233,7 @@ type DynamicToolUIPart = {
|
|
|
2224
2233
|
approval: {
|
|
2225
2234
|
id: string;
|
|
2226
2235
|
approved: false;
|
|
2236
|
+
descriptor?: unknown;
|
|
2227
2237
|
requestReason?: string;
|
|
2228
2238
|
reason?: string;
|
|
2229
2239
|
isAutomatic?: boolean;
|
|
@@ -2367,6 +2377,7 @@ type UIMessageChunk<METADATA = unknown, DATA_TYPES extends UIDataTypes = UIDataT
|
|
|
2367
2377
|
type: 'tool-approval-request';
|
|
2368
2378
|
approvalId: string;
|
|
2369
2379
|
toolCallId: string;
|
|
2380
|
+
approvalDescriptor?: unknown;
|
|
2370
2381
|
reason?: string;
|
|
2371
2382
|
isAutomatic?: boolean;
|
|
2372
2383
|
signature?: string;
|
|
@@ -3085,9 +3096,9 @@ type Experimental_ToolCallers<TOOLS extends ToolSet> = {
|
|
|
3085
3096
|
[NAME in keyof TOOLS]?: ReadonlyArray<'AI_SDK_DIRECT_TOOL_CALL' | ToolCallerName<TOOLS>>;
|
|
3086
3097
|
};
|
|
3087
3098
|
|
|
3088
|
-
declare const symbol$
|
|
3099
|
+
declare const symbol$n: unique symbol;
|
|
3089
3100
|
declare class InvalidToolInputError extends AISDKError {
|
|
3090
|
-
private readonly [symbol$
|
|
3101
|
+
private readonly [symbol$n];
|
|
3091
3102
|
readonly toolName: string;
|
|
3092
3103
|
readonly toolInput: string;
|
|
3093
3104
|
constructor({ toolInput, toolName, cause, message, }: {
|
|
@@ -3099,9 +3110,9 @@ declare class InvalidToolInputError extends AISDKError {
|
|
|
3099
3110
|
static isInstance(error: unknown): error is InvalidToolInputError;
|
|
3100
3111
|
}
|
|
3101
3112
|
|
|
3102
|
-
declare const symbol$
|
|
3113
|
+
declare const symbol$m: unique symbol;
|
|
3103
3114
|
declare class NoSuchToolError extends AISDKError {
|
|
3104
|
-
private readonly [symbol$
|
|
3115
|
+
private readonly [symbol$m];
|
|
3105
3116
|
readonly toolName: string;
|
|
3106
3117
|
readonly availableTools: string[] | undefined;
|
|
3107
3118
|
constructor({ toolName, availableTools, message, }: {
|
|
@@ -6218,9 +6229,29 @@ type BatchRequestOptions = {
|
|
|
6218
6229
|
/**
|
|
6219
6230
|
* Options for starting a text batch.
|
|
6220
6231
|
*/
|
|
6221
|
-
type StartTextBatchOptions = {
|
|
6232
|
+
type StartTextBatchOptions<TOOLS extends ToolSet = ToolSet> = {
|
|
6222
6233
|
model: BatchLanguageModel;
|
|
6223
6234
|
requests: ReadonlyArray<TextBatchRequest>;
|
|
6235
|
+
/**
|
|
6236
|
+
* Tools that the model can call for every request in the batch.
|
|
6237
|
+
*
|
|
6238
|
+
* Tool definitions are sent to the provider, but their `execute` functions
|
|
6239
|
+
* are never invoked by batch processing.
|
|
6240
|
+
*/
|
|
6241
|
+
tools?: TOOLS;
|
|
6242
|
+
/**
|
|
6243
|
+
* The tool choice strategy. Default: 'auto'.
|
|
6244
|
+
*/
|
|
6245
|
+
toolChoice?: ToolChoice<NoInfer<TOOLS>>;
|
|
6246
|
+
/**
|
|
6247
|
+
* Controls the order in which tools are sent to the provider. Tools not
|
|
6248
|
+
* listed are appended alphabetically.
|
|
6249
|
+
*/
|
|
6250
|
+
toolOrder?: ToolOrder<TOOLS>;
|
|
6251
|
+
/**
|
|
6252
|
+
* Context used when resolving dynamic tool descriptions.
|
|
6253
|
+
*/
|
|
6254
|
+
toolsContext?: InferToolSetContext<TOOLS>;
|
|
6224
6255
|
providerOptions?: ProviderOptions;
|
|
6225
6256
|
/**
|
|
6226
6257
|
* URL that the provider should notify when the batch reaches a terminal
|
|
@@ -6238,18 +6269,25 @@ type StartTextBatchResult = TextBatch & {
|
|
|
6238
6269
|
/**
|
|
6239
6270
|
* Options shared by batch status and result retrieval operations.
|
|
6240
6271
|
*/
|
|
6241
|
-
type BatchOperationOptions = {
|
|
6272
|
+
type BatchOperationOptions<TOOLS extends ToolSet = ToolSet> = {
|
|
6242
6273
|
model: BatchLanguageModel;
|
|
6243
6274
|
batch: BatchReference;
|
|
6275
|
+
/**
|
|
6276
|
+
* Definitions for client tools that were provided to `startTextBatch`.
|
|
6277
|
+
*
|
|
6278
|
+
* The definitions are used only to validate and normalize returned tool
|
|
6279
|
+
* calls. Their `execute` functions are never invoked.
|
|
6280
|
+
*/
|
|
6281
|
+
tools?: TOOLS;
|
|
6244
6282
|
providerOptions?: ProviderOptions;
|
|
6245
6283
|
maxRetries?: number;
|
|
6246
6284
|
} & BatchRequestOptions;
|
|
6247
6285
|
/**
|
|
6248
6286
|
* A normalized result for a successful text batch item.
|
|
6249
6287
|
*/
|
|
6250
|
-
type TextBatchGenerationResult = {
|
|
6288
|
+
type TextBatchGenerationResult<TOOLS extends ToolSet = ToolSet> = {
|
|
6251
6289
|
/** Ordered normalized content, including citations, sources, and tool data. */
|
|
6252
|
-
readonly content: Array<ContentPart<
|
|
6290
|
+
readonly content: Array<ContentPart<TOOLS>>;
|
|
6253
6291
|
readonly text: string;
|
|
6254
6292
|
readonly finishReason: FinishReason;
|
|
6255
6293
|
readonly rawFinishReason?: string;
|
|
@@ -6264,7 +6302,7 @@ type TextBatchGenerationResult = {
|
|
|
6264
6302
|
/**
|
|
6265
6303
|
* A complete terminal result for one request in a text batch.
|
|
6266
6304
|
*/
|
|
6267
|
-
type TextBatchItemResult = (TextBatchGenerationResult & {
|
|
6305
|
+
type TextBatchItemResult<TOOLS extends ToolSet = ToolSet> = (TextBatchGenerationResult<TOOLS> & {
|
|
6268
6306
|
readonly id: string;
|
|
6269
6307
|
readonly status: 'succeeded';
|
|
6270
6308
|
}) | {
|
|
@@ -6282,15 +6320,15 @@ type TextBatchItemResult = (TextBatchGenerationResult & {
|
|
|
6282
6320
|
/**
|
|
6283
6321
|
* Starts a durable text-generation batch.
|
|
6284
6322
|
*/
|
|
6285
|
-
declare function startTextBatch({ model: modelArg, requests, providerOptions, webhookUrl, abortSignal, headers, timeout, }: StartTextBatchOptions): Promise<StartTextBatchResult>;
|
|
6323
|
+
declare function startTextBatch<TOOLS extends ToolSet>({ model: modelArg, requests, tools, toolChoice, toolOrder, toolsContext, providerOptions, webhookUrl, abortSignal, headers, timeout, }: StartTextBatchOptions<TOOLS>): Promise<StartTextBatchResult>;
|
|
6286
6324
|
/**
|
|
6287
6325
|
* Retrieves the latest normalized status for a durable batch.
|
|
6288
6326
|
*/
|
|
6289
|
-
declare function getBatchStatus({ model: modelArg, batch, providerOptions, maxRetries, abortSignal, headers, timeout, }: BatchOperationOptions): Promise<BatchStatus>;
|
|
6327
|
+
declare function getBatchStatus({ model: modelArg, batch, providerOptions, maxRetries, abortSignal, headers, timeout, }: Omit<BatchOperationOptions, 'tools'>): Promise<BatchStatus>;
|
|
6290
6328
|
/**
|
|
6291
6329
|
* Streams complete terminal results for the requests in a durable batch.
|
|
6292
6330
|
*/
|
|
6293
|
-
declare function getBatchResults({ model: modelArg, batch, providerOptions, maxRetries, abortSignal, headers, timeout, }: BatchOperationOptions): AsyncIterableStream<TextBatchItemResult
|
|
6331
|
+
declare function getBatchResults<TOOLS extends ToolSet>({ model: modelArg, batch, tools, providerOptions, maxRetries, abortSignal, headers, timeout, }: BatchOperationOptions<TOOLS>): AsyncIterableStream<TextBatchItemResult<TOOLS>>;
|
|
6294
6332
|
|
|
6295
6333
|
/**
|
|
6296
6334
|
* The result of an `embed` call.
|
|
@@ -6565,9 +6603,9 @@ declare function embedMany({ model: modelArg, values, maxParallelCalls, maxRetri
|
|
|
6565
6603
|
};
|
|
6566
6604
|
}): Promise<EmbedManyResult>;
|
|
6567
6605
|
|
|
6568
|
-
declare const symbol$
|
|
6606
|
+
declare const symbol$l: unique symbol;
|
|
6569
6607
|
declare class InvalidArgumentError extends AISDKError {
|
|
6570
|
-
private readonly [symbol$
|
|
6608
|
+
private readonly [symbol$l];
|
|
6571
6609
|
readonly parameter: string;
|
|
6572
6610
|
readonly value: unknown;
|
|
6573
6611
|
constructor({ parameter, value, message, }: {
|
|
@@ -6712,9 +6750,9 @@ declare function streamLanguageModelCall<TOOLS extends ToolSet, OUTPUT extends O
|
|
|
6712
6750
|
};
|
|
6713
6751
|
}>;
|
|
6714
6752
|
|
|
6715
|
-
declare const symbol$
|
|
6753
|
+
declare const symbol$k: unique symbol;
|
|
6716
6754
|
declare class InvalidStreamPartError extends AISDKError {
|
|
6717
|
-
private readonly [symbol$
|
|
6755
|
+
private readonly [symbol$k];
|
|
6718
6756
|
readonly chunk: LanguageModelStreamPart<any>;
|
|
6719
6757
|
constructor({ chunk, message, }: {
|
|
6720
6758
|
chunk: LanguageModelStreamPart<any>;
|
|
@@ -6723,9 +6761,9 @@ declare class InvalidStreamPartError extends AISDKError {
|
|
|
6723
6761
|
static isInstance(error: unknown): error is InvalidStreamPartError;
|
|
6724
6762
|
}
|
|
6725
6763
|
|
|
6726
|
-
declare const symbol$
|
|
6764
|
+
declare const symbol$j: unique symbol;
|
|
6727
6765
|
declare class InvalidToolApprovalError extends AISDKError {
|
|
6728
|
-
private readonly [symbol$
|
|
6766
|
+
private readonly [symbol$j];
|
|
6729
6767
|
readonly approvalId: string;
|
|
6730
6768
|
constructor({ approvalId }: {
|
|
6731
6769
|
approvalId: string;
|
|
@@ -6733,9 +6771,9 @@ declare class InvalidToolApprovalError extends AISDKError {
|
|
|
6733
6771
|
static isInstance(error: unknown): error is InvalidToolApprovalError;
|
|
6734
6772
|
}
|
|
6735
6773
|
|
|
6736
|
-
declare const symbol$
|
|
6774
|
+
declare const symbol$i: unique symbol;
|
|
6737
6775
|
declare class InvalidToolApprovalSignatureError extends AISDKError {
|
|
6738
|
-
private readonly [symbol$
|
|
6776
|
+
private readonly [symbol$i];
|
|
6739
6777
|
readonly approvalId: string;
|
|
6740
6778
|
readonly toolCallId: string;
|
|
6741
6779
|
constructor({ approvalId, toolCallId, reason, }: {
|
|
@@ -6746,9 +6784,9 @@ declare class InvalidToolApprovalSignatureError extends AISDKError {
|
|
|
6746
6784
|
static isInstance(error: unknown): error is InvalidToolApprovalSignatureError;
|
|
6747
6785
|
}
|
|
6748
6786
|
|
|
6749
|
-
declare const symbol$
|
|
6787
|
+
declare const symbol$h: unique symbol;
|
|
6750
6788
|
declare class ToolCallNotFoundForApprovalError extends AISDKError {
|
|
6751
|
-
private readonly [symbol$
|
|
6789
|
+
private readonly [symbol$h];
|
|
6752
6790
|
readonly toolCallId: string;
|
|
6753
6791
|
readonly approvalId: string;
|
|
6754
6792
|
constructor({ toolCallId, approvalId, }: {
|
|
@@ -6758,9 +6796,9 @@ declare class ToolCallNotFoundForApprovalError extends AISDKError {
|
|
|
6758
6796
|
static isInstance(error: unknown): error is ToolCallNotFoundForApprovalError;
|
|
6759
6797
|
}
|
|
6760
6798
|
|
|
6761
|
-
declare const symbol$
|
|
6799
|
+
declare const symbol$g: unique symbol;
|
|
6762
6800
|
declare class MissingToolResultsError extends AISDKError {
|
|
6763
|
-
private readonly [symbol$
|
|
6801
|
+
private readonly [symbol$g];
|
|
6764
6802
|
readonly toolCallIds: string[];
|
|
6765
6803
|
constructor({ toolCallIds }: {
|
|
6766
6804
|
toolCallIds: string[];
|
|
@@ -6768,7 +6806,7 @@ declare class MissingToolResultsError extends AISDKError {
|
|
|
6768
6806
|
static isInstance(error: unknown): error is MissingToolResultsError;
|
|
6769
6807
|
}
|
|
6770
6808
|
|
|
6771
|
-
declare const symbol$
|
|
6809
|
+
declare const symbol$f: unique symbol;
|
|
6772
6810
|
/**
|
|
6773
6811
|
* Thrown when no image could be generated. This can have multiple causes:
|
|
6774
6812
|
*
|
|
@@ -6776,7 +6814,7 @@ declare const symbol$e: unique symbol;
|
|
|
6776
6814
|
* - The model generated a response that could not be parsed.
|
|
6777
6815
|
*/
|
|
6778
6816
|
declare class NoImageGeneratedError extends AISDKError {
|
|
6779
|
-
private readonly [symbol$
|
|
6817
|
+
private readonly [symbol$f];
|
|
6780
6818
|
/**
|
|
6781
6819
|
* The response metadata for each call.
|
|
6782
6820
|
*/
|
|
@@ -6789,7 +6827,7 @@ declare class NoImageGeneratedError extends AISDKError {
|
|
|
6789
6827
|
static isInstance(error: unknown): error is NoImageGeneratedError;
|
|
6790
6828
|
}
|
|
6791
6829
|
|
|
6792
|
-
declare const symbol$
|
|
6830
|
+
declare const symbol$e: unique symbol;
|
|
6793
6831
|
/**
|
|
6794
6832
|
* Thrown when no object could be generated. This can have several causes:
|
|
6795
6833
|
*
|
|
@@ -6802,7 +6840,7 @@ declare const symbol$d: unique symbol;
|
|
|
6802
6840
|
* - `text`: The text that was generated by the model. This can be the raw text or the tool call text, depending on the model.
|
|
6803
6841
|
*/
|
|
6804
6842
|
declare class NoObjectGeneratedError extends AISDKError {
|
|
6805
|
-
private readonly [symbol$
|
|
6843
|
+
private readonly [symbol$e];
|
|
6806
6844
|
/**
|
|
6807
6845
|
* The text that was generated by the model. This can be the raw text or the tool call text, depending on the model.
|
|
6808
6846
|
*/
|
|
@@ -6830,12 +6868,12 @@ declare class NoObjectGeneratedError extends AISDKError {
|
|
|
6830
6868
|
static isInstance(error: unknown): error is NoObjectGeneratedError;
|
|
6831
6869
|
}
|
|
6832
6870
|
|
|
6833
|
-
declare const symbol$
|
|
6871
|
+
declare const symbol$d: unique symbol;
|
|
6834
6872
|
/**
|
|
6835
6873
|
* Thrown when no LLM output was generated, e.g. because of errors.
|
|
6836
6874
|
*/
|
|
6837
6875
|
declare class NoOutputGeneratedError extends AISDKError {
|
|
6838
|
-
private readonly [symbol$
|
|
6876
|
+
private readonly [symbol$d];
|
|
6839
6877
|
constructor({ message, cause, }?: {
|
|
6840
6878
|
message?: string;
|
|
6841
6879
|
cause?: Error;
|
|
@@ -6843,12 +6881,12 @@ declare class NoOutputGeneratedError extends AISDKError {
|
|
|
6843
6881
|
static isInstance(error: unknown): error is NoOutputGeneratedError;
|
|
6844
6882
|
}
|
|
6845
6883
|
|
|
6846
|
-
declare const symbol$
|
|
6884
|
+
declare const symbol$c: unique symbol;
|
|
6847
6885
|
/**
|
|
6848
6886
|
* Error that is thrown when no speech audio was generated.
|
|
6849
6887
|
*/
|
|
6850
6888
|
declare class NoSpeechGeneratedError extends AISDKError {
|
|
6851
|
-
private readonly [symbol$
|
|
6889
|
+
private readonly [symbol$c];
|
|
6852
6890
|
readonly responses: Array<SpeechModelResponseMetadata>;
|
|
6853
6891
|
constructor(options: {
|
|
6854
6892
|
responses: Array<SpeechModelResponseMetadata>;
|
|
@@ -6856,12 +6894,12 @@ declare class NoSpeechGeneratedError extends AISDKError {
|
|
|
6856
6894
|
static isInstance(error: unknown): error is NoSpeechGeneratedError;
|
|
6857
6895
|
}
|
|
6858
6896
|
|
|
6859
|
-
declare const symbol$
|
|
6897
|
+
declare const symbol$b: unique symbol;
|
|
6860
6898
|
/**
|
|
6861
6899
|
* Error that is thrown when no transcript was generated.
|
|
6862
6900
|
*/
|
|
6863
6901
|
declare class NoTranscriptGeneratedError extends AISDKError {
|
|
6864
|
-
private readonly [symbol$
|
|
6902
|
+
private readonly [symbol$b];
|
|
6865
6903
|
readonly responses: Array<TranscriptionModelResponseMetadata>;
|
|
6866
6904
|
constructor(options: {
|
|
6867
6905
|
responses: Array<TranscriptionModelResponseMetadata>;
|
|
@@ -6890,12 +6928,12 @@ type SpeechTranslationModelResponseMetadata = {
|
|
|
6890
6928
|
headers?: Record<string, string>;
|
|
6891
6929
|
};
|
|
6892
6930
|
|
|
6893
|
-
declare const symbol$
|
|
6931
|
+
declare const symbol$a: unique symbol;
|
|
6894
6932
|
/**
|
|
6895
6933
|
* Error that is thrown when no translation was generated.
|
|
6896
6934
|
*/
|
|
6897
6935
|
declare class NoTranslationGeneratedError extends AISDKError {
|
|
6898
|
-
private readonly [symbol$
|
|
6936
|
+
private readonly [symbol$a];
|
|
6899
6937
|
readonly response: SpeechTranslationModelResponseMetadata;
|
|
6900
6938
|
constructor(options: {
|
|
6901
6939
|
response: SpeechTranslationModelResponseMetadata;
|
|
@@ -6927,9 +6965,9 @@ type VideoModelResponseMetadata = {
|
|
|
6927
6965
|
providerMetadata?: SharedV4ProviderMetadata;
|
|
6928
6966
|
};
|
|
6929
6967
|
|
|
6930
|
-
declare const symbol$
|
|
6968
|
+
declare const symbol$9: unique symbol;
|
|
6931
6969
|
declare class NoVideoGeneratedError extends AISDKError {
|
|
6932
|
-
private readonly [symbol$
|
|
6970
|
+
private readonly [symbol$9];
|
|
6933
6971
|
readonly responses: Array<VideoModelResponseMetadata>;
|
|
6934
6972
|
constructor({ message, cause, responses, }: {
|
|
6935
6973
|
message?: string;
|
|
@@ -6953,12 +6991,12 @@ declare class NoVideoGeneratedError extends AISDKError {
|
|
|
6953
6991
|
};
|
|
6954
6992
|
}
|
|
6955
6993
|
|
|
6956
|
-
declare const symbol$
|
|
6994
|
+
declare const symbol$8: unique symbol;
|
|
6957
6995
|
/**
|
|
6958
6996
|
* Error reported by a provider after a model response stream has started.
|
|
6959
6997
|
*/
|
|
6960
6998
|
declare class StreamProviderError extends AISDKError {
|
|
6961
|
-
private readonly [symbol$
|
|
6999
|
+
private readonly [symbol$8];
|
|
6962
7000
|
/**
|
|
6963
7001
|
* Provider-defined error type, when supplied by the provider.
|
|
6964
7002
|
*/
|
|
@@ -6992,9 +7030,9 @@ declare class StreamProviderError extends AISDKError {
|
|
|
6992
7030
|
static isInstance(error: unknown): error is StreamProviderError;
|
|
6993
7031
|
}
|
|
6994
7032
|
|
|
6995
|
-
declare const symbol$
|
|
7033
|
+
declare const symbol$7: unique symbol;
|
|
6996
7034
|
declare class ToolCallRepairError extends AISDKError {
|
|
6997
|
-
private readonly [symbol$
|
|
7035
|
+
private readonly [symbol$7];
|
|
6998
7036
|
readonly originalError: NoSuchToolError | InvalidToolInputError;
|
|
6999
7037
|
constructor({ cause, originalError, message, }: {
|
|
7000
7038
|
message?: string;
|
|
@@ -7004,6 +7042,51 @@ declare class ToolCallRepairError extends AISDKError {
|
|
|
7004
7042
|
static isInstance(error: unknown): error is ToolCallRepairError;
|
|
7005
7043
|
}
|
|
7006
7044
|
|
|
7045
|
+
declare const symbol$6: unique symbol;
|
|
7046
|
+
type EnforcedToolChoice = Extract<LanguageModelV4ToolChoice, {
|
|
7047
|
+
type: 'required';
|
|
7048
|
+
} | {
|
|
7049
|
+
type: 'tool';
|
|
7050
|
+
}>;
|
|
7051
|
+
/**
|
|
7052
|
+
* Thrown when a model response does not satisfy an enforced tool choice.
|
|
7053
|
+
*/
|
|
7054
|
+
declare class ToolChoiceViolationError extends AISDKError {
|
|
7055
|
+
private readonly [symbol$6];
|
|
7056
|
+
/**
|
|
7057
|
+
* The tool choice that the model response did not satisfy.
|
|
7058
|
+
*/
|
|
7059
|
+
readonly toolChoice: EnforcedToolChoice;
|
|
7060
|
+
/**
|
|
7061
|
+
* Reason why the model finished generating the response.
|
|
7062
|
+
*/
|
|
7063
|
+
readonly finishReason: FinishReason;
|
|
7064
|
+
/**
|
|
7065
|
+
* The provider that returned the response.
|
|
7066
|
+
*/
|
|
7067
|
+
readonly provider: string;
|
|
7068
|
+
/**
|
|
7069
|
+
* The model that returned the response.
|
|
7070
|
+
*/
|
|
7071
|
+
readonly modelId: string;
|
|
7072
|
+
/**
|
|
7073
|
+
* The normalized content returned by the model.
|
|
7074
|
+
*
|
|
7075
|
+
* This can be inspected to recover a tool call that the provider returned as
|
|
7076
|
+
* text or reasoning instead of a structured tool call.
|
|
7077
|
+
*/
|
|
7078
|
+
readonly content: Array<LanguageModelV4Content>;
|
|
7079
|
+
constructor({ toolChoice, finishReason, provider, modelId, content, message, }: {
|
|
7080
|
+
toolChoice: EnforcedToolChoice;
|
|
7081
|
+
finishReason: FinishReason;
|
|
7082
|
+
provider: string;
|
|
7083
|
+
modelId: string;
|
|
7084
|
+
content: Array<LanguageModelV4Content>;
|
|
7085
|
+
message?: string;
|
|
7086
|
+
});
|
|
7087
|
+
static isInstance(error: unknown): error is ToolChoiceViolationError;
|
|
7088
|
+
}
|
|
7089
|
+
|
|
7007
7090
|
/**
|
|
7008
7091
|
* Error that is thrown when a model with an unsupported version is used.
|
|
7009
7092
|
*/
|
|
@@ -9579,4 +9662,4 @@ declare function uploadSkill({ api, files, displayTitle, providerOptions, }: {
|
|
|
9579
9662
|
files: UploadSkillFile[];
|
|
9580
9663
|
}): Promise<UploadSkillResult>;
|
|
9581
9664
|
|
|
9582
|
-
export { AI_SDK_TELEMETRY_TRACING_CHANNEL, AbstractChat, type ActiveTools, type Agent, type AgentCallParameters, type AgentStreamParameters, type AsyncIterableStream, type CallSettings, 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 DataUIPart, type DeepPartial, DefaultChatTransport, DefaultGeneratedFile, DirectChatTransport, type DirectChatTransportOptions, type DynamicToolCall, type DynamicToolError, type DynamicToolResult, type DynamicToolUIPart, type EmbedEndEvent, type EmbedManyResult, type EmbedResult, type EmbedStartEvent, type Embedding, type EmbeddingModel, type EmbeddingModelCallEndEvent, type EmbeddingModelCallStartEvent, type EmbeddingModelMiddleware, type EmbeddingModelUsage, type ErrorHandler, AbstractRealtimeSession as Experimental_AbstractRealtimeSession, ToolLoopAgent as Experimental_Agent, type ToolLoopAgentSettings as Experimental_AgentSettings, type BatchError as Experimental_BatchError, type BatchLanguageModel as Experimental_BatchLanguageModel, type BatchOperationOptions as Experimental_BatchOperationOptions, type BatchReference as Experimental_BatchReference, type BatchStatus as Experimental_BatchStatus, type DownloadFunction as Experimental_DownloadFunction, type Experimental_GeneratedImage, type InferAgentUIMessage as Experimental_InferAgentUIMessage, type LanguageModelStreamPart as Experimental_LanguageModelStreamPart, type LogWarningsFunction as Experimental_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 RealtimeSetupResponse as Experimental_RealtimeSetupResponse, type RealtimeState as Experimental_RealtimeState, type RealtimeStatus as Experimental_RealtimeStatus, type RealtimeToolDefinition as Experimental_RealtimeToolDefinition, type Experimental_SpeechResult, type StartTextBatchOptions as Experimental_StartTextBatchOptions, type StartTextBatchResult as Experimental_StartTextBatchResult, type StreamTranslationResult as Experimental_StreamTranslationResult, type TextBatch as Experimental_TextBatch, type TextBatchGenerationResult as Experimental_TextBatchGenerationResult, type TextBatchItemResult as Experimental_TextBatchItemResult, type TextBatchReference as Experimental_TextBatchReference, type TextBatchRequest as Experimental_TextBatchRequest, type Experimental_ToolCallers, type Experimental_TranscriptionResult, type TranslationStreamPart as Experimental_TranslationStreamPart, type FileUIPart, type FinishReason, 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, HttpChatTransport, type HttpChatTransportInitOptions, type ImageModel, type ImageModelMiddleware, type ImageModelProviderMetadata, type ImageModelResponseMetadata, type ImageModelUsage, type InferAgentUIMessage, type InferCompleteOutput as InferGenerateOutput, type InferPartialOutput as InferStreamOutput, type InferTelemetryEvent, type InferUIDataParts, type InferUIMessageChunk, type InferUITool, type InferUITools, type Instructions, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidStreamPartError, InvalidToolApprovalError, InvalidToolApprovalSignatureError, InvalidToolInputError, type JSONValue, JsonToSseTransformStream, type LanguageModel, type LanguageModelCallEndEvent, type LanguageModelCallOptions, type LanguageModelCallStartEvent, type LanguageModelMiddleware, type LanguageModelRequestMetadata, type LanguageModelResponseMetadata, type LanguageModelUsage, type LogWarningsFunction, MessageConversionError, MissingToolResultsError, type ModelInfo, NoImageGeneratedError, NoObjectGeneratedError, NoOutputGeneratedError, NoSpeechGeneratedError, NoSuchProviderError, NoSuchToolError, NoTranscriptGeneratedError, NoTranslationGeneratedError, NoVideoGeneratedError, type ObjectStreamPart, type OnFinishEvent, type OnLanguageModelCallEndCallback, type OnLanguageModelCallStartCallback, type OnStartEvent, type OnStepFinishEvent, type OnStepStartEvent, type OnToolCallFinishEvent, type OnToolCallStartEvent, type OnToolExecutionEndCallback, type OnToolExecutionStartCallback, output 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, RetryError, type SafeValidateUIMessagesResult, SerialJobExecutor, 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, StreamProviderError, type StreamTextEndEvent, type StreamTextInclude, type StreamTextOnChunkCallback, type StreamTextOnEndCallback, type StreamTextOnErrorCallback, type StreamTextResult, type StreamTextTransform, type StreamTranscriptionResult, type Telemetry, type TelemetryOptions, type TelemetryTracingChannelMessage, type TelemetryTracingEventType, TextStreamChatTransport, type TextStreamPart, type TextUIPart, type TimeoutConfiguration, type ToUIMessageChunkOptions, type ToolApprovalConfiguration, type ToolApprovalRequestOutput, type ToolApprovalResponseOutput, type ToolApprovalStatus, ToolCallNotFoundForApprovalError, ToolCallRepairError, type ToolCallRepairFunction, type ToolChoice, type ToolExecutionEndEvent, type ToolExecutionStartEvent, type ToolInputRefinement, ToolLoopAgent, type ToolLoopAgentSettings, type ToolOrder, type ToolUIPart, type TranscriptionModel, type TranscriptionModelResponseMetadata, type TranscriptionResult, type TranscriptionStreamPart, type TypedToolCall, type TypedToolError, type TypedToolOutputDenied, type TypedToolResult, type UIDataPartSchemas, type UIDataTypes, type UIMessage, type UIMessageChunk, type UIMessagePart, UIMessageStreamError, type UIMessageStreamOnEndCallback, type UIMessageStreamOnFinishCallback, type UIMessageStreamOnStepEndCallback, type UIMessageStreamOnStepFinishCallback, type UIMessageStreamOptions, type UIMessageStreamOutcome, type UIMessageStreamWriter, type UIMessageStreamWriterWithOutcome, type UITool, type UIToolInvocation, type UITools, UI_MESSAGE_STREAM_HEADERS, UnsupportedModelVersionError, type UploadFileResult, type UploadSkillResult, type UseCompletionOptions, type Warning, addToolInputExamplesMiddleware, assistantModelMessageSchema, callCompletionApi, consumeStream, convertDataContentToBase64String, convertFileListToFileUIParts, convertToModelMessages, cosineSimilarity, createAgentUIStream, createAgentUIStreamResponse, createDownload, createProviderRegistry, createTextStreamResponse, createUIMessageStream, createUIMessageStreamResponse, customProvider, defaultEmbeddingSettingsMiddleware, defaultInstructionsMiddleware, defaultSettingsMiddleware, detectToolDrift, embed, embedMany, experimental_createProviderRegistry, decodeRealtimeAudio as experimental_decodeRealtimeAudio, encodeRealtimeAudio as experimental_encodeRealtimeAudio, filterActiveTools as experimental_filterActiveTools, experimental_generateSpeech, experimental_generateVideo, getBatchResults as experimental_getBatchResults, getBatchStatus as experimental_getBatchStatus, getRealtimeToolDefinitions as experimental_getRealtimeToolDefinitions, experimental_getVideoStatus, resampleAudio as experimental_resampleAudio, startTextBatch as experimental_startTextBatch, experimental_startVideo, streamLanguageModelCall as experimental_streamLanguageModelCall, streamTranscribe as experimental_streamTranscribe, streamTranslate as experimental_streamTranslate, experimental_transcribe, extractJsonMiddleware, extractReasoningMiddleware, fingerprintTools, generateImage, generateObject, generateSpeech, generateText, getChunkTimeoutMs, getFirstChunkTimeoutMs, getStaticToolName, getStepTimeoutMs, getTextFromDataUrl, getToolName, getToolOrDynamicToolName, getToolTimeoutMs, getTotalTimeoutMs, hasToolCall, isCustomContentUIPart, isDataUIPart, isDeepEqualData, isDynamicToolUIPart, isFileUIPart, isLoopFinished, isReasoningFileUIPart, isReasoningUIPart, isStaticToolUIPart, isStepCount, isTextUIPart, isToolUIPart, lastAssistantMessageIsCompleteWithApprovalResponses, lastAssistantMessageIsCompleteWithToolCalls, modelMessageSchema, parsePartialJson, pipeAgentUIStreamToResponse, pipeTextStreamToResponse, pipeUIMessageStreamToResponse, pruneMessages, readUIMessageStream, registerTelemetry, rerank, safeValidateUIMessages, simulateReadableStream, simulateStreamingMiddleware, smoothStream, isStepCount as stepCountIs, streamObject, streamText, systemModelMessageSchema, toTextStream, toUIMessageChunk, toUIMessageStream, toolModelMessageSchema, transcribe, uiMessageChunkSchema, uploadFile, uploadSkill, userModelMessageSchema, validateUIMessages, wrapEmbeddingModel, wrapImageModel, wrapLanguageModel, wrapProvider };
|
|
9665
|
+
export { AI_SDK_TELEMETRY_TRACING_CHANNEL, AbstractChat, type ActiveTools, type Agent, type AgentCallParameters, type AgentStreamParameters, type AsyncIterableStream, type CallSettings, 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 DataUIPart, type DeepPartial, DefaultChatTransport, DefaultGeneratedFile, DirectChatTransport, type DirectChatTransportOptions, type DynamicToolCall, type DynamicToolError, type DynamicToolResult, type DynamicToolUIPart, type EmbedEndEvent, type EmbedManyResult, type EmbedResult, type EmbedStartEvent, type Embedding, type EmbeddingModel, type EmbeddingModelCallEndEvent, type EmbeddingModelCallStartEvent, type EmbeddingModelMiddleware, type EmbeddingModelUsage, type ErrorHandler, AbstractRealtimeSession as Experimental_AbstractRealtimeSession, ToolLoopAgent as Experimental_Agent, type ToolLoopAgentSettings as Experimental_AgentSettings, type BatchError as Experimental_BatchError, type BatchLanguageModel as Experimental_BatchLanguageModel, type BatchOperationOptions as Experimental_BatchOperationOptions, type BatchReference as Experimental_BatchReference, type BatchStatus as Experimental_BatchStatus, type DownloadFunction as Experimental_DownloadFunction, type Experimental_GeneratedImage, type InferAgentUIMessage as Experimental_InferAgentUIMessage, type LanguageModelStreamPart as Experimental_LanguageModelStreamPart, type LogWarningsFunction as Experimental_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 RealtimeSetupResponse as Experimental_RealtimeSetupResponse, type RealtimeState as Experimental_RealtimeState, type RealtimeStatus as Experimental_RealtimeStatus, type RealtimeToolDefinition as Experimental_RealtimeToolDefinition, type Experimental_SpeechResult, type StartTextBatchOptions as Experimental_StartTextBatchOptions, type StartTextBatchResult as Experimental_StartTextBatchResult, type StreamTranslationResult as Experimental_StreamTranslationResult, type TextBatch as Experimental_TextBatch, type TextBatchGenerationResult as Experimental_TextBatchGenerationResult, type TextBatchItemResult as Experimental_TextBatchItemResult, type TextBatchReference as Experimental_TextBatchReference, type TextBatchRequest as Experimental_TextBatchRequest, type Experimental_ToolCallers, type Experimental_TranscriptionResult, type TranslationStreamPart as Experimental_TranslationStreamPart, type FileUIPart, type FinishReason, 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, HttpChatTransport, type HttpChatTransportInitOptions, type ImageModel, type ImageModelMiddleware, type ImageModelProviderMetadata, type ImageModelResponseMetadata, type ImageModelUsage, type InferAgentUIMessage, type InferCompleteOutput as InferGenerateOutput, type InferPartialOutput as InferStreamOutput, type InferTelemetryEvent, type InferUIDataParts, type InferUIMessageChunk, type InferUITool, type InferUITools, type Instructions, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidStreamPartError, InvalidToolApprovalError, InvalidToolApprovalSignatureError, InvalidToolInputError, type JSONValue, JsonToSseTransformStream, type LanguageModel, type LanguageModelCallEndEvent, type LanguageModelCallOptions, type LanguageModelCallStartEvent, type LanguageModelMiddleware, type LanguageModelRequestMetadata, type LanguageModelResponseMetadata, type LanguageModelUsage, type LogWarningsFunction, MessageConversionError, MissingToolResultsError, type ModelInfo, NoImageGeneratedError, NoObjectGeneratedError, NoOutputGeneratedError, NoSpeechGeneratedError, NoSuchProviderError, NoSuchToolError, NoTranscriptGeneratedError, NoTranslationGeneratedError, NoVideoGeneratedError, type ObjectStreamPart, type OnFinishEvent, type OnLanguageModelCallEndCallback, type OnLanguageModelCallStartCallback, type OnStartEvent, type OnStepFinishEvent, type OnStepStartEvent, type OnToolCallFinishEvent, type OnToolCallStartEvent, type OnToolExecutionEndCallback, type OnToolExecutionStartCallback, output 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, RetryError, type SafeValidateUIMessagesResult, SerialJobExecutor, 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, StreamProviderError, type StreamTextEndEvent, type StreamTextInclude, type StreamTextOnChunkCallback, type StreamTextOnEndCallback, type StreamTextOnErrorCallback, type StreamTextResult, type StreamTextTransform, type StreamTranscriptionResult, type Telemetry, type TelemetryOptions, type TelemetryTracingChannelMessage, type TelemetryTracingEventType, TextStreamChatTransport, type TextStreamPart, type TextUIPart, type TimeoutConfiguration, type ToUIMessageChunkOptions, type ToolApprovalConfiguration, type ToolApprovalRequestOutput, type ToolApprovalResponseOutput, type ToolApprovalStatus, ToolCallNotFoundForApprovalError, ToolCallRepairError, type ToolCallRepairFunction, type ToolChoice, ToolChoiceViolationError, type ToolExecutionEndEvent, type ToolExecutionStartEvent, type ToolInputRefinement, ToolLoopAgent, type ToolLoopAgentSettings, type ToolOrder, type ToolUIPart, type TranscriptionModel, type TranscriptionModelResponseMetadata, type TranscriptionResult, type TranscriptionStreamPart, type TypedToolCall, type TypedToolError, type TypedToolOutputDenied, type TypedToolResult, type UIDataPartSchemas, type UIDataTypes, type UIMessage, type UIMessageChunk, type UIMessagePart, UIMessageStreamError, type UIMessageStreamOnEndCallback, type UIMessageStreamOnFinishCallback, type UIMessageStreamOnStepEndCallback, type UIMessageStreamOnStepFinishCallback, type UIMessageStreamOptions, type UIMessageStreamOutcome, type UIMessageStreamWriter, type UIMessageStreamWriterWithOutcome, type UITool, type UIToolInvocation, type UITools, UI_MESSAGE_STREAM_HEADERS, UnsupportedModelVersionError, type UploadFileResult, type UploadSkillResult, type UseCompletionOptions, type Warning, addToolInputExamplesMiddleware, assistantModelMessageSchema, callCompletionApi, consumeStream, convertDataContentToBase64String, convertFileListToFileUIParts, convertToModelMessages, cosineSimilarity, createAgentUIStream, createAgentUIStreamResponse, createDownload, createProviderRegistry, createTextStreamResponse, createUIMessageStream, createUIMessageStreamResponse, customProvider, defaultEmbeddingSettingsMiddleware, defaultInstructionsMiddleware, defaultSettingsMiddleware, detectToolDrift, embed, embedMany, experimental_createProviderRegistry, decodeRealtimeAudio as experimental_decodeRealtimeAudio, encodeRealtimeAudio as experimental_encodeRealtimeAudio, filterActiveTools as experimental_filterActiveTools, experimental_generateSpeech, experimental_generateVideo, getBatchResults as experimental_getBatchResults, getBatchStatus as experimental_getBatchStatus, getRealtimeToolDefinitions as experimental_getRealtimeToolDefinitions, experimental_getVideoStatus, resampleAudio as experimental_resampleAudio, startTextBatch as experimental_startTextBatch, experimental_startVideo, streamLanguageModelCall as experimental_streamLanguageModelCall, streamTranscribe as experimental_streamTranscribe, streamTranslate as experimental_streamTranslate, experimental_transcribe, extractJsonMiddleware, extractReasoningMiddleware, fingerprintTools, generateImage, generateObject, generateSpeech, generateText, getChunkTimeoutMs, getFirstChunkTimeoutMs, getStaticToolName, getStepTimeoutMs, getTextFromDataUrl, getToolName, getToolOrDynamicToolName, getToolTimeoutMs, getTotalTimeoutMs, hasToolCall, isCustomContentUIPart, isDataUIPart, isDeepEqualData, isDynamicToolUIPart, isFileUIPart, isLoopFinished, isReasoningFileUIPart, isReasoningUIPart, isStaticToolUIPart, isStepCount, isTextUIPart, isToolUIPart, lastAssistantMessageIsCompleteWithApprovalResponses, lastAssistantMessageIsCompleteWithToolCalls, modelMessageSchema, parsePartialJson, pipeAgentUIStreamToResponse, pipeTextStreamToResponse, pipeUIMessageStreamToResponse, pruneMessages, readUIMessageStream, registerTelemetry, rerank, safeValidateUIMessages, simulateReadableStream, simulateStreamingMiddleware, smoothStream, isStepCount as stepCountIs, streamObject, streamText, systemModelMessageSchema, toTextStream, toUIMessageChunk, toUIMessageStream, toolModelMessageSchema, transcribe, uiMessageChunkSchema, uploadFile, uploadSkill, userModelMessageSchema, validateUIMessages, wrapEmbeddingModel, wrapImageModel, wrapLanguageModel, wrapProvider };
|