ai 7.0.78 → 7.0.82
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 +48 -0
- package/dist/index.d.ts +103 -37
- package/dist/index.js +608 -422
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +9 -1
- package/dist/internal/index.js +4 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/test/index.d.ts +4 -1
- package/dist/test/index.js +4 -0
- package/dist/test/index.js.map +1 -1
- package/docs/02-foundations/02-providers-and-models.mdx +2 -2
- package/docs/03-agents/06-policy-tool-approvals.mdx +1 -1
- package/docs/03-agents/06-tool-approvals.mdx +6 -0
- package/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +6 -4
- package/docs/03-ai-sdk-core/50-error-handling.mdx +17 -2
- package/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +4 -4
- package/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +6 -0
- package/docs/04-ai-sdk-ui/50-stream-protocol.mdx +2 -2
- package/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +1 -1
- package/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +5 -4
- package/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +6 -2
- package/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +1 -1
- package/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +2 -2
- package/docs/07-reference/04-ai-sdk-workflow/03-generate-video.mdx +157 -0
- package/docs/07-reference/04-ai-sdk-workflow/index.mdx +6 -0
- package/docs/07-reference/05-ai-sdk-errors/ai-stream-provider-error.mdx +52 -0
- package/docs/07-reference/05-ai-sdk-errors/index.mdx +1 -0
- package/package.json +18 -7
- package/src/batch/batch-types.ts +7 -0
- package/src/batch/batch.ts +2 -0
- package/src/embed/embed-many.ts +78 -8
- package/src/error/index.ts +1 -0
- package/src/error/stream-provider-error.ts +78 -0
- package/src/generate-text/execute-tools-from-stream.ts +3 -0
- package/src/generate-text/generate-text-result.ts +2 -1
- package/src/generate-text/generate-text.ts +9 -2
- package/src/generate-text/stream-language-model-call.ts +8 -0
- package/src/generate-text/to-response-messages.ts +1 -0
- package/src/generate-text/tool-approval-configuration.ts +5 -1
- package/src/generate-text/tool-approval-request-output.ts +5 -0
- package/src/index.ts +7 -1
- package/src/middleware/wrap-embedding-model.ts +11 -2
- package/src/model/get-embedding-model-max-input-bytes-per-call.ts +15 -0
- package/src/prompt/content-part.ts +1 -0
- package/src/prompt/normalize-stream-provider-error.ts +131 -0
- package/src/test/mock-embedding-model-v4.ts +9 -0
- package/src/ui/convert-to-model-messages.ts +3 -0
- package/src/ui/process-ui-message-stream.ts +8 -3
- package/src/ui/ui-messages.ts +10 -0
- package/src/ui/validate-ui-messages.ts +10 -0
- package/src/ui-message-stream/to-ui-message-chunk.ts +1 -0
- package/src/ui-message-stream/ui-message-chunks.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 7.0.82
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3e125ba: Allow manual tool approval statuses to include a reason and preserve it across
|
|
8
|
+
core, model, and UI approval requests. OPA `requires-approval` decisions now
|
|
9
|
+
surface their reason to human approvers. UI request chunks serialize the
|
|
10
|
+
optional `reason`, while UI messages retain it as `approval.requestReason`
|
|
11
|
+
separately from an approver's response `reason`.
|
|
12
|
+
- Updated dependencies [0e7994c]
|
|
13
|
+
- Updated dependencies [3e125ba]
|
|
14
|
+
- @ai-sdk/gateway@4.0.67
|
|
15
|
+
- @ai-sdk/provider-utils@5.0.32
|
|
16
|
+
|
|
17
|
+
## 7.0.81
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [81bebaf]
|
|
22
|
+
- @ai-sdk/gateway@4.0.66
|
|
23
|
+
|
|
24
|
+
## 7.0.80
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- 35841f5: feat: normalize mid-stream provider error events across supported providers into public StreamProviderError instances and preserve provider-owned type, code, status, retry, and raw payload metadata
|
|
29
|
+
- d2f3353: Split OpenAI and Azure OpenAI embedding requests by a conservative UTF-8 byte budget derived from their aggregate token limit, in addition to input count limits.
|
|
30
|
+
- eed7950: Expose structured output parsing diagnostics from `generateText` when generation stops because of the output token limit.
|
|
31
|
+
- Updated dependencies [80227cf]
|
|
32
|
+
- Updated dependencies [a9782e1]
|
|
33
|
+
- Updated dependencies [5533946]
|
|
34
|
+
- Updated dependencies [35841f5]
|
|
35
|
+
- Updated dependencies [d2f3353]
|
|
36
|
+
- @ai-sdk/gateway@4.0.65
|
|
37
|
+
- @ai-sdk/provider-utils@5.0.31
|
|
38
|
+
|
|
39
|
+
## 7.0.79
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- b251584: Preserve active text and reasoning parts when another merged UI message stream finishes a step, and align workflow stream normalization with the explicit part end chunks.
|
|
44
|
+
- 591d25b: feat: add batch completion webhooks. `experimental_startTextBatch` accepts a `webhookUrl`, and the gateway provider registers it through the batch `callbackUrl` contract and exports typed async-job metadata. Direct Anthropic and OpenAI batch providers return an unsupported warning when the option is provided.
|
|
45
|
+
- 9de0baf: Parse structured generateText output when providers omit finishReason but return text.
|
|
46
|
+
- Updated dependencies [591d25b]
|
|
47
|
+
- @ai-sdk/gateway@4.0.64
|
|
48
|
+
- @ai-sdk/provider@4.0.8
|
|
49
|
+
- @ai-sdk/provider-utils@5.0.30
|
|
50
|
+
|
|
3
51
|
## 7.0.78
|
|
4
52
|
|
|
5
53
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmbeddingModelV4, EmbeddingModelV3, EmbeddingModelV2, EmbeddingModelV4Embedding, EmbeddingModelV4Middleware, ImageModelV4, ImageModelV3, ImageModelV2, ImageModelV4ProviderMetadata, ImageModelV2ProviderMetadata, ImageModelV4Middleware, JSONValue as JSONValue$1, LanguageModelV4, LanguageModelV3, LanguageModelV2, SharedV4Warning, LanguageModelV4Source, LanguageModelV4Middleware, RerankingModelV4, RerankingModelV3, SharedV4ProviderMetadata, SharedV4ProviderReference, SpeechModelV4, SpeechModelV3, SpeechModelV2, TranscriptionModelV4, TranscriptionModelV3, TranscriptionModelV2, JSONObject, ImageModelV4Usage, LanguageModelV4CallOptions, LanguageModelV4Prompt, AISDKError, LanguageModelV4ToolCall, JSONSchema7, ProviderV4, ProviderV3, ProviderV2, Experimental_BatchLanguageModelV4, Experimental_BatchV4Error, Experimental_BatchV4Status, Experimental_BatchV4StartResult, SharedV4Headers, JSONParseError, TypeValidationError, Experimental_VideoModelV4, Experimental_VideoModelV3, Experimental_VideoModelV4FrameType, Experimental_VideoModelV4OperationWebhook, Experimental_VideoModelV4OperationStatusResult, EmbeddingModelV4CallOptions, Experimental_RealtimeFactoryV4, Experimental_RealtimeFactoryV4GetTokenOptions, Experimental_RealtimeFactoryV4GetTokenResult, Experimental_RealtimeModelV4, Experimental_RealtimeModelV4ClientEvent, Experimental_RealtimeModelV4ServerEvent, Experimental_RealtimeModelV4SessionConfig, 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
|
-
export { GatewayModelId, createGateway, gateway } from '@ai-sdk/gateway';
|
|
4
|
+
export { GatewayAsyncJobMetadata, GatewayModelId, GatewayProviderMetadata, createGateway, gateway } from '@ai-sdk/gateway';
|
|
5
5
|
import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
|
|
6
6
|
import { ModelMessage, AssistantModelMessage, ToolModelMessage, ProviderOptions, ToolSet, SystemModelMessage, UserModelMessage, DataContent, FlexibleSchema, InferSchema, Context, Arrayable, InferToolSetContext, InferToolInput, InferToolOutput, ReasoningPart, ReasoningFilePart, Experimental_SandboxSession, Tool, ToolCall, IdGenerator, ToolExecutionOptions, MaybePromiseLike, InferToolContext, Experimental_ToolCallerTool, HasRequiredKey, TextPart, FilePart, Resolvable, FetchFunction } from '@ai-sdk/provider-utils';
|
|
7
7
|
export { AssistantContent, AssistantModelMessage, DataContent, DownloadError, Experimental_SandboxProcess, Experimental_SandboxSession, Experimental_ToolCallerTool, FilePart, FlexibleSchema, IdGenerator, ImagePart, InferSchema, InferToolInput, InferToolOutput, ModelMessage, Schema, SystemModelMessage, TextPart, Tool, ToolApprovalRequest, ToolApprovalResponse, ToolCallPart, ToolContent, ToolExecuteFunction, ToolExecutionOptions, ToolModelMessage, ToolResultPart, ToolSet, UserContent, UserModelMessage, asSchema, createIdGenerator, dynamicTool, experimental_toolCaller, generateId, jsonSchema, parseJsonEventStream, tool, zodSchema } from '@ai-sdk/provider-utils';
|
|
@@ -1179,6 +1179,10 @@ type ToolApprovalRequestOutput<TOOLS extends ToolSet> = {
|
|
|
1179
1179
|
* Tool call that the approval request is for.
|
|
1180
1180
|
*/
|
|
1181
1181
|
toolCall: TypedToolCall<TOOLS>;
|
|
1182
|
+
/**
|
|
1183
|
+
* Reason why the tool call requires approval.
|
|
1184
|
+
*/
|
|
1185
|
+
reason?: string;
|
|
1182
1186
|
/**
|
|
1183
1187
|
* Flag indicating whether the tool was automatically approved or denied.
|
|
1184
1188
|
*
|
|
@@ -2032,6 +2036,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
|
|
|
2032
2036
|
approval: {
|
|
2033
2037
|
id: string;
|
|
2034
2038
|
approved?: never;
|
|
2039
|
+
requestReason?: string;
|
|
2035
2040
|
reason?: never;
|
|
2036
2041
|
isAutomatic?: boolean;
|
|
2037
2042
|
signature?: string;
|
|
@@ -2045,6 +2050,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
|
|
|
2045
2050
|
approval: {
|
|
2046
2051
|
id: string;
|
|
2047
2052
|
approved: boolean;
|
|
2053
|
+
requestReason?: string;
|
|
2048
2054
|
reason?: string;
|
|
2049
2055
|
isAutomatic?: boolean;
|
|
2050
2056
|
signature?: string;
|
|
@@ -2060,6 +2066,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
|
|
|
2060
2066
|
approval?: {
|
|
2061
2067
|
id: string;
|
|
2062
2068
|
approved: true;
|
|
2069
|
+
requestReason?: string;
|
|
2063
2070
|
reason?: string;
|
|
2064
2071
|
isAutomatic?: boolean;
|
|
2065
2072
|
signature?: string;
|
|
@@ -2075,6 +2082,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
|
|
|
2075
2082
|
approval?: {
|
|
2076
2083
|
id: string;
|
|
2077
2084
|
approved: true;
|
|
2085
|
+
requestReason?: string;
|
|
2078
2086
|
reason?: string;
|
|
2079
2087
|
isAutomatic?: boolean;
|
|
2080
2088
|
signature?: string;
|
|
@@ -2088,6 +2096,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
|
|
|
2088
2096
|
approval: {
|
|
2089
2097
|
id: string;
|
|
2090
2098
|
approved: false;
|
|
2099
|
+
requestReason?: string;
|
|
2091
2100
|
reason?: string;
|
|
2092
2101
|
isAutomatic?: boolean;
|
|
2093
2102
|
signature?: string;
|
|
@@ -2137,6 +2146,7 @@ type DynamicToolUIPart = {
|
|
|
2137
2146
|
approval: {
|
|
2138
2147
|
id: string;
|
|
2139
2148
|
approved?: never;
|
|
2149
|
+
requestReason?: string;
|
|
2140
2150
|
reason?: never;
|
|
2141
2151
|
isAutomatic?: boolean;
|
|
2142
2152
|
signature?: string;
|
|
@@ -2150,6 +2160,7 @@ type DynamicToolUIPart = {
|
|
|
2150
2160
|
approval: {
|
|
2151
2161
|
id: string;
|
|
2152
2162
|
approved: boolean;
|
|
2163
|
+
requestReason?: string;
|
|
2153
2164
|
reason?: string;
|
|
2154
2165
|
isAutomatic?: boolean;
|
|
2155
2166
|
signature?: string;
|
|
@@ -2165,6 +2176,7 @@ type DynamicToolUIPart = {
|
|
|
2165
2176
|
approval?: {
|
|
2166
2177
|
id: string;
|
|
2167
2178
|
approved: true;
|
|
2179
|
+
requestReason?: string;
|
|
2168
2180
|
reason?: string;
|
|
2169
2181
|
isAutomatic?: boolean;
|
|
2170
2182
|
signature?: string;
|
|
@@ -2179,6 +2191,7 @@ type DynamicToolUIPart = {
|
|
|
2179
2191
|
approval?: {
|
|
2180
2192
|
id: string;
|
|
2181
2193
|
approved: true;
|
|
2194
|
+
requestReason?: string;
|
|
2182
2195
|
reason?: string;
|
|
2183
2196
|
isAutomatic?: boolean;
|
|
2184
2197
|
signature?: string;
|
|
@@ -2192,6 +2205,7 @@ type DynamicToolUIPart = {
|
|
|
2192
2205
|
approval: {
|
|
2193
2206
|
id: string;
|
|
2194
2207
|
approved: false;
|
|
2208
|
+
requestReason?: string;
|
|
2195
2209
|
reason?: string;
|
|
2196
2210
|
isAutomatic?: boolean;
|
|
2197
2211
|
signature?: string;
|
|
@@ -2334,6 +2348,7 @@ type UIMessageChunk<METADATA = unknown, DATA_TYPES extends UIDataTypes = UIDataT
|
|
|
2334
2348
|
type: 'tool-approval-request';
|
|
2335
2349
|
approvalId: string;
|
|
2336
2350
|
toolCallId: string;
|
|
2351
|
+
reason?: string;
|
|
2337
2352
|
isAutomatic?: boolean;
|
|
2338
2353
|
signature?: string;
|
|
2339
2354
|
} | {
|
|
@@ -2956,6 +2971,8 @@ type TextStreamPart<TOOLS extends ToolSet> = TextStreamTextStartPart | TextStrea
|
|
|
2956
2971
|
* - 'user-approval': The tool requires user approval.
|
|
2957
2972
|
*
|
|
2958
2973
|
* In addition to the string statuses, you can also use object statuses with a reason property.
|
|
2974
|
+
* For approved and denied statuses, the reason is emitted on the approval response.
|
|
2975
|
+
* For user-approval statuses, the reason is emitted on the approval request so it can be shown to the approver.
|
|
2959
2976
|
*
|
|
2960
2977
|
* `undefined` is treated as the `not-applicable` status.
|
|
2961
2978
|
*/
|
|
@@ -2970,7 +2987,7 @@ type ToolApprovalStatus = undefined | 'not-applicable' | 'approved' | 'denied' |
|
|
|
2970
2987
|
reason?: string;
|
|
2971
2988
|
} | {
|
|
2972
2989
|
type: 'user-approval';
|
|
2973
|
-
reason?:
|
|
2990
|
+
reason?: string;
|
|
2974
2991
|
};
|
|
2975
2992
|
/**
|
|
2976
2993
|
* Function that is called to determine if the tool needs approval before it can be executed.
|
|
@@ -3025,6 +3042,8 @@ type GenericToolApprovalFunction<TOOLS extends ToolSet, TOOLS_CONTEXT extends In
|
|
|
3025
3042
|
* - 'user-approval': The tool requires user approval.
|
|
3026
3043
|
*
|
|
3027
3044
|
* In addition to the string statuses, you can also use object statuses with a reason property.
|
|
3045
|
+
* For approved and denied statuses, the reason is emitted on the approval response.
|
|
3046
|
+
* For user-approval statuses, the reason is emitted on the approval request so it can be shown to the approver.
|
|
3028
3047
|
*/
|
|
3029
3048
|
type ToolApprovalConfiguration<TOOLS extends ToolSet, RUNTIME_CONTEXT extends Context | unknown | never> = GenericToolApprovalFunction<TOOLS, InferToolSetContext<TOOLS>, RUNTIME_CONTEXT> | {
|
|
3030
3049
|
[key in keyof TOOLS]?: ToolApprovalStatus | SingleToolApprovalFunction<InferToolInput<TOOLS[key]>, InferToolContext<TOOLS[key]>, RUNTIME_CONTEXT>;
|
|
@@ -3037,9 +3056,9 @@ type Experimental_ToolCallers<TOOLS extends ToolSet> = {
|
|
|
3037
3056
|
[NAME in keyof TOOLS]?: ReadonlyArray<'AI_SDK_DIRECT_TOOL_CALL' | ToolCallerName<TOOLS>>;
|
|
3038
3057
|
};
|
|
3039
3058
|
|
|
3040
|
-
declare const symbol$
|
|
3059
|
+
declare const symbol$m: unique symbol;
|
|
3041
3060
|
declare class InvalidToolInputError extends AISDKError {
|
|
3042
|
-
private readonly [symbol$
|
|
3061
|
+
private readonly [symbol$m];
|
|
3043
3062
|
readonly toolName: string;
|
|
3044
3063
|
readonly toolInput: string;
|
|
3045
3064
|
constructor({ toolInput, toolName, cause, message, }: {
|
|
@@ -3051,9 +3070,9 @@ declare class InvalidToolInputError extends AISDKError {
|
|
|
3051
3070
|
static isInstance(error: unknown): error is InvalidToolInputError;
|
|
3052
3071
|
}
|
|
3053
3072
|
|
|
3054
|
-
declare const symbol$
|
|
3073
|
+
declare const symbol$l: unique symbol;
|
|
3055
3074
|
declare class NoSuchToolError extends AISDKError {
|
|
3056
|
-
private readonly [symbol$
|
|
3075
|
+
private readonly [symbol$l];
|
|
3057
3076
|
readonly toolName: string;
|
|
3058
3077
|
readonly availableTools: string[] | undefined;
|
|
3059
3078
|
constructor({ toolName, availableTools, message, }: {
|
|
@@ -4477,7 +4496,8 @@ interface GenerateTextResult<TOOLS extends ToolSet, RUNTIME_CONTEXT extends Cont
|
|
|
4477
4496
|
* The generated output according to the `output` specification.
|
|
4478
4497
|
*
|
|
4479
4498
|
* @throws {NoOutputGeneratedError} When no output is available, for example
|
|
4480
|
-
* when the final step
|
|
4499
|
+
* when the final step finishes with a `tool-calls` reason, or when it
|
|
4500
|
+
* contains no text and does not finish with a `stop` reason.
|
|
4481
4501
|
*/
|
|
4482
4502
|
readonly output: InferCompleteOutput<OUTPUT>;
|
|
4483
4503
|
}
|
|
@@ -6163,6 +6183,12 @@ type StartTextBatchOptions = {
|
|
|
6163
6183
|
model: BatchLanguageModel;
|
|
6164
6184
|
requests: ReadonlyArray<TextBatchRequest>;
|
|
6165
6185
|
providerOptions?: ProviderOptions;
|
|
6186
|
+
/**
|
|
6187
|
+
* URL that the provider should notify when the batch reaches a terminal
|
|
6188
|
+
* state. Providers that do not support completion webhooks return an
|
|
6189
|
+
* unsupported warning.
|
|
6190
|
+
*/
|
|
6191
|
+
webhookUrl?: string;
|
|
6166
6192
|
} & BatchRequestOptions;
|
|
6167
6193
|
/**
|
|
6168
6194
|
* The acknowledged text batch and warnings produced while starting it.
|
|
@@ -6215,7 +6241,7 @@ type TextBatchItemResult = (TextBatchGenerationResult & {
|
|
|
6215
6241
|
/**
|
|
6216
6242
|
* Starts a durable text-generation batch.
|
|
6217
6243
|
*/
|
|
6218
|
-
declare function startTextBatch({ model: modelArg, requests, providerOptions, abortSignal, headers, timeout, }: StartTextBatchOptions): Promise<StartTextBatchResult>;
|
|
6244
|
+
declare function startTextBatch({ model: modelArg, requests, providerOptions, webhookUrl, abortSignal, headers, timeout, }: StartTextBatchOptions): Promise<StartTextBatchResult>;
|
|
6219
6245
|
/**
|
|
6220
6246
|
* Retrieves the latest normalized status for a durable batch.
|
|
6221
6247
|
*/
|
|
@@ -6399,8 +6425,9 @@ interface EmbedManyResult {
|
|
|
6399
6425
|
* Embed several values using an embedding model. The type of the value is defined
|
|
6400
6426
|
* by the embedding model.
|
|
6401
6427
|
*
|
|
6402
|
-
* `embedMany` automatically splits large requests into smaller chunks
|
|
6403
|
-
* has a limit on
|
|
6428
|
+
* `embedMany` automatically splits large requests into smaller chunks when the
|
|
6429
|
+
* model has a limit on either the number of embeddings or the UTF-8 input bytes
|
|
6430
|
+
* that can be processed in a single call.
|
|
6404
6431
|
*
|
|
6405
6432
|
* @param model - The embedding model to use.
|
|
6406
6433
|
* @param values - The values that should be embedded.
|
|
@@ -6497,9 +6524,9 @@ declare function embedMany({ model: modelArg, values, maxParallelCalls, maxRetri
|
|
|
6497
6524
|
};
|
|
6498
6525
|
}): Promise<EmbedManyResult>;
|
|
6499
6526
|
|
|
6500
|
-
declare const symbol$
|
|
6527
|
+
declare const symbol$k: unique symbol;
|
|
6501
6528
|
declare class InvalidArgumentError extends AISDKError {
|
|
6502
|
-
private readonly [symbol$
|
|
6529
|
+
private readonly [symbol$k];
|
|
6503
6530
|
readonly parameter: string;
|
|
6504
6531
|
readonly value: unknown;
|
|
6505
6532
|
constructor({ parameter, value, message, }: {
|
|
@@ -6644,9 +6671,9 @@ declare function streamLanguageModelCall<TOOLS extends ToolSet, OUTPUT extends O
|
|
|
6644
6671
|
};
|
|
6645
6672
|
}>;
|
|
6646
6673
|
|
|
6647
|
-
declare const symbol$
|
|
6674
|
+
declare const symbol$j: unique symbol;
|
|
6648
6675
|
declare class InvalidStreamPartError extends AISDKError {
|
|
6649
|
-
private readonly [symbol$
|
|
6676
|
+
private readonly [symbol$j];
|
|
6650
6677
|
readonly chunk: LanguageModelStreamPart<any>;
|
|
6651
6678
|
constructor({ chunk, message, }: {
|
|
6652
6679
|
chunk: LanguageModelStreamPart<any>;
|
|
@@ -6655,9 +6682,9 @@ declare class InvalidStreamPartError extends AISDKError {
|
|
|
6655
6682
|
static isInstance(error: unknown): error is InvalidStreamPartError;
|
|
6656
6683
|
}
|
|
6657
6684
|
|
|
6658
|
-
declare const symbol$
|
|
6685
|
+
declare const symbol$i: unique symbol;
|
|
6659
6686
|
declare class InvalidToolApprovalError extends AISDKError {
|
|
6660
|
-
private readonly [symbol$
|
|
6687
|
+
private readonly [symbol$i];
|
|
6661
6688
|
readonly approvalId: string;
|
|
6662
6689
|
constructor({ approvalId }: {
|
|
6663
6690
|
approvalId: string;
|
|
@@ -6665,9 +6692,9 @@ declare class InvalidToolApprovalError extends AISDKError {
|
|
|
6665
6692
|
static isInstance(error: unknown): error is InvalidToolApprovalError;
|
|
6666
6693
|
}
|
|
6667
6694
|
|
|
6668
|
-
declare const symbol$
|
|
6695
|
+
declare const symbol$h: unique symbol;
|
|
6669
6696
|
declare class InvalidToolApprovalSignatureError extends AISDKError {
|
|
6670
|
-
private readonly [symbol$
|
|
6697
|
+
private readonly [symbol$h];
|
|
6671
6698
|
readonly approvalId: string;
|
|
6672
6699
|
readonly toolCallId: string;
|
|
6673
6700
|
constructor({ approvalId, toolCallId, reason, }: {
|
|
@@ -6678,9 +6705,9 @@ declare class InvalidToolApprovalSignatureError extends AISDKError {
|
|
|
6678
6705
|
static isInstance(error: unknown): error is InvalidToolApprovalSignatureError;
|
|
6679
6706
|
}
|
|
6680
6707
|
|
|
6681
|
-
declare const symbol$
|
|
6708
|
+
declare const symbol$g: unique symbol;
|
|
6682
6709
|
declare class ToolCallNotFoundForApprovalError extends AISDKError {
|
|
6683
|
-
private readonly [symbol$
|
|
6710
|
+
private readonly [symbol$g];
|
|
6684
6711
|
readonly toolCallId: string;
|
|
6685
6712
|
readonly approvalId: string;
|
|
6686
6713
|
constructor({ toolCallId, approvalId, }: {
|
|
@@ -6690,9 +6717,9 @@ declare class ToolCallNotFoundForApprovalError extends AISDKError {
|
|
|
6690
6717
|
static isInstance(error: unknown): error is ToolCallNotFoundForApprovalError;
|
|
6691
6718
|
}
|
|
6692
6719
|
|
|
6693
|
-
declare const symbol$
|
|
6720
|
+
declare const symbol$f: unique symbol;
|
|
6694
6721
|
declare class MissingToolResultsError extends AISDKError {
|
|
6695
|
-
private readonly [symbol$
|
|
6722
|
+
private readonly [symbol$f];
|
|
6696
6723
|
readonly toolCallIds: string[];
|
|
6697
6724
|
constructor({ toolCallIds }: {
|
|
6698
6725
|
toolCallIds: string[];
|
|
@@ -6700,7 +6727,7 @@ declare class MissingToolResultsError extends AISDKError {
|
|
|
6700
6727
|
static isInstance(error: unknown): error is MissingToolResultsError;
|
|
6701
6728
|
}
|
|
6702
6729
|
|
|
6703
|
-
declare const symbol$
|
|
6730
|
+
declare const symbol$e: unique symbol;
|
|
6704
6731
|
/**
|
|
6705
6732
|
* Thrown when no image could be generated. This can have multiple causes:
|
|
6706
6733
|
*
|
|
@@ -6708,7 +6735,7 @@ declare const symbol$d: unique symbol;
|
|
|
6708
6735
|
* - The model generated a response that could not be parsed.
|
|
6709
6736
|
*/
|
|
6710
6737
|
declare class NoImageGeneratedError extends AISDKError {
|
|
6711
|
-
private readonly [symbol$
|
|
6738
|
+
private readonly [symbol$e];
|
|
6712
6739
|
/**
|
|
6713
6740
|
* The response metadata for each call.
|
|
6714
6741
|
*/
|
|
@@ -6721,7 +6748,7 @@ declare class NoImageGeneratedError extends AISDKError {
|
|
|
6721
6748
|
static isInstance(error: unknown): error is NoImageGeneratedError;
|
|
6722
6749
|
}
|
|
6723
6750
|
|
|
6724
|
-
declare const symbol$
|
|
6751
|
+
declare const symbol$d: unique symbol;
|
|
6725
6752
|
/**
|
|
6726
6753
|
* Thrown when no object could be generated. This can have several causes:
|
|
6727
6754
|
*
|
|
@@ -6734,7 +6761,7 @@ declare const symbol$c: unique symbol;
|
|
|
6734
6761
|
* - `text`: The text that was generated by the model. This can be the raw text or the tool call text, depending on the model.
|
|
6735
6762
|
*/
|
|
6736
6763
|
declare class NoObjectGeneratedError extends AISDKError {
|
|
6737
|
-
private readonly [symbol$
|
|
6764
|
+
private readonly [symbol$d];
|
|
6738
6765
|
/**
|
|
6739
6766
|
* The text that was generated by the model. This can be the raw text or the tool call text, depending on the model.
|
|
6740
6767
|
*/
|
|
@@ -6762,12 +6789,12 @@ declare class NoObjectGeneratedError extends AISDKError {
|
|
|
6762
6789
|
static isInstance(error: unknown): error is NoObjectGeneratedError;
|
|
6763
6790
|
}
|
|
6764
6791
|
|
|
6765
|
-
declare const symbol$
|
|
6792
|
+
declare const symbol$c: unique symbol;
|
|
6766
6793
|
/**
|
|
6767
6794
|
* Thrown when no LLM output was generated, e.g. because of errors.
|
|
6768
6795
|
*/
|
|
6769
6796
|
declare class NoOutputGeneratedError extends AISDKError {
|
|
6770
|
-
private readonly [symbol$
|
|
6797
|
+
private readonly [symbol$c];
|
|
6771
6798
|
constructor({ message, cause, }?: {
|
|
6772
6799
|
message?: string;
|
|
6773
6800
|
cause?: Error;
|
|
@@ -6775,12 +6802,12 @@ declare class NoOutputGeneratedError extends AISDKError {
|
|
|
6775
6802
|
static isInstance(error: unknown): error is NoOutputGeneratedError;
|
|
6776
6803
|
}
|
|
6777
6804
|
|
|
6778
|
-
declare const symbol$
|
|
6805
|
+
declare const symbol$b: unique symbol;
|
|
6779
6806
|
/**
|
|
6780
6807
|
* Error that is thrown when no speech audio was generated.
|
|
6781
6808
|
*/
|
|
6782
6809
|
declare class NoSpeechGeneratedError extends AISDKError {
|
|
6783
|
-
private readonly [symbol$
|
|
6810
|
+
private readonly [symbol$b];
|
|
6784
6811
|
readonly responses: Array<SpeechModelResponseMetadata>;
|
|
6785
6812
|
constructor(options: {
|
|
6786
6813
|
responses: Array<SpeechModelResponseMetadata>;
|
|
@@ -6788,12 +6815,12 @@ declare class NoSpeechGeneratedError extends AISDKError {
|
|
|
6788
6815
|
static isInstance(error: unknown): error is NoSpeechGeneratedError;
|
|
6789
6816
|
}
|
|
6790
6817
|
|
|
6791
|
-
declare const symbol$
|
|
6818
|
+
declare const symbol$a: unique symbol;
|
|
6792
6819
|
/**
|
|
6793
6820
|
* Error that is thrown when no transcript was generated.
|
|
6794
6821
|
*/
|
|
6795
6822
|
declare class NoTranscriptGeneratedError extends AISDKError {
|
|
6796
|
-
private readonly [symbol$
|
|
6823
|
+
private readonly [symbol$a];
|
|
6797
6824
|
readonly responses: Array<TranscriptionModelResponseMetadata>;
|
|
6798
6825
|
constructor(options: {
|
|
6799
6826
|
responses: Array<TranscriptionModelResponseMetadata>;
|
|
@@ -6822,12 +6849,12 @@ type SpeechTranslationModelResponseMetadata = {
|
|
|
6822
6849
|
headers?: Record<string, string>;
|
|
6823
6850
|
};
|
|
6824
6851
|
|
|
6825
|
-
declare const symbol$
|
|
6852
|
+
declare const symbol$9: unique symbol;
|
|
6826
6853
|
/**
|
|
6827
6854
|
* Error that is thrown when no translation was generated.
|
|
6828
6855
|
*/
|
|
6829
6856
|
declare class NoTranslationGeneratedError extends AISDKError {
|
|
6830
|
-
private readonly [symbol$
|
|
6857
|
+
private readonly [symbol$9];
|
|
6831
6858
|
readonly response: SpeechTranslationModelResponseMetadata;
|
|
6832
6859
|
constructor(options: {
|
|
6833
6860
|
response: SpeechTranslationModelResponseMetadata;
|
|
@@ -6859,9 +6886,9 @@ type VideoModelResponseMetadata = {
|
|
|
6859
6886
|
providerMetadata?: SharedV4ProviderMetadata;
|
|
6860
6887
|
};
|
|
6861
6888
|
|
|
6862
|
-
declare const symbol$
|
|
6889
|
+
declare const symbol$8: unique symbol;
|
|
6863
6890
|
declare class NoVideoGeneratedError extends AISDKError {
|
|
6864
|
-
private readonly [symbol$
|
|
6891
|
+
private readonly [symbol$8];
|
|
6865
6892
|
readonly responses: Array<VideoModelResponseMetadata>;
|
|
6866
6893
|
constructor({ message, cause, responses, }: {
|
|
6867
6894
|
message?: string;
|
|
@@ -6885,6 +6912,45 @@ declare class NoVideoGeneratedError extends AISDKError {
|
|
|
6885
6912
|
};
|
|
6886
6913
|
}
|
|
6887
6914
|
|
|
6915
|
+
declare const symbol$7: unique symbol;
|
|
6916
|
+
/**
|
|
6917
|
+
* Error reported by a provider after a model response stream has started.
|
|
6918
|
+
*/
|
|
6919
|
+
declare class StreamProviderError extends AISDKError {
|
|
6920
|
+
private readonly [symbol$7];
|
|
6921
|
+
/**
|
|
6922
|
+
* Provider-defined error type, when supplied by the provider.
|
|
6923
|
+
*/
|
|
6924
|
+
readonly type?: string;
|
|
6925
|
+
/**
|
|
6926
|
+
* Provider-defined error code, when supplied by the provider.
|
|
6927
|
+
*/
|
|
6928
|
+
readonly code?: string | number;
|
|
6929
|
+
/**
|
|
6930
|
+
* HTTP-equivalent status code, when supplied by or inferable from the
|
|
6931
|
+
* provider error metadata.
|
|
6932
|
+
*/
|
|
6933
|
+
readonly statusCode?: number;
|
|
6934
|
+
/**
|
|
6935
|
+
* Whether retrying the model call may succeed.
|
|
6936
|
+
*/
|
|
6937
|
+
readonly isRetryable: boolean;
|
|
6938
|
+
/**
|
|
6939
|
+
* Original provider error payload.
|
|
6940
|
+
*/
|
|
6941
|
+
readonly data?: unknown;
|
|
6942
|
+
constructor({ message, type, code, statusCode, isRetryable, data, cause, }: {
|
|
6943
|
+
message: string;
|
|
6944
|
+
type?: string;
|
|
6945
|
+
code?: string | number;
|
|
6946
|
+
statusCode?: number;
|
|
6947
|
+
isRetryable?: boolean;
|
|
6948
|
+
data?: unknown;
|
|
6949
|
+
cause?: unknown;
|
|
6950
|
+
});
|
|
6951
|
+
static isInstance(error: unknown): error is StreamProviderError;
|
|
6952
|
+
}
|
|
6953
|
+
|
|
6888
6954
|
declare const symbol$6: unique symbol;
|
|
6889
6955
|
declare class ToolCallRepairError extends AISDKError {
|
|
6890
6956
|
private readonly [symbol$6];
|
|
@@ -9439,4 +9505,4 @@ declare function uploadSkill({ api, files, displayTitle, providerOptions, }: {
|
|
|
9439
9505
|
files: UploadSkillFile[];
|
|
9440
9506
|
}): Promise<UploadSkillResult>;
|
|
9441
9507
|
|
|
9442
|
-
export { AI_SDK_TELEMETRY_TRACING_CHANNEL, AbstractChat, ActiveTools, Agent, AgentCallParameters, AgentStreamParameters, AsyncIterableStream, CallSettings, CallWarning, ChatAddToolApproveResponseFunction, ChatAddToolOutputFunction, ChatInit, ChatOnDataCallback, ChatOnErrorCallback, ChatOnFinishCallback, ChatOnToolCallCallback, ChatRequestOptions, ChatState, ChatStatus, ChatTransport, ChunkDetector, CompletionRequestOptions, ContentPart, CreateUIMessage, CustomContentUIPart, DataUIPart, DeepPartial, DefaultChatTransport, DefaultGeneratedFile, DirectChatTransport, DirectChatTransportOptions, DynamicToolCall, DynamicToolError, DynamicToolResult, DynamicToolUIPart, EmbedEndEvent, EmbedManyResult, EmbedResult, EmbedStartEvent, Embedding, EmbeddingModel, EmbeddingModelCallEndEvent, EmbeddingModelCallStartEvent, EmbeddingModelMiddleware, EmbeddingModelUsage, ErrorHandler, AbstractRealtimeSession as Experimental_AbstractRealtimeSession, ToolLoopAgent as Experimental_Agent, ToolLoopAgentSettings as Experimental_AgentSettings, BatchError as Experimental_BatchError, BatchLanguageModel as Experimental_BatchLanguageModel, BatchOperationOptions as Experimental_BatchOperationOptions, BatchReference as Experimental_BatchReference, BatchStatus as Experimental_BatchStatus, DownloadFunction as Experimental_DownloadFunction, Experimental_GeneratedImage, InferAgentUIMessage as Experimental_InferAgentUIMessage, LanguageModelStreamPart as Experimental_LanguageModelStreamPart, LogWarningsFunction as Experimental_LogWarningsFunction, RealtimeClientEvent as Experimental_RealtimeClientEvent, RealtimeFactory as Experimental_RealtimeFactory, RealtimeFactoryGetTokenOptions as Experimental_RealtimeFactoryGetTokenOptions, RealtimeFactoryGetTokenResult as Experimental_RealtimeFactoryGetTokenResult, RealtimeModel as Experimental_RealtimeModel, RealtimeServerEvent as Experimental_RealtimeServerEvent, RealtimeSessionConfig as Experimental_RealtimeSessionConfig, RealtimeSessionOptions as Experimental_RealtimeSessionOptions, RealtimeSetupResponse as Experimental_RealtimeSetupResponse, RealtimeState as Experimental_RealtimeState, RealtimeStatus as Experimental_RealtimeStatus, RealtimeToolDefinition as Experimental_RealtimeToolDefinition, Experimental_SpeechResult, StartTextBatchOptions as Experimental_StartTextBatchOptions, StartTextBatchResult as Experimental_StartTextBatchResult, StreamTranslationResult as Experimental_StreamTranslationResult, TextBatch as Experimental_TextBatch, TextBatchGenerationResult as Experimental_TextBatchGenerationResult, TextBatchItemResult as Experimental_TextBatchItemResult, TextBatchReference as Experimental_TextBatchReference, TextBatchRequest as Experimental_TextBatchRequest, Experimental_ToolCallers, Experimental_TranscriptionResult, TranslationStreamPart as Experimental_TranslationStreamPart, FileUIPart, FinishReason, GenerateImageResult, GenerateObjectEndEvent, GenerateObjectResult, GenerateObjectStartEvent, GenerateObjectStepEndEvent, GenerateObjectStepStartEvent, GenerateTextAbortEvent, GenerateTextEndEvent, GenerateTextInclude, GenerateTextOnAbortCallback, GenerateTextOnEndCallback, GenerateTextOnFinishCallback, GenerateTextOnStartCallback, GenerateTextOnStepEndCallback, GenerateTextOnStepFinishCallback, GenerateTextOnStepStartCallback, GenerateTextResult, GenerateTextStartEvent, GenerateTextStepEndEvent, GenerateTextStepStartEvent, GenerateVideoPrompt, GenerateVideoResult, GeneratedAudioFile, GeneratedFile, GenericToolApprovalFunction, GetVideoStatusResult, HttpChatTransport, HttpChatTransportInitOptions, ImageModel, ImageModelMiddleware, ImageModelProviderMetadata, ImageModelResponseMetadata, ImageModelUsage, InferAgentUIMessage, InferCompleteOutput as InferGenerateOutput, InferPartialOutput as InferStreamOutput, InferTelemetryEvent, InferUIDataParts, InferUIMessageChunk, InferUITool, InferUITools, Instructions, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidStreamPartError, InvalidToolApprovalError, InvalidToolApprovalSignatureError, InvalidToolInputError, JSONValue, JsonToSseTransformStream, LanguageModel, LanguageModelCallEndEvent, LanguageModelCallOptions, LanguageModelCallStartEvent, LanguageModelMiddleware, LanguageModelRequestMetadata, LanguageModelResponseMetadata, LanguageModelUsage, LogWarningsFunction, MessageConversionError, MissingToolResultsError, ModelInfo, NoImageGeneratedError, NoObjectGeneratedError, NoOutputGeneratedError, NoSpeechGeneratedError, NoSuchProviderError, NoSuchToolError, NoTranscriptGeneratedError, NoTranslationGeneratedError, NoVideoGeneratedError, ObjectStreamPart, OnFinishEvent, OnLanguageModelCallEndCallback, OnLanguageModelCallStartCallback, OnStartEvent, OnStepFinishEvent, OnStepStartEvent, OnToolCallFinishEvent, OnToolCallStartEvent, OnToolExecutionEndCallback, OnToolExecutionStartCallback, output as Output, OutputChunkTimingStats, Output as OutputInterface, PrepareReconnectToStreamRequest, PrepareSendMessagesRequest, PrepareStepFunction, PrepareStepResult, Prompt, Provider, ProviderMetadata, ProviderReference, ProviderRegistryProvider, ReasoningFileOutput, ReasoningFileUIPart, ReasoningOutput, ReasoningUIPart, RepairTextFunction, RequestOptions, RerankEndEvent, RerankResult, RerankStartEvent, RerankingModel, RerankingModelCallEndEvent, RerankingModelCallStartEvent, RetryError, SafeValidateUIMessagesResult, SerialJobExecutor, SingleToolApprovalFunction, SourceDocumentUIPart, SourceUrlUIPart, SpeechModel, SpeechModelResponseMetadata, SpeechResult, StartVideoResult, StaticToolCall, StaticToolError, StaticToolOutputDenied, StaticToolResult, StepResult, StepResultPerformance, StepStartUIPart, StopCondition, StreamObjectOnFinishCallback, StreamObjectResult, StreamTextInclude, StreamTextOnChunkCallback, StreamTextOnErrorCallback, StreamTextResult, StreamTextTransform, StreamTranscriptionResult, Telemetry, TelemetryOptions, TelemetryTracingChannelMessage, TelemetryTracingEventType, TextStreamChatTransport, TextStreamPart, TextUIPart, TimeoutConfiguration, ToUIMessageChunkOptions, ToolApprovalConfiguration, ToolApprovalRequestOutput, ToolApprovalResponseOutput, ToolApprovalStatus, ToolCallNotFoundForApprovalError, ToolCallRepairError, ToolCallRepairFunction, ToolChoice, ToolExecutionEndEvent, ToolExecutionStartEvent, ToolInputRefinement, ToolLoopAgent, ToolLoopAgentSettings, ToolOrder, ToolUIPart, TranscriptionModel, TranscriptionModelResponseMetadata, TranscriptionResult, TranscriptionStreamPart, TypedToolCall, TypedToolError, TypedToolOutputDenied, TypedToolResult, UIDataPartSchemas, UIDataTypes, UIMessage, UIMessageChunk, UIMessagePart, UIMessageStreamError, UIMessageStreamOnEndCallback, UIMessageStreamOnFinishCallback, UIMessageStreamOnStepEndCallback, UIMessageStreamOnStepFinishCallback, UIMessageStreamOptions, UIMessageStreamWriter, UITool, UIToolInvocation, UITools, UI_MESSAGE_STREAM_HEADERS, UnsupportedModelVersionError, UploadFileResult, UploadSkillResult, UseCompletionOptions, 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 };
|
|
9508
|
+
export { AI_SDK_TELEMETRY_TRACING_CHANNEL, AbstractChat, ActiveTools, Agent, AgentCallParameters, AgentStreamParameters, AsyncIterableStream, CallSettings, CallWarning, ChatAddToolApproveResponseFunction, ChatAddToolOutputFunction, ChatInit, ChatOnDataCallback, ChatOnErrorCallback, ChatOnFinishCallback, ChatOnToolCallCallback, ChatRequestOptions, ChatState, ChatStatus, ChatTransport, ChunkDetector, CompletionRequestOptions, ContentPart, CreateUIMessage, CustomContentUIPart, DataUIPart, DeepPartial, DefaultChatTransport, DefaultGeneratedFile, DirectChatTransport, DirectChatTransportOptions, DynamicToolCall, DynamicToolError, DynamicToolResult, DynamicToolUIPart, EmbedEndEvent, EmbedManyResult, EmbedResult, EmbedStartEvent, Embedding, EmbeddingModel, EmbeddingModelCallEndEvent, EmbeddingModelCallStartEvent, EmbeddingModelMiddleware, EmbeddingModelUsage, ErrorHandler, AbstractRealtimeSession as Experimental_AbstractRealtimeSession, ToolLoopAgent as Experimental_Agent, ToolLoopAgentSettings as Experimental_AgentSettings, BatchError as Experimental_BatchError, BatchLanguageModel as Experimental_BatchLanguageModel, BatchOperationOptions as Experimental_BatchOperationOptions, BatchReference as Experimental_BatchReference, BatchStatus as Experimental_BatchStatus, DownloadFunction as Experimental_DownloadFunction, Experimental_GeneratedImage, InferAgentUIMessage as Experimental_InferAgentUIMessage, LanguageModelStreamPart as Experimental_LanguageModelStreamPart, LogWarningsFunction as Experimental_LogWarningsFunction, RealtimeClientEvent as Experimental_RealtimeClientEvent, RealtimeFactory as Experimental_RealtimeFactory, RealtimeFactoryGetTokenOptions as Experimental_RealtimeFactoryGetTokenOptions, RealtimeFactoryGetTokenResult as Experimental_RealtimeFactoryGetTokenResult, RealtimeModel as Experimental_RealtimeModel, RealtimeServerEvent as Experimental_RealtimeServerEvent, RealtimeSessionConfig as Experimental_RealtimeSessionConfig, RealtimeSessionOptions as Experimental_RealtimeSessionOptions, RealtimeSetupResponse as Experimental_RealtimeSetupResponse, RealtimeState as Experimental_RealtimeState, RealtimeStatus as Experimental_RealtimeStatus, RealtimeToolDefinition as Experimental_RealtimeToolDefinition, Experimental_SpeechResult, StartTextBatchOptions as Experimental_StartTextBatchOptions, StartTextBatchResult as Experimental_StartTextBatchResult, StreamTranslationResult as Experimental_StreamTranslationResult, TextBatch as Experimental_TextBatch, TextBatchGenerationResult as Experimental_TextBatchGenerationResult, TextBatchItemResult as Experimental_TextBatchItemResult, TextBatchReference as Experimental_TextBatchReference, TextBatchRequest as Experimental_TextBatchRequest, Experimental_ToolCallers, Experimental_TranscriptionResult, TranslationStreamPart as Experimental_TranslationStreamPart, FileUIPart, FinishReason, GenerateImageResult, GenerateObjectEndEvent, GenerateObjectResult, GenerateObjectStartEvent, GenerateObjectStepEndEvent, GenerateObjectStepStartEvent, GenerateTextAbortEvent, GenerateTextEndEvent, GenerateTextInclude, GenerateTextOnAbortCallback, GenerateTextOnEndCallback, GenerateTextOnFinishCallback, GenerateTextOnStartCallback, GenerateTextOnStepEndCallback, GenerateTextOnStepFinishCallback, GenerateTextOnStepStartCallback, GenerateTextResult, GenerateTextStartEvent, GenerateTextStepEndEvent, GenerateTextStepStartEvent, GenerateVideoPrompt, GenerateVideoResult, GeneratedAudioFile, GeneratedFile, GenericToolApprovalFunction, GetVideoStatusResult, HttpChatTransport, HttpChatTransportInitOptions, ImageModel, ImageModelMiddleware, ImageModelProviderMetadata, ImageModelResponseMetadata, ImageModelUsage, InferAgentUIMessage, InferCompleteOutput as InferGenerateOutput, InferPartialOutput as InferStreamOutput, InferTelemetryEvent, InferUIDataParts, InferUIMessageChunk, InferUITool, InferUITools, Instructions, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidStreamPartError, InvalidToolApprovalError, InvalidToolApprovalSignatureError, InvalidToolInputError, JSONValue, JsonToSseTransformStream, LanguageModel, LanguageModelCallEndEvent, LanguageModelCallOptions, LanguageModelCallStartEvent, LanguageModelMiddleware, LanguageModelRequestMetadata, LanguageModelResponseMetadata, LanguageModelUsage, LogWarningsFunction, MessageConversionError, MissingToolResultsError, ModelInfo, NoImageGeneratedError, NoObjectGeneratedError, NoOutputGeneratedError, NoSpeechGeneratedError, NoSuchProviderError, NoSuchToolError, NoTranscriptGeneratedError, NoTranslationGeneratedError, NoVideoGeneratedError, ObjectStreamPart, OnFinishEvent, OnLanguageModelCallEndCallback, OnLanguageModelCallStartCallback, OnStartEvent, OnStepFinishEvent, OnStepStartEvent, OnToolCallFinishEvent, OnToolCallStartEvent, OnToolExecutionEndCallback, OnToolExecutionStartCallback, output as Output, OutputChunkTimingStats, Output as OutputInterface, PrepareReconnectToStreamRequest, PrepareSendMessagesRequest, PrepareStepFunction, PrepareStepResult, Prompt, Provider, ProviderMetadata, ProviderReference, ProviderRegistryProvider, ReasoningFileOutput, ReasoningFileUIPart, ReasoningOutput, ReasoningUIPart, RepairTextFunction, RequestOptions, RerankEndEvent, RerankResult, RerankStartEvent, RerankingModel, RerankingModelCallEndEvent, RerankingModelCallStartEvent, RetryError, SafeValidateUIMessagesResult, SerialJobExecutor, SingleToolApprovalFunction, SourceDocumentUIPart, SourceUrlUIPart, SpeechModel, SpeechModelResponseMetadata, SpeechResult, StartVideoResult, StaticToolCall, StaticToolError, StaticToolOutputDenied, StaticToolResult, StepResult, StepResultPerformance, StepStartUIPart, StopCondition, StreamObjectOnFinishCallback, StreamObjectResult, StreamProviderError, StreamTextInclude, StreamTextOnChunkCallback, StreamTextOnErrorCallback, StreamTextResult, StreamTextTransform, StreamTranscriptionResult, Telemetry, TelemetryOptions, TelemetryTracingChannelMessage, TelemetryTracingEventType, TextStreamChatTransport, TextStreamPart, TextUIPart, TimeoutConfiguration, ToUIMessageChunkOptions, ToolApprovalConfiguration, ToolApprovalRequestOutput, ToolApprovalResponseOutput, ToolApprovalStatus, ToolCallNotFoundForApprovalError, ToolCallRepairError, ToolCallRepairFunction, ToolChoice, ToolExecutionEndEvent, ToolExecutionStartEvent, ToolInputRefinement, ToolLoopAgent, ToolLoopAgentSettings, ToolOrder, ToolUIPart, TranscriptionModel, TranscriptionModelResponseMetadata, TranscriptionResult, TranscriptionStreamPart, TypedToolCall, TypedToolError, TypedToolOutputDenied, TypedToolResult, UIDataPartSchemas, UIDataTypes, UIMessage, UIMessageChunk, UIMessagePart, UIMessageStreamError, UIMessageStreamOnEndCallback, UIMessageStreamOnFinishCallback, UIMessageStreamOnStepEndCallback, UIMessageStreamOnStepFinishCallback, UIMessageStreamOptions, UIMessageStreamWriter, UITool, UIToolInvocation, UITools, UI_MESSAGE_STREAM_HEADERS, UnsupportedModelVersionError, UploadFileResult, UploadSkillResult, UseCompletionOptions, 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 };
|