@mastra/ai-sdk 1.11.3 → 1.12.0-alpha.0
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/dist/_types/{@internal_ai-sdk-v5 → @internal_ai-sdk-v5@0.0.95}/dist/index.d.ts +2 -2
- package/dist/_types/{@internal_ai-v6 → @internal_ai-v6@0.0.95}/dist/index.d.ts +99 -18
- package/dist/_types/{@internal_ai-v7 → @internal_ai-v7@0.0.95}/dist/index.d.ts +297 -94
- package/dist/chat-route.d.ts +21 -5
- package/dist/chat-route.d.ts.map +1 -1
- package/dist/convert-streams.d.ts +3 -3
- package/dist/docs/SKILL.md +49 -0
- package/dist/docs/assets/SOURCE_MAP.json +77 -0
- package/dist/docs/references/docs-guides-streaming.md +341 -0
- package/dist/docs/references/docs-memory-message-history.md +424 -0
- package/dist/docs/references/docs-server-custom-api-routes.md +379 -0
- package/dist/docs/references/integrations-agentic-ui-ai-sdk-ui.md +1700 -0
- package/dist/docs/references/reference-ai-sdk-chat-route.md +139 -0
- package/dist/docs/references/reference-ai-sdk-handle-chat-stream.md +101 -0
- package/dist/docs/references/reference-ai-sdk-handle-network-stream.md +49 -0
- package/dist/docs/references/reference-ai-sdk-handle-workflow-stream.md +63 -0
- package/dist/docs/references/reference-ai-sdk-network-route.md +86 -0
- package/dist/docs/references/reference-ai-sdk-overview.md +144 -0
- package/dist/docs/references/reference-ai-sdk-to-ai-sdk-messages.md +115 -0
- package/dist/docs/references/reference-ai-sdk-to-ai-sdk-stream.md +286 -0
- package/dist/docs/references/reference-ai-sdk-to-ai-sdk-v4-messages.md +83 -0
- package/dist/docs/references/reference-ai-sdk-to-ai-sdk-v5-messages.md +80 -0
- package/dist/docs/references/reference-ai-sdk-with-mastra.md +67 -0
- package/dist/docs/references/reference-ai-sdk-with-sse-heartbeat.md +49 -0
- package/dist/docs/references/reference-ai-sdk-workflow-route.md +87 -0
- package/dist/docs/references/reference-ai-sdk-workflow-snapshot-to-stream.md +55 -0
- package/dist/docs/references/reference-client-js-agents.md +1112 -0
- package/dist/docs/references/reference-memory-recall.md +169 -0
- package/dist/docs/references/reference-streaming-agents-stream.md +496 -0
- package/dist/docs/references/reference-streaming-smoothStream.md +137 -0
- package/dist/helpers.d.ts +2 -2
- package/dist/index.cjs +297 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +299 -130
- package/dist/index.js.map +1 -1
- package/dist/middleware.d.ts +2 -2
- package/dist/public-types.d.ts +3 -3
- package/dist/transformers.d.ts +28 -23
- package/dist/transformers.d.ts.map +1 -1
- package/package.json +19 -18
- /package/dist/_types/{@ai-sdk_provider → @ai-sdk_provider@2.0.5}/dist/index.d.ts +0 -0
- /package/dist/_types/{@ai-sdk_provider → @ai-sdk_provider@2.0.5}/package.json +0 -0
- /package/dist/_types/{@internal_ai-sdk-v5 → @internal_ai-sdk-v5@0.0.95}/package.json +0 -0
- /package/dist/_types/{@internal_ai-v6 → @internal_ai-v6@0.0.95}/package.json +0 -0
- /package/dist/_types/{@internal_ai-v7 → @internal_ai-v7@0.0.95}/package.json +0 -0
- /package/dist/_types/{@types_json-schema → @types_json-schema@7.0.15}/index.d.ts +0 -0
- /package/dist/_types/{@types_json-schema → @types_json-schema@7.0.15}/package.json +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ZodType } from 'zod/v4/core';
|
|
2
|
-
import { JSONSchema7 } from '../../@types_json-schema/index.js';
|
|
2
|
+
import { JSONSchema7 } from '../../@types_json-schema@7.0.15/index.js';
|
|
3
3
|
import { ServerResponse } from 'node:http';
|
|
4
4
|
import { ServerResponse as ServerResponse_2 } from 'http';
|
|
5
5
|
import * as z3 from 'zod/v3';
|
|
@@ -1732,6 +1732,66 @@ export declare type DeepPartial<T> = T extends FlexibleSchema ? DeepPartialInter
|
|
|
1732
1732
|
|
|
1733
1733
|
declare type DeepPartialInternal<T> = T extends null | undefined | string | number | boolean | symbol | bigint | void | Date | RegExp | ((...arguments_: any[]) => unknown) | (new (...arguments_: any[]) => unknown) ? T : T extends Map<infer KeyType, infer ValueType> ? PartialMap<KeyType, ValueType> : T extends Set<infer ItemType> ? PartialSet<ItemType> : T extends ReadonlyMap<infer KeyType, infer ValueType> ? PartialReadonlyMap<KeyType, ValueType> : T extends ReadonlySet<infer ItemType> ? PartialReadonlySet<ItemType> : T extends object ? T extends ReadonlyArray<infer ItemType> ? ItemType[] extends T ? readonly ItemType[] extends T ? ReadonlyArray<DeepPartialInternal<ItemType | undefined>> : Array<DeepPartialInternal<ItemType | undefined>> : PartialObject<T> : PartialObject<T> : unknown;
|
|
1734
1734
|
|
|
1735
|
+
declare interface DeepSeekFetchConfig {
|
|
1736
|
+
/** Pin the target URL instead of allowing the model to choose it. */
|
|
1737
|
+
url?: string;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
declare interface DeepSeekFetchInput {
|
|
1741
|
+
url: string;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
declare type DeepSeekFetchOutput = DeepSeekFetchResponse | GatewayToolError;
|
|
1745
|
+
|
|
1746
|
+
declare interface DeepSeekFetchResponse {
|
|
1747
|
+
title?: string | null;
|
|
1748
|
+
/** Page content as Markdown. */
|
|
1749
|
+
content: string;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
declare const deepseekFetchToolFactory: ProviderExecutedToolFactory<DeepSeekFetchInput, DeepSeekFetchOutput, DeepSeekFetchConfig, {}>;
|
|
1753
|
+
|
|
1754
|
+
declare interface DeepSeekSearchConfig {
|
|
1755
|
+
/** Pin the query instead of allowing the model to choose it. */
|
|
1756
|
+
query?: string;
|
|
1757
|
+
/** Maximum number of results, 1–50 (default: 10). */
|
|
1758
|
+
count?: number;
|
|
1759
|
+
/** Include available page content (default: false). */
|
|
1760
|
+
needContent?: boolean;
|
|
1761
|
+
/** Original question, 1–128 Unicode characters; null means absent. */
|
|
1762
|
+
oriQuestion?: string | null;
|
|
1763
|
+
/** Developer-configured IP address for result localization. */
|
|
1764
|
+
localization?: string;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
declare interface DeepSeekSearchInput {
|
|
1768
|
+
query: string;
|
|
1769
|
+
count?: number;
|
|
1770
|
+
need_content?: boolean;
|
|
1771
|
+
ori_question?: string | null;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
declare type DeepSeekSearchOutput = DeepSeekSearchResponse | GatewayToolError;
|
|
1775
|
+
|
|
1776
|
+
declare interface DeepSeekSearchResponse {
|
|
1777
|
+
results: DeepSeekSearchResult[];
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
declare interface DeepSeekSearchResult {
|
|
1781
|
+
authority?: number | null;
|
|
1782
|
+
content?: string | null;
|
|
1783
|
+
date?: string | null;
|
|
1784
|
+
rerank_score?: number | null;
|
|
1785
|
+
site_icon?: string | null;
|
|
1786
|
+
site_name?: string | null;
|
|
1787
|
+
snippet?: string | null;
|
|
1788
|
+
summary?: string | null;
|
|
1789
|
+
title?: string | null;
|
|
1790
|
+
url?: string | null;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
declare const deepseekSearchToolFactory: ProviderExecutedToolFactory<DeepSeekSearchInput, DeepSeekSearchOutput, DeepSeekSearchConfig, {}>;
|
|
1794
|
+
|
|
1735
1795
|
export declare class DefaultChatTransport<UI_MESSAGE extends UIMessage> extends HttpChatTransport<UI_MESSAGE> {
|
|
1736
1796
|
readonly resumeStreamIsReplay: boolean;
|
|
1737
1797
|
constructor({ resumeStreamIsReplay, ...options }?: HttpChatTransportInitOptions<UI_MESSAGE> & {
|
|
@@ -1761,7 +1821,7 @@ export declare class DefaultGeneratedFile implements GeneratedFile {
|
|
|
1761
1821
|
readonly mediaType: string;
|
|
1762
1822
|
readonly providerMetadata?: Record<string, JSONObject>;
|
|
1763
1823
|
constructor({ data, mediaType, providerMetadata }: {
|
|
1764
|
-
data: string | Uint8Array;
|
|
1824
|
+
data: string | Uint8Array | ArrayBuffer;
|
|
1765
1825
|
mediaType: string;
|
|
1766
1826
|
providerMetadata?: Record<string, JSONObject>;
|
|
1767
1827
|
});
|
|
@@ -1876,6 +1936,34 @@ export declare class DownloadError extends AISDKError {
|
|
|
1876
1936
|
static isInstance(error: unknown): error is DownloadError;
|
|
1877
1937
|
}
|
|
1878
1938
|
|
|
1939
|
+
/** Serializable tracing identity shared by the processes of a durable run. */
|
|
1940
|
+
export declare type DurableTelemetryContext = {
|
|
1941
|
+
traceId: string;
|
|
1942
|
+
rootSpanId: string;
|
|
1943
|
+
/** The integration's root-span data, reused when the run is reported. */
|
|
1944
|
+
rootSpanName?: string;
|
|
1945
|
+
rootAttributes?: Record<string, string | number | boolean | Array<string | null | undefined> | Array<number | null | undefined> | Array<boolean | null | undefined> | undefined>;
|
|
1946
|
+
traceFlags: number;
|
|
1947
|
+
traceState?: string;
|
|
1948
|
+
samplingDecision: 0 | 1 | 2;
|
|
1949
|
+
parentSpanContext?: {
|
|
1950
|
+
traceId: string;
|
|
1951
|
+
spanId: string;
|
|
1952
|
+
traceFlags: number;
|
|
1953
|
+
traceState?: string;
|
|
1954
|
+
};
|
|
1955
|
+
};
|
|
1956
|
+
|
|
1957
|
+
/** Identifies live model events and the run events reported after completion. */
|
|
1958
|
+
export declare type DurableTelemetryEventContext = {
|
|
1959
|
+
run: DurableTelemetryContext;
|
|
1960
|
+
stepNumber?: number;
|
|
1961
|
+
phase: 'live' | 'replay';
|
|
1962
|
+
/** Context has already been filtered before crossing the step boundary. */
|
|
1963
|
+
runtimeContext?: Record<string, unknown>;
|
|
1964
|
+
headers?: Record<string, string | undefined>;
|
|
1965
|
+
};
|
|
1966
|
+
|
|
1879
1967
|
/**
|
|
1880
1968
|
* Tool that is defined at runtime.
|
|
1881
1969
|
* The types of input and output are not known at development time.
|
|
@@ -3578,19 +3666,6 @@ export declare const Experimental_EvaluationUnsupportedQuestionTypeError: typeof
|
|
|
3578
3666
|
/** @deprecated Use `Experimental_DecisionUnsupportedQuestionTypeError` instead. */
|
|
3579
3667
|
export declare type Experimental_EvaluationUnsupportedQuestionTypeError = Experimental_DecisionUnsupportedQuestionTypeError;
|
|
3580
3668
|
|
|
3581
|
-
/**
|
|
3582
|
-
* Filters the tools to only include the active tools.
|
|
3583
|
-
* When activeTools is provided, we only include the tools that are in the list.
|
|
3584
|
-
*
|
|
3585
|
-
* @param tools - The tools to filter.
|
|
3586
|
-
* @param activeTools - The active tools to include.
|
|
3587
|
-
* @returns The filtered tools.
|
|
3588
|
-
*/
|
|
3589
|
-
export declare function experimental_filterActiveTools<TOOLS extends ToolSet | undefined, ACTIVE_TOOL_NAMES extends ActiveTools<NonNullable<TOOLS>>>({ tools, activeTools }: {
|
|
3590
|
-
tools: TOOLS;
|
|
3591
|
-
activeTools: ACTIVE_TOOL_NAMES;
|
|
3592
|
-
}): ActiveToolSubset<TOOLS, ACTIVE_TOOL_NAMES>;
|
|
3593
|
-
|
|
3594
3669
|
/**
|
|
3595
3670
|
* @deprecated Use `GeneratedFile` instead. This alias will be removed in v8.
|
|
3596
3671
|
*/
|
|
@@ -3838,42 +3913,6 @@ export declare type Experimental_ImageBatchRequest<ModelId extends string = stri
|
|
|
3838
3913
|
providerOptions?: ProviderOptions;
|
|
3839
3914
|
};
|
|
3840
3915
|
|
|
3841
|
-
export declare type Experimental_LanguageModelStreamPart<TOOLS extends ToolSet = ToolSet> = Exclude<TextStreamPart<TOOLS>, {
|
|
3842
|
-
type: 'finish' | 'stream-start' | 'tool-output-denied' | 'start-step' | 'finish-step' | 'start' | 'abort';
|
|
3843
|
-
}> | TextStreamTextDeltaPart | TextStreamReasoningDeltaPart | TextStreamFilePart | TextStreamReasoningFilePart | TextStreamToolApprovalRequestPart<TOOLS> | TextStreamToolApprovalResponsePart<TOOLS> | TextStreamToolCallPart<TOOLS> | TextStreamToolResultPart<TOOLS> | TextStreamToolErrorPart<TOOLS> | {
|
|
3844
|
-
type: 'model-call-end';
|
|
3845
|
-
finishReason: FinishReason;
|
|
3846
|
-
rawFinishReason: string | undefined;
|
|
3847
|
-
usage: LanguageModelUsage;
|
|
3848
|
-
providerMetadata?: ProviderMetadata;
|
|
3849
|
-
performance: {
|
|
3850
|
-
responseTimeMs: number;
|
|
3851
|
-
effectiveOutputTokensPerSecond: number;
|
|
3852
|
-
outputTokensPerSecond: number | undefined;
|
|
3853
|
-
inputTokensPerSecond: number | undefined;
|
|
3854
|
-
effectiveTotalTokensPerSecond: number;
|
|
3855
|
-
timeToFirstOutputMs: number | undefined;
|
|
3856
|
-
timeBetweenOutputChunksMs?: OutputChunkTimingStats;
|
|
3857
|
-
};
|
|
3858
|
-
} | {
|
|
3859
|
-
type: 'model-call-start';
|
|
3860
|
-
warnings: Array<CallWarning>;
|
|
3861
|
-
} | {
|
|
3862
|
-
type: 'model-call-response-metadata';
|
|
3863
|
-
/**
|
|
3864
|
-
* ID for the generated response, if the provider sends one.
|
|
3865
|
-
*/
|
|
3866
|
-
id?: string;
|
|
3867
|
-
/**
|
|
3868
|
-
* Timestamp for the start of the generated response, if the provider sends one.
|
|
3869
|
-
*/
|
|
3870
|
-
timestamp?: Date;
|
|
3871
|
-
/**
|
|
3872
|
-
* The ID of the response model that was used to generate the response, if the provider sends one.
|
|
3873
|
-
*/
|
|
3874
|
-
modelId?: string;
|
|
3875
|
-
};
|
|
3876
|
-
|
|
3877
3916
|
/**
|
|
3878
3917
|
* Lists a page of batches.
|
|
3879
3918
|
*/
|
|
@@ -4007,6 +4046,36 @@ export declare type Experimental_RealtimeToolDefinition = RealtimeModelV4ToolDef
|
|
|
4007
4046
|
*/
|
|
4008
4047
|
export declare function experimental_resampleAudio(input: Float32Array, inputRate: number, outputRate: number): Float32Array;
|
|
4009
4048
|
|
|
4049
|
+
/**
|
|
4050
|
+
* Entry in a directory listing, returned by `SandboxSession.listDirectory`.
|
|
4051
|
+
*/
|
|
4052
|
+
export declare type Experimental_SandboxDirectoryEntry = {
|
|
4053
|
+
/**
|
|
4054
|
+
* Name of the entry, without the directory path.
|
|
4055
|
+
*/
|
|
4056
|
+
name: string;
|
|
4057
|
+
/**
|
|
4058
|
+
* Type of the entry. Symbolic links are reported as `symlink` and not
|
|
4059
|
+
* followed. `other` covers devices, sockets, and named pipes.
|
|
4060
|
+
*/
|
|
4061
|
+
type: 'file' | 'directory' | 'symlink' | 'other';
|
|
4062
|
+
};
|
|
4063
|
+
|
|
4064
|
+
/**
|
|
4065
|
+
* Information about a file or directory in the sandbox, returned by
|
|
4066
|
+
* `SandboxSession.stat`. Symbolic links are followed.
|
|
4067
|
+
*/
|
|
4068
|
+
export declare type Experimental_SandboxFileStat = {
|
|
4069
|
+
/**
|
|
4070
|
+
* Type of the path. `other` covers devices, sockets, and named pipes.
|
|
4071
|
+
*/
|
|
4072
|
+
type: 'file' | 'directory' | 'other';
|
|
4073
|
+
/**
|
|
4074
|
+
* Size in bytes. The size of a directory is implementation-defined.
|
|
4075
|
+
*/
|
|
4076
|
+
size: number;
|
|
4077
|
+
};
|
|
4078
|
+
|
|
4010
4079
|
/**
|
|
4011
4080
|
* Handle to a long-running process started via `SandboxSession.spawn`.
|
|
4012
4081
|
*/
|
|
@@ -4037,6 +4106,13 @@ export declare type Experimental_SandboxProcess = {
|
|
|
4037
4106
|
|
|
4038
4107
|
/**
|
|
4039
4108
|
* Sandbox session that can execute commands and read/write files.
|
|
4109
|
+
*
|
|
4110
|
+
* Relative paths in every method, including the `workingDirectory` option of
|
|
4111
|
+
* `run` and `spawn`, resolve against the same base directory: the directory
|
|
4112
|
+
* that `run` and `spawn` start in when no `workingDirectory` is given. The
|
|
4113
|
+
* base directory does not change for the lifetime of the session; changing
|
|
4114
|
+
* the directory inside a command, e.g. with `cd`, only affects that command.
|
|
4115
|
+
* Absolute paths are used as is.
|
|
4040
4116
|
*/
|
|
4041
4117
|
export declare type Experimental_SandboxSession = {
|
|
4042
4118
|
/**
|
|
@@ -4049,9 +4125,8 @@ export declare type Experimental_SandboxSession = {
|
|
|
4049
4125
|
* Read one file from the sandbox as a stream of bytes. Resolves to `null`
|
|
4050
4126
|
* when the file does not exist.
|
|
4051
4127
|
*
|
|
4052
|
-
*
|
|
4053
|
-
*
|
|
4054
|
-
* to stream bytes.
|
|
4128
|
+
* This is the lowest-level read primitive; prefer `readBinaryFile` or
|
|
4129
|
+
* `readTextFile` unless you need to stream bytes.
|
|
4055
4130
|
*/
|
|
4056
4131
|
readonly readFile: (options: SandboxReadFileOptions) => PromiseLike<ReadableStream<Uint8Array> | null>;
|
|
4057
4132
|
/**
|
|
@@ -4069,7 +4144,8 @@ export declare type Experimental_SandboxSession = {
|
|
|
4069
4144
|
readonly readTextFile: (options: SandboxReadTextFileOptions) => PromiseLike<string | null>;
|
|
4070
4145
|
/**
|
|
4071
4146
|
* Write one file to the sandbox from a stream of bytes. Creates parent
|
|
4072
|
-
* directories recursively and overwrites any existing file.
|
|
4147
|
+
* directories recursively and overwrites any existing file. Rejects when the
|
|
4148
|
+
* path is a directory.
|
|
4073
4149
|
*
|
|
4074
4150
|
* This is the lowest-level write primitive; prefer `writeBinaryFile` or
|
|
4075
4151
|
* `writeTextFile` when the full content is already materialized in memory.
|
|
@@ -4077,15 +4153,34 @@ export declare type Experimental_SandboxSession = {
|
|
|
4077
4153
|
readonly writeFile: (options: SandboxWriteFileOptions) => PromiseLike<void>;
|
|
4078
4154
|
/**
|
|
4079
4155
|
* Write one file to the sandbox from raw bytes. Creates parent directories
|
|
4080
|
-
* recursively and overwrites any existing file.
|
|
4156
|
+
* recursively and overwrites any existing file. Rejects when the path is a
|
|
4157
|
+
* directory.
|
|
4081
4158
|
*/
|
|
4082
4159
|
readonly writeBinaryFile: (options: SandboxWriteBinaryFileOptions) => PromiseLike<void>;
|
|
4083
4160
|
/**
|
|
4084
4161
|
* Write one file to the sandbox from a string, encoded using the requested
|
|
4085
4162
|
* encoding. Creates parent directories recursively and overwrites any
|
|
4086
|
-
* existing file.
|
|
4163
|
+
* existing file. Rejects when the path is a directory.
|
|
4087
4164
|
*/
|
|
4088
4165
|
readonly writeTextFile: (options: SandboxWriteTextFileOptions) => PromiseLike<void>;
|
|
4166
|
+
/**
|
|
4167
|
+
* Get information about a file or directory. Symbolic links are followed.
|
|
4168
|
+
* Resolves to `null` when the path does not exist.
|
|
4169
|
+
*/
|
|
4170
|
+
readonly stat: (options: SandboxStatOptions) => PromiseLike<Experimental_SandboxFileStat | null>;
|
|
4171
|
+
/**
|
|
4172
|
+
* List the entries of one directory, without descending into
|
|
4173
|
+
* subdirectories. The order of entries is unspecified. Resolves to `null`
|
|
4174
|
+
* when the directory does not exist and rejects when the path is not a
|
|
4175
|
+
* directory.
|
|
4176
|
+
*/
|
|
4177
|
+
readonly listDirectory: (options: SandboxListDirectoryOptions) => PromiseLike<Array<Experimental_SandboxDirectoryEntry> | null>;
|
|
4178
|
+
/**
|
|
4179
|
+
* Delete one file. A symbolic link is deleted itself, not its target.
|
|
4180
|
+
* Resolves to `true` when the file was deleted and `false` when it does not
|
|
4181
|
+
* exist. Rejects when the path is a directory.
|
|
4182
|
+
*/
|
|
4183
|
+
readonly deleteFile: (options: SandboxDeleteFileOptions) => PromiseLike<boolean>;
|
|
4089
4184
|
/**
|
|
4090
4185
|
* Spawn a long-running process in the sandbox. Returns immediately with a
|
|
4091
4186
|
* handle that streams stdout/stderr, can be waited on, and can be killed.
|
|
@@ -4281,6 +4376,22 @@ export declare interface Experimental_Steering {
|
|
|
4281
4376
|
steer(message: string | UserModelMessage, options?: {
|
|
4282
4377
|
id?: string;
|
|
4283
4378
|
}): Promise<Experimental_SteeringOutcome>;
|
|
4379
|
+
/**
|
|
4380
|
+
* Adds a user message to the run once the model has finished its current
|
|
4381
|
+
* task, i.e. when it gives a final answer without tool calls. The run then
|
|
4382
|
+
* continues with the message unless a stop condition is met. Queued
|
|
4383
|
+
* messages are delivered one per task, in order, after any waiting steering
|
|
4384
|
+
* messages.
|
|
4385
|
+
*
|
|
4386
|
+
* @param message - The user message, or its text.
|
|
4387
|
+
* @param options.id - The id of the message. Sending a message again with
|
|
4388
|
+
* the same id returns the outcome of the first message.
|
|
4389
|
+
*
|
|
4390
|
+
* @returns The outcome of the message. It never rejects.
|
|
4391
|
+
*/
|
|
4392
|
+
queue(message: string | UserModelMessage, options?: {
|
|
4393
|
+
id?: string;
|
|
4394
|
+
}): Promise<Experimental_SteeringOutcome>;
|
|
4284
4395
|
}
|
|
4285
4396
|
|
|
4286
4397
|
/**
|
|
@@ -4403,7 +4514,7 @@ export declare function experimental_streamLanguageModelCall<TOOLS extends ToolS
|
|
|
4403
4514
|
promptMessages: LanguageModelV4Prompt;
|
|
4404
4515
|
}) => Promise<void> | void;
|
|
4405
4516
|
} & Prompt & LanguageModelCallOptions): Promise<{
|
|
4406
|
-
stream: AsyncIterableStream<
|
|
4517
|
+
stream: AsyncIterableStream<LanguageModelStreamPart<TOOLS>>;
|
|
4407
4518
|
request?: {
|
|
4408
4519
|
/**
|
|
4409
4520
|
* Request HTTP body that was sent to the provider API.
|
|
@@ -5339,6 +5450,21 @@ export declare type FileUIPart = {
|
|
|
5339
5450
|
providerMetadata?: ProviderMetadata;
|
|
5340
5451
|
};
|
|
5341
5452
|
|
|
5453
|
+
/**
|
|
5454
|
+
* Filters the tools to only include the active tools.
|
|
5455
|
+
* When activeTools is provided, we only include the tools that are in the list.
|
|
5456
|
+
*
|
|
5457
|
+
* @param tools - The tools to filter.
|
|
5458
|
+
* @param activeTools - The active tools to include.
|
|
5459
|
+
* @returns The filtered tools.
|
|
5460
|
+
*/
|
|
5461
|
+
declare function filterActiveTools<TOOLS extends ToolSet | undefined, ACTIVE_TOOL_NAMES extends ActiveTools<NonNullable<TOOLS>>>({ tools, activeTools }: {
|
|
5462
|
+
tools: TOOLS;
|
|
5463
|
+
activeTools: ACTIVE_TOOL_NAMES;
|
|
5464
|
+
}): ActiveToolSubset<TOOLS, ACTIVE_TOOL_NAMES>;
|
|
5465
|
+
export { filterActiveTools as experimental_filterActiveTools }
|
|
5466
|
+
export { filterActiveTools }
|
|
5467
|
+
|
|
5342
5468
|
/**
|
|
5343
5469
|
* Fingerprint the server-controlled, security-relevant fields of each tool in a
|
|
5344
5470
|
* `ToolSet`: `description` (string form only), the resolved input JSON schema,
|
|
@@ -5396,7 +5522,7 @@ declare interface GatewayCreditsResponse {
|
|
|
5396
5522
|
totalUsed: string;
|
|
5397
5523
|
}
|
|
5398
5524
|
|
|
5399
|
-
declare type GatewayDecisionModelId = 'baseten/elephant-1' | 'baseten/
|
|
5525
|
+
declare type GatewayDecisionModelId = 'baseten/elephant-1' | 'baseten/joey-1' | 'baseten/mammoth-1' | 'convaiinnovations/laya' | 'liquid/d1' | 'liquid/d1-ultra' | 'microsoft/microsoft-decision-1' | 'openai/gpt-6-luna-decisions' | 'perplexity/pplx-decider-flash-v1.2' | 'perplexity/pplx-decider-v1.2' | 'scaledown/scaledown-classify-1' | 'typesafe-ai/jev' | 'typesafe-ai/jev-1.13.0' | 'typesafe-ai/jev-1.14.0' | (string & {});
|
|
5400
5526
|
|
|
5401
5527
|
declare type GatewayEmbeddingModelId = 'alibaba/qwen3-embedding-0.6b' | 'alibaba/qwen3-embedding-4b' | 'alibaba/qwen3-embedding-8b' | 'amazon/titan-embed-text-v2' | 'cohere/embed-v4.0' | 'cohere/embed-v5.0-fast' | 'cohere/embed-v5.0-pro' | 'google/gemini-embedding-001' | 'google/gemini-embedding-2' | 'google/text-embedding-005' | 'google/text-multilingual-embedding-002' | 'mistral/codestral-embed' | 'mistral/mistral-embed' | 'openai/text-embedding-3-large' | 'openai/text-embedding-3-small' | 'openai/text-embedding-ada-002' | 'perplexity/pplx-embed-v1-0.6b' | 'perplexity/pplx-embed-v1-4b' | 'voyage/voyage-3-large' | 'voyage/voyage-3.5' | 'voyage/voyage-3.5-lite' | 'voyage/voyage-4' | 'voyage/voyage-4-large' | 'voyage/voyage-4-lite' | 'voyage/voyage-code-2' | 'voyage/voyage-code-3' | 'voyage/voyage-finance-2' | 'voyage/voyage-law-2' | (string & {});
|
|
5402
5528
|
|
|
@@ -5499,7 +5625,7 @@ declare interface GatewayLanguageModelEntry {
|
|
|
5499
5625
|
|
|
5500
5626
|
declare type GatewayLanguageModelSpecification = Pick<LanguageModelV4, 'specificationVersion' | 'provider' | 'modelId'>;
|
|
5501
5627
|
|
|
5502
|
-
export declare type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3.5-flash' | 'alibaba/qwen3.5-plus' | 'alibaba/qwen3.6-27b' | 'alibaba/qwen3.6-plus' | 'alibaba/qwen3.7-flash' | 'alibaba/qwen3.7-max' | 'alibaba/qwen3.7-plus' | 'alibaba/qwen3.8-2.4t-a95b' | 'alibaba/qwen3.8-27b' | 'alibaba/qwen3.8-flash' | 'alibaba/qwen3.8-max' | 'alibaba/qwen3.8-max-0902' | 'alibaba/qwen3.8-max-prime' | 'alibaba/qwen3.8-omni-flash' | 'amazon/nova-2-lite' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-fable-5' | 'anthropic/claude-fable-5-batch' | 'anthropic/claude-fable-5.1' | 'anthropic/claude-fable-5.1-batch' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-haiku-4.5-batch' | 'anthropic/claude-haiku-5.5' | 'anthropic/claude-haiku-5.5-batch' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-opus-4.5-batch' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-opus-4.6-batch' | 'anthropic/claude-opus-4.7' | 'anthropic/claude-opus-4.7-batch' | 'anthropic/claude-opus-4.8' | 'anthropic/claude-opus-4.8-batch' | 'anthropic/claude-opus-4.8-fast' | 'anthropic/claude-opus-5' | 'anthropic/claude-opus-5-batch' | 'anthropic/claude-opus-5-fast' | 'anthropic/claude-opus-5.5' | 'anthropic/claude-opus-5.5-batch' | 'anthropic/claude-opus-5.5-fast' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-sonnet-4.5-batch' | 'anthropic/claude-sonnet-4.6' | 'anthropic/claude-sonnet-4.6-batch' | 'anthropic/claude-sonnet-5' | 'anthropic/claude-sonnet-5-batch' | 'anthropic/claude-sonnet-5.5' | 'anthropic/claude-sonnet-5.5-batch' | '
|
|
5628
|
+
export declare type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3.5-flash' | 'alibaba/qwen3.5-plus' | 'alibaba/qwen3.6-27b' | 'alibaba/qwen3.6-plus' | 'alibaba/qwen3.7-flash' | 'alibaba/qwen3.7-max' | 'alibaba/qwen3.7-plus' | 'alibaba/qwen3.8-2.4t-a95b' | 'alibaba/qwen3.8-27b' | 'alibaba/qwen3.8-flash' | 'alibaba/qwen3.8-max' | 'alibaba/qwen3.8-max-0902' | 'alibaba/qwen3.8-max-prime' | 'alibaba/qwen3.8-omni-flash' | 'amazon/nova-2-lite' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-fable-5' | 'anthropic/claude-fable-5-batch' | 'anthropic/claude-fable-5.1' | 'anthropic/claude-fable-5.1-batch' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-haiku-4.5-batch' | 'anthropic/claude-haiku-5.5' | 'anthropic/claude-haiku-5.5-batch' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-opus-4.5-batch' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-opus-4.6-batch' | 'anthropic/claude-opus-4.7' | 'anthropic/claude-opus-4.7-batch' | 'anthropic/claude-opus-4.8' | 'anthropic/claude-opus-4.8-batch' | 'anthropic/claude-opus-4.8-fast' | 'anthropic/claude-opus-5' | 'anthropic/claude-opus-5-batch' | 'anthropic/claude-opus-5-fast' | 'anthropic/claude-opus-5.5' | 'anthropic/claude-opus-5.5-batch' | 'anthropic/claude-opus-5.5-fast' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-sonnet-4.5-batch' | 'anthropic/claude-sonnet-4.6' | 'anthropic/claude-sonnet-4.6-batch' | 'anthropic/claude-sonnet-5' | 'anthropic/claude-sonnet-5-batch' | 'anthropic/claude-sonnet-5.5' | 'anthropic/claude-sonnet-5.5-batch' | 'bytedance/seed-1.6' | 'bytedance/seed-1.8' | 'bytedance/seed-2.1-turbo' | 'callstack/apex' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.2' | 'deepseek/deepseek-v3.2-thinking' | 'deepseek/deepseek-v4-flash' | 'deepseek/deepseek-v4-flash-0731' | 'deepseek/deepseek-v4-flash-vision-exp' | 'deepseek/deepseek-v4-pro' | 'deepseek/deepseek-v4-pro-0813' | 'deepseek/deepseek-v4.1-flash' | 'deepseek/deepseek-v4.1-flash-1017' | 'deepseek/deepseek-v4.1-flash-1017-fast' | 'deepseek/deepseek-v4.1-flash-fast' | 'elorian/glimpse' | 'fireworks/ember-1' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-batch' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-flash-lite-batch' | 'google/gemini-2.5-pro' | 'google/gemini-2.5-pro-batch' | 'google/gemini-3-flash' | 'google/gemini-3-flash-batch' | 'google/gemini-3-pro-image' | 'google/gemini-3.1-flash-image' | 'google/gemini-3.1-flash-image-preview' | 'google/gemini-3.1-flash-lite' | 'google/gemini-3.1-flash-lite-batch' | 'google/gemini-3.1-flash-lite-image' | 'google/gemini-3.1-pro-preview' | 'google/gemini-3.1-pro-preview-batch' | 'google/gemini-3.5-flash' | 'google/gemini-3.5-flash-batch' | 'google/gemini-3.5-flash-lite' | 'google/gemini-3.5-flash-lite-batch' | 'google/gemini-3.6-flash' | 'google/gemini-3.6-flash-batch' | 'google/gemini-3.7-flash' | 'google/gemini-3.7-flash-batch' | 'google/gemini-3.8-flash' | 'google/gemini-4-argon' | 'google/gemini-nano-banana-2.1' | 'google/gemini-omni-flash-preview' | 'google/gemma-4-26b-a4b-it' | 'google/gemma-4-31b-it' | 'inception/mercury-2' | 'inception/mercury-2.5' | 'inception/mercury-3' | 'inception/mercury-coder-small' | 'inclusionai/ling-3.0-flash' | 'inclusionai/ling-3.0-flash-fin' | 'inclusionai/ling-3.0-flash-sante' | 'inclusionai/ling-3.0-flash-vl' | 'inclusionai/ling-3.1-flash' | 'inclusionai/ling-3.1-flash-1019' | 'inference-net/schematron-v2-small' | 'inference-net/schematron-v2-turbo' | 'interfaze/interfaze-beta' | 'liquid/lfm2.5-24b-a2b' | 'meituan/longcat-2.5' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'meta/muse-glimmer-30b' | 'meta/muse-spark-1.1' | 'meta/muse-spark-1.2' | 'meta/muse-spark-1.2-contributor' | 'meta/muse-spark-1.3' | 'meta/muse-spark-1.3-contributor' | 'meta/muse-spark-open' | 'meta/muse-wonder-1.0' | 'minimax/minimax-m2' | 'minimax/minimax-m2.1' | 'minimax/minimax-m2.1-lightning' | 'minimax/minimax-m2.5' | 'minimax/minimax-m2.5-highspeed' | 'minimax/minimax-m2.7' | 'minimax/minimax-m2.7-highspeed' | 'minimax/minimax-m3' | 'minimax/minimax-m3.1-flash' | 'mistral/codestral' | 'mistral/ministral-14b' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large-3' | 'mistral/mistral-large-4' | 'mistral/mistral-medium-3.5' | 'mistral/mistral-nemo' | 'mistral/mistral-small' | 'mixedbread/toast-1' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2.5' | 'moonshotai/kimi-k2.6' | 'moonshotai/kimi-k2.7-code' | 'moonshotai/kimi-k2.7-code-highspeed' | 'moonshotai/kimi-k3' | 'moonshotai/kimi-k3-fast' | 'moonshotai/kimi-k3.1-pro' | 'moonshotai/kimi-k3.1-pro-highspeed' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'nvidia/nemotron-3-nano-30b-a3b' | 'nvidia/nemotron-3-super-120b-a12b' | 'nvidia/nemotron-3-ultra-550b-a55b' | 'nvidia/nemotron-3.5-lightning' | 'nvidia/nemotron-3.5-lightning-free' | 'nvidia/nemotron-3.5-super-vl' | 'nvidia/nemotron-nano-12b-v2-vl' | 'nvidia/nemotron-nano-9b-v2' | 'openai/gpt-4.1' | 'openai/gpt-4.1-batch' | 'openai/gpt-4.1-fast' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-mini-batch' | 'openai/gpt-4.1-mini-fast' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-batch' | 'openai/gpt-4o-fast' | 'openai/gpt-4o-mini' | 'openai/gpt-4o-mini-batch' | 'openai/gpt-4o-mini-fast' | 'openai/gpt-5' | 'openai/gpt-5-batch' | 'openai/gpt-5-codex' | 'openai/gpt-5-fast' | 'openai/gpt-5-mini' | 'openai/gpt-5-mini-batch' | 'openai/gpt-5-mini-fast' | 'openai/gpt-5-nano' | 'openai/gpt-5-nano-batch' | 'openai/gpt-5-pro' | 'openai/gpt-5-pro-batch' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.1-thinking-fast' | 'openai/gpt-5.2' | 'openai/gpt-5.2-batch' | 'openai/gpt-5.2-codex' | 'openai/gpt-5.2-fast' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.3-codex' | 'openai/gpt-5.3-codex-fast' | 'openai/gpt-5.4' | 'openai/gpt-5.4-batch' | 'openai/gpt-5.4-fast' | 'openai/gpt-5.4-mini' | 'openai/gpt-5.4-mini-batch' | 'openai/gpt-5.4-mini-fast' | 'openai/gpt-5.4-nano' | 'openai/gpt-5.4-nano-batch' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.5' | 'openai/gpt-5.5-batch' | 'openai/gpt-5.5-fast' | 'openai/gpt-5.5-pro' | 'openai/gpt-5.5-pro-batch' | 'openai/gpt-5.6-luna' | 'openai/gpt-5.6-luna-batch' | 'openai/gpt-5.6-luna-fast' | 'openai/gpt-5.6-sol' | 'openai/gpt-5.6-sol-batch' | 'openai/gpt-5.6-sol-fast' | 'openai/gpt-5.6-terra' | 'openai/gpt-5.6-terra-batch' | 'openai/gpt-5.6-terra-fast' | 'openai/gpt-6-astra' | 'openai/gpt-6-astra-batch' | 'openai/gpt-6-astra-fast' | 'openai/gpt-6-luna' | 'openai/gpt-6-luna-batch' | 'openai/gpt-6-luna-fast' | 'openai/gpt-6-sol' | 'openai/gpt-6-sol-batch' | 'openai/gpt-6-sol-fast' | 'openai/gpt-6.1-sol' | 'openai/gpt-6.1-sol-batch' | 'openai/gpt-6.1-sol-fast' | 'openai/gpt-6.1-terra' | 'openai/gpt-6.1-terra-fast' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-120b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-fast' | 'openai/o3-mini' | 'openai/o3-pro' | 'openai/o4-mini' | 'particle/particle-1' | 'perplexity/sonar' | 'poolside/laguna-s-2.1' | 'quiverai/arrow-2' | 'quiverai/arrow-2-telos' | 'reflection/beam' | 'reflection/beam-free' | 'sakana/fugu-max' | 'sakana/fugu-ultra' | 'sakana/fugu-ultra-v2' | 'sakana/namazu' | 'scaledown/scaledown-extract-1' | 'scaledown/scaledown-summarize-1' | 'spacexai/grok-4.20-multi-agent' | 'spacexai/grok-4.20-multi-agent-batch' | 'spacexai/grok-4.20-multi-agent-beta' | 'spacexai/grok-4.20-non-reasoning' | 'spacexai/grok-4.20-non-reasoning-batch' | 'spacexai/grok-4.20-non-reasoning-beta' | 'spacexai/grok-4.20-reasoning' | 'spacexai/grok-4.20-reasoning-batch' | 'spacexai/grok-4.20-reasoning-beta' | 'spacexai/grok-4.3' | 'spacexai/grok-4.3-batch' | 'spacexai/grok-4.5' | 'spacexai/grok-4.6' | 'spacexai/grok-4.7' | 'spacexai/grok-build-0.1' | 'stealth/glyph-cluster' | 'stepfun/step-3.7-flash' | 'stepfun/step-5-preview' | 'tencent/hy-mt2-lite' | 'tencent/hy-mt2-plus' | 'tencent/hy-mt2-pro' | 'tencent/hy3' | 'tencent/hy4-preview' | 'thinkingmachines/inkling' | 'thinkingmachines/inkling-small' | 'xiaomi/mimo-v2.5' | 'xiaomi/mimo-v2.5-pro' | 'xiaomi/mimo-v2.6-flash' | 'xiaomi/mimo-v2.6-pro' | 'xiaomi/mimo-v2.6-pro-ultraspeed' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | 'zai/glm-4.7' | 'zai/glm-4.7-flash' | 'zai/glm-4.7-flashx' | 'zai/glm-5' | 'zai/glm-5-turbo' | 'zai/glm-5.1' | 'zai/glm-5.2' | 'zai/glm-5.2-fast' | 'zai/glm-5.3' | 'zai/glm-5.3-fast' | 'zai/glm-5.3-flash' | 'zai/glm-5.3-flashx' | 'zai/glm-5.3-flashx-legal' | 'zai/glm-5v-turbo' | (string & {});
|
|
5503
5629
|
|
|
5504
5630
|
declare interface GatewayProvider extends ProviderV4 {
|
|
5505
5631
|
(modelId: GatewayModelId): LanguageModelV4;
|
|
@@ -5648,8 +5774,9 @@ declare interface GatewayProviderSettings {
|
|
|
5648
5774
|
/**
|
|
5649
5775
|
* API key or Vercel access token that is being sent using the `Authorization`
|
|
5650
5776
|
* header. It defaults to the `AI_GATEWAY_API_KEY` environment variable.
|
|
5777
|
+
* A callback is resolved before each request and must return a non-empty key.
|
|
5651
5778
|
*/
|
|
5652
|
-
apiKey?: string
|
|
5779
|
+
apiKey?: Resolvable<string>;
|
|
5653
5780
|
/**
|
|
5654
5781
|
* Vercel team ID or slug to scope requests for access tokens that can access
|
|
5655
5782
|
* multiple teams.
|
|
@@ -5706,7 +5833,7 @@ declare type GatewaySpeechFactoryGetTokenResult = {
|
|
|
5706
5833
|
expiresAt?: number;
|
|
5707
5834
|
};
|
|
5708
5835
|
|
|
5709
|
-
declare type GatewaySpeechModelId = 'fish-audio/drama-3' | 'fish-audio/s1' | 'fish-audio/s2-pro' | 'fish-audio/s2.1-pro' | 'google/gemini-3.8-flash-lite-tts' | 'google/gemini-3.8-flash-tts' | 'microsoft/mai-voice-2' | 'microsoft/mai-voice-2-flash' | 'microsoft/mai-voice-2.1' | 'microsoft/mai-voice-2.1-flash' | 'mistral/voxtral-mini-tts-3' | 'openai/tts-1' | 'openai/tts-1-hd' | 'spacexai/grok-tts' | (string & {});
|
|
5836
|
+
declare type GatewaySpeechModelId = 'elevenlabs/eleven-flash-v2' | 'elevenlabs/eleven-flash-v2.5' | 'elevenlabs/eleven-multilingual-v2' | 'elevenlabs/eleven-v3' | 'elevenlabs/eleven-v3-conversational' | 'elevenlabs/eleven-v4' | 'elevenlabs/eleven-v4-turbo' | 'elevenlabs/music-v2' | 'elevenlabs/music-v2.5' | 'elevenlabs/sound-effects-v2' | 'fish-audio/drama-3' | 'fish-audio/s1' | 'fish-audio/s2-pro' | 'fish-audio/s2.1-pro' | 'google/gemini-3.8-flash-lite-tts' | 'google/gemini-3.8-flash-tts' | 'microsoft/mai-voice-2' | 'microsoft/mai-voice-2-flash' | 'microsoft/mai-voice-2.1' | 'microsoft/mai-voice-2.1-flash' | 'mistral/voxtral-mini-tts-3' | 'openai/tts-1' | 'openai/tts-1-hd' | 'spacexai/grok-tts' | (string & {});
|
|
5710
5837
|
|
|
5711
5838
|
declare interface GatewaySpendReportParams {
|
|
5712
5839
|
/** Start date in YYYY-MM-DD format (inclusive) */
|
|
@@ -5766,6 +5893,14 @@ declare interface GatewaySpendReportRow {
|
|
|
5766
5893
|
requestCount?: number;
|
|
5767
5894
|
}
|
|
5768
5895
|
|
|
5896
|
+
declare interface GatewayToolError {
|
|
5897
|
+
error: 'api_error' | 'configuration_error' | 'execution_error' | 'gateway_rate_limit' | 'invalid_input' | 'rate_limit' | 'timeout' | 'unknown' | 'unknown_tool';
|
|
5898
|
+
message: string;
|
|
5899
|
+
statusCode?: number;
|
|
5900
|
+
retryAfter?: string;
|
|
5901
|
+
statusText?: string;
|
|
5902
|
+
}
|
|
5903
|
+
|
|
5769
5904
|
/**
|
|
5770
5905
|
* Gateway-specific provider-defined tools.
|
|
5771
5906
|
*/
|
|
@@ -5784,6 +5919,16 @@ declare const gatewayTools: {
|
|
|
5784
5919
|
* a browser session.
|
|
5785
5920
|
*/
|
|
5786
5921
|
browserbaseSearch: (config?: BrowserbaseSearchConfig) => ReturnType<typeof browserbaseSearchToolFactory>;
|
|
5922
|
+
/**
|
|
5923
|
+
* Fetch a page as Markdown through DeepSeek's standalone Fetch API.
|
|
5924
|
+
* Executed by AI Gateway for any model, separate from native model web search.
|
|
5925
|
+
*/
|
|
5926
|
+
deepseekFetch: (config?: DeepSeekFetchConfig) => ReturnType<typeof deepseekFetchToolFactory>;
|
|
5927
|
+
/**
|
|
5928
|
+
* Search the web through DeepSeek's standalone Search API.
|
|
5929
|
+
* Executed by AI Gateway for any model, separate from native model web search.
|
|
5930
|
+
*/
|
|
5931
|
+
deepseekSearch: (config?: DeepSeekSearchConfig) => ReturnType<typeof deepseekSearchToolFactory>;
|
|
5787
5932
|
/**
|
|
5788
5933
|
* Search the web using Exa for current information and token-efficient
|
|
5789
5934
|
* excerpts optimized for agent workflows.
|
|
@@ -5847,7 +5992,7 @@ declare type GatewayTranscriptionFactoryGetTokenResult = {
|
|
|
5847
5992
|
expiresAt?: number;
|
|
5848
5993
|
};
|
|
5849
5994
|
|
|
5850
|
-
declare type GatewayTranscriptionModelId = 'fish-audio/transcribe-1' | 'google/gemini-3.5-transcribe' | 'google/gemini-3.5-transcribe-live' | 'microsoft/mai-transcribe-2' | 'microsoft/mai-transcribe-2-streaming' | 'mistral/voxtral-mini-transcribe-3' | 'mistral/voxtral-small-transcribe-3' | 'openai/gpt-4o-mini-transcribe' | 'openai/gpt-4o-transcribe' | 'openai/gpt-realtime-whisper' | 'openai/whisper-1' | 'spacexai/grok-stt' | (string & {});
|
|
5995
|
+
declare type GatewayTranscriptionModelId = 'elevenlabs/scribe-v2' | 'elevenlabs/scribe-v2-realtime' | 'fish-audio/transcribe-1' | 'google/gemini-3.5-transcribe' | 'google/gemini-3.5-transcribe-live' | 'microsoft/mai-transcribe-2' | 'microsoft/mai-transcribe-2-streaming' | 'mistral/voxtral-mini-transcribe-3' | 'mistral/voxtral-small-transcribe-3' | 'openai/gpt-4o-mini-transcribe' | 'openai/gpt-4o-transcribe' | 'openai/gpt-live-transcribe' | 'openai/gpt-realtime-whisper' | 'openai/gpt-transcribe' | 'openai/whisper-1' | 'spacexai/grok-stt' | (string & {});
|
|
5851
5996
|
|
|
5852
5997
|
declare type GatewayVideoModelId = 'alibaba/wan-v2.5-t2v-preview' | 'alibaba/wan-v2.6-i2v' | 'alibaba/wan-v2.6-i2v-flash' | 'alibaba/wan-v2.6-r2v' | 'alibaba/wan-v2.6-r2v-flash' | 'alibaba/wan-v2.6-t2v' | 'alibaba/wan-v2.7-r2v' | 'alibaba/wan-v2.7-t2v' | 'alibaba/wan-v3.0-video' | 'alibaba/wan-v3.0-video-prime' | 'bfl/flux-3-video' | 'bytedance/seedance-2.0' | 'bytedance/seedance-2.0-fast' | 'bytedance/seedance-2.0-mini' | 'bytedance/seedance-2.5' | 'bytedance/seedance-v1.0-pro' | 'bytedance/seedance-v1.0-pro-fast' | 'bytedance/seedance-v1.5-pro' | 'google/veo-3.0-fast-generate-001' | 'google/veo-3.0-generate-001' | 'google/veo-3.1-fast-generate-001' | 'google/veo-3.1-generate-001' | 'google/veo-3.1-lite-generate-001' | 'heygen/heygen-video-1' | 'klingai/kling-v2.5-turbo-i2v' | 'klingai/kling-v2.5-turbo-t2v' | 'klingai/kling-v2.6-i2v' | 'klingai/kling-v2.6-motion-control' | 'klingai/kling-v2.6-t2v' | 'klingai/kling-v3.0-i2v' | 'klingai/kling-v3.0-motion-control' | 'klingai/kling-v3.0-t2v' | 'minimax/minimax-h3' | 'minimax/minimax-h3-max' | 'spacexai/grok-imagine-video' | 'spacexai/grok-imagine-video-1.5' | 'spacexai/grok-imagine-video-1.5-lite' | 'topaz/proteus' | 'topaz/starlight-precise-2.6' | (string & {});
|
|
5853
5998
|
|
|
@@ -8424,6 +8569,15 @@ export declare type InferTelemetryEvent<EVENT> = EVENT & Omit<TelemetryOptions,
|
|
|
8424
8569
|
* Absent in older releases.
|
|
8425
8570
|
*/
|
|
8426
8571
|
readonly aiVersion?: string;
|
|
8572
|
+
/**
|
|
8573
|
+
* Time at which the event occurred, in milliseconds since the Unix epoch.
|
|
8574
|
+
*
|
|
8575
|
+
* Set when events are reported after they happened, for example when a
|
|
8576
|
+
* durable workflow reports a run that spanned several processes.
|
|
8577
|
+
* Integrations should use it instead of the current time when present.
|
|
8578
|
+
*/
|
|
8579
|
+
readonly timestamp?: number;
|
|
8580
|
+
readonly durableContext?: DurableTelemetryEventContext;
|
|
8427
8581
|
};
|
|
8428
8582
|
|
|
8429
8583
|
/**
|
|
@@ -8551,9 +8705,9 @@ export declare class InvalidResponseDataError extends AISDKError {
|
|
|
8551
8705
|
|
|
8552
8706
|
export declare class InvalidStreamPartError extends AISDKError {
|
|
8553
8707
|
private readonly [symbol$20];
|
|
8554
|
-
readonly chunk:
|
|
8708
|
+
readonly chunk: LanguageModelStreamPart<any>;
|
|
8555
8709
|
constructor({ chunk, message }: {
|
|
8556
|
-
chunk:
|
|
8710
|
+
chunk: LanguageModelStreamPart<any>;
|
|
8557
8711
|
message: string;
|
|
8558
8712
|
});
|
|
8559
8713
|
static isInstance(error: unknown): error is InvalidStreamPartError;
|
|
@@ -8960,6 +9114,44 @@ export declare type LanguageModelResponseMetadata = {
|
|
|
8960
9114
|
readonly body?: unknown;
|
|
8961
9115
|
};
|
|
8962
9116
|
|
|
9117
|
+
declare type LanguageModelStreamPart<TOOLS extends ToolSet = ToolSet> = Exclude<TextStreamPart<TOOLS>, {
|
|
9118
|
+
type: 'finish' | 'stream-start' | 'tool-output-denied' | 'start-step' | 'finish-step' | 'start' | 'abort';
|
|
9119
|
+
}> | TextStreamTextDeltaPart | TextStreamReasoningDeltaPart | TextStreamFilePart | TextStreamReasoningFilePart | TextStreamToolApprovalRequestPart<TOOLS> | TextStreamToolApprovalResponsePart<TOOLS> | TextStreamToolCallPart<TOOLS> | TextStreamToolResultPart<TOOLS> | TextStreamToolErrorPart<TOOLS> | {
|
|
9120
|
+
type: 'model-call-end';
|
|
9121
|
+
finishReason: FinishReason;
|
|
9122
|
+
rawFinishReason: string | undefined;
|
|
9123
|
+
usage: LanguageModelUsage;
|
|
9124
|
+
providerMetadata?: ProviderMetadata;
|
|
9125
|
+
performance: {
|
|
9126
|
+
responseTimeMs: number;
|
|
9127
|
+
effectiveOutputTokensPerSecond: number;
|
|
9128
|
+
outputTokensPerSecond: number | undefined;
|
|
9129
|
+
inputTokensPerSecond: number | undefined;
|
|
9130
|
+
effectiveTotalTokensPerSecond: number;
|
|
9131
|
+
timeToFirstOutputMs: number | undefined;
|
|
9132
|
+
timeBetweenOutputChunksMs?: OutputChunkTimingStats;
|
|
9133
|
+
};
|
|
9134
|
+
} | {
|
|
9135
|
+
type: 'model-call-start';
|
|
9136
|
+
warnings: Array<CallWarning>;
|
|
9137
|
+
} | {
|
|
9138
|
+
type: 'model-call-response-metadata';
|
|
9139
|
+
/**
|
|
9140
|
+
* ID for the generated response, if the provider sends one.
|
|
9141
|
+
*/
|
|
9142
|
+
id?: string;
|
|
9143
|
+
/**
|
|
9144
|
+
* Timestamp for the start of the generated response, if the provider sends one.
|
|
9145
|
+
*/
|
|
9146
|
+
timestamp?: Date;
|
|
9147
|
+
/**
|
|
9148
|
+
* The ID of the response model that was used to generate the response, if the provider sends one.
|
|
9149
|
+
*/
|
|
9150
|
+
modelId?: string;
|
|
9151
|
+
};
|
|
9152
|
+
export { LanguageModelStreamPart as Experimental_LanguageModelStreamPart }
|
|
9153
|
+
export { LanguageModelStreamPart }
|
|
9154
|
+
|
|
8963
9155
|
/**
|
|
8964
9156
|
* Represents the number of tokens used in a prompt and completion.
|
|
8965
9157
|
*/
|
|
@@ -12476,14 +12668,7 @@ declare interface ParallelSearchConfig {
|
|
|
12476
12668
|
location?: string;
|
|
12477
12669
|
}
|
|
12478
12670
|
|
|
12479
|
-
declare
|
|
12480
|
-
/** Error type */
|
|
12481
|
-
error: 'api_error' | 'configuration_error' | 'execution_error' | 'gateway_rate_limit' | 'invalid_input' | 'rate_limit' | 'timeout' | 'unknown' | 'unknown_tool';
|
|
12482
|
-
/** HTTP status code if applicable */
|
|
12483
|
-
statusCode?: number;
|
|
12484
|
-
/** Human-readable error message */
|
|
12485
|
-
message: string;
|
|
12486
|
-
}
|
|
12671
|
+
declare type ParallelSearchError = GatewayToolError;
|
|
12487
12672
|
|
|
12488
12673
|
declare interface ParallelSearchExcerpts {
|
|
12489
12674
|
/**
|
|
@@ -12673,6 +12858,20 @@ declare type PartialReadonlySet<T> = {} & ReadonlySet<DeepPartialInternal<T>>;
|
|
|
12673
12858
|
|
|
12674
12859
|
declare type PartialSet<T> = {} & Set<DeepPartialInternal<T>>;
|
|
12675
12860
|
|
|
12861
|
+
/**
|
|
12862
|
+
* Options for reading, inspecting, or deleting one path in the sandbox.
|
|
12863
|
+
*/
|
|
12864
|
+
declare type PathOptions = {
|
|
12865
|
+
/**
|
|
12866
|
+
* Path to operate on.
|
|
12867
|
+
*/
|
|
12868
|
+
path: string;
|
|
12869
|
+
/**
|
|
12870
|
+
* Signal that can be used to abort the operation.
|
|
12871
|
+
*/
|
|
12872
|
+
abortSignal?: AbortSignal;
|
|
12873
|
+
};
|
|
12874
|
+
|
|
12676
12875
|
declare interface PerplexitySearchConfig {
|
|
12677
12876
|
/**
|
|
12678
12877
|
* Default maximum number of search results to return (1-20, default: 10).
|
|
@@ -14906,6 +15105,10 @@ export declare type SafeValidateWebSocketChatTransportRequestResult<UI_MESSAGE e
|
|
|
14906
15105
|
error: Error;
|
|
14907
15106
|
};
|
|
14908
15107
|
|
|
15108
|
+
declare type SandboxDeleteFileOptions = PathOptions;
|
|
15109
|
+
|
|
15110
|
+
declare type SandboxListDirectoryOptions = PathOptions;
|
|
15111
|
+
|
|
14909
15112
|
/**
|
|
14910
15113
|
* Options for executing a command in the sandbox via `run` or `spawn`.
|
|
14911
15114
|
*/
|
|
@@ -14932,23 +15135,11 @@ declare type SandboxProcessOptions = {
|
|
|
14932
15135
|
abortSignal?: AbortSignal;
|
|
14933
15136
|
};
|
|
14934
15137
|
|
|
14935
|
-
declare type SandboxReadBinaryFileOptions =
|
|
15138
|
+
declare type SandboxReadBinaryFileOptions = PathOptions;
|
|
14936
15139
|
|
|
14937
|
-
|
|
14938
|
-
* Options for reading a file from the sandbox.
|
|
14939
|
-
*/
|
|
14940
|
-
declare type SandboxReadFileOptions = {
|
|
14941
|
-
/**
|
|
14942
|
-
* Path of the file to read.
|
|
14943
|
-
*/
|
|
14944
|
-
path: string;
|
|
14945
|
-
/**
|
|
14946
|
-
* Signal that can be used to abort the read.
|
|
14947
|
-
*/
|
|
14948
|
-
abortSignal?: AbortSignal;
|
|
14949
|
-
};
|
|
15140
|
+
declare type SandboxReadFileOptions = PathOptions;
|
|
14950
15141
|
|
|
14951
|
-
declare type SandboxReadTextFileOptions =
|
|
15142
|
+
declare type SandboxReadTextFileOptions = PathOptions & {
|
|
14952
15143
|
/**
|
|
14953
15144
|
* Text encoding used to decode the file bytes. Defaults to `"utf-8"`.
|
|
14954
15145
|
*/
|
|
@@ -14978,6 +15169,8 @@ declare type SandboxSpawnOptionsWithStdin = SandboxProcessOptions & {
|
|
|
14978
15169
|
stdin: true;
|
|
14979
15170
|
};
|
|
14980
15171
|
|
|
15172
|
+
declare type SandboxStatOptions = PathOptions;
|
|
15173
|
+
|
|
14981
15174
|
declare type SandboxWriteBinaryFileOptions = WriteFileOptions<Uint8Array>;
|
|
14982
15175
|
|
|
14983
15176
|
declare type SandboxWriteFileOptions = WriteFileOptions<ReadableStream<Uint8Array>>;
|
|
@@ -16758,6 +16951,11 @@ export declare type StaticToolResult<TOOLS extends ToolSet> = ValueOf<{ [NAME in
|
|
|
16758
16951
|
*/
|
|
16759
16952
|
declare type SteeringRun = {
|
|
16760
16953
|
hasPendingMessages(): boolean;
|
|
16954
|
+
/**
|
|
16955
|
+
* Moves the oldest queued message to the waiting messages for the next
|
|
16956
|
+
* step. Returns `false` when no message is queued.
|
|
16957
|
+
*/
|
|
16958
|
+
promoteQueuedMessage(): boolean;
|
|
16761
16959
|
/**
|
|
16762
16960
|
* Takes the waiting messages for the next step. They are resolved by
|
|
16763
16961
|
* `resolveTakenMessages` once the prompt of the step is known.
|
|
@@ -18373,11 +18571,7 @@ declare interface TakoSearchConfig {
|
|
|
18373
18571
|
|
|
18374
18572
|
declare type TakoSearchEffort = 'deep' | 'fast' | 'instant';
|
|
18375
18573
|
|
|
18376
|
-
declare
|
|
18377
|
-
error: 'api_error' | 'configuration_error' | 'execution_error' | 'invalid_input' | 'rate_limit' | 'timeout' | 'unknown_tool';
|
|
18378
|
-
statusCode?: number;
|
|
18379
|
-
message: string;
|
|
18380
|
-
}
|
|
18574
|
+
declare type TakoSearchError = GatewayToolError;
|
|
18381
18575
|
|
|
18382
18576
|
declare interface TakoSearchInput {
|
|
18383
18577
|
query: string;
|
|
@@ -18477,6 +18671,15 @@ declare interface TakoWebSourceConfig {
|
|
|
18477
18671
|
* Methods can be sync or return a PromiseLike.
|
|
18478
18672
|
*/
|
|
18479
18673
|
export declare interface Telemetry {
|
|
18674
|
+
/**
|
|
18675
|
+
* Capture a serializable tracing identity before a durable run's model calls.
|
|
18676
|
+
* Return undefined to preserve live per-model operations when the integration
|
|
18677
|
+
* cannot reconstruct a run span across processes. Integrations without this
|
|
18678
|
+
* hook receive the recorded lifecycle after completion.
|
|
18679
|
+
*/
|
|
18680
|
+
experimental_durable?: {
|
|
18681
|
+
captureContext: (event: InferTelemetryEvent<GenerateTextStartEvent>) => DurableTelemetryContext | undefined | PromiseLike<DurableTelemetryContext | undefined>;
|
|
18682
|
+
};
|
|
18480
18683
|
/**
|
|
18481
18684
|
* Called when an operation begins. Fired for text generation
|
|
18482
18685
|
* (generateText/streamText), object generation (generateObject/streamObject),
|
|
@@ -22992,5 +23195,5 @@ export declare function zodSchema<OBJECT>(zodSchema: $ZodType<OBJECT, any> | z3.
|
|
|
22992
23195
|
}): Schema<OBJECT>;
|
|
22993
23196
|
|
|
22994
23197
|
export { }
|
|
22995
|
-
export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, ParseResult as ParseResult, LazySchema as LazySchema, ZodSchema as ZodSchema, StandardSchema as StandardSchema, ValidationResult as ValidationResult, ProviderOptions as ProviderOptions, CustomPart as CustomPart, ReasoningPart as ReasoningPart, ReasoningFilePart as ReasoningFilePart, FileData as FileData, ProviderReference_2 as ProviderReference_2, ToolResultOutput as ToolResultOutput, SandboxReadFileOptions as SandboxReadFileOptions, SandboxReadBinaryFileOptions as SandboxReadBinaryFileOptions, SandboxReadTextFileOptions as SandboxReadTextFileOptions, SandboxWriteFileOptions as SandboxWriteFileOptions, SandboxWriteBinaryFileOptions as SandboxWriteBinaryFileOptions, SandboxWriteTextFileOptions as SandboxWriteTextFileOptions, SandboxSpawnOptionsWithStdin as SandboxSpawnOptionsWithStdin, WritableSandboxProcess as WritableSandboxProcess, SandboxSpawnOptionsWithoutStdin as SandboxSpawnOptionsWithoutStdin, SandboxSpawnOptions as SandboxSpawnOptions, SandboxRunOptions as SandboxRunOptions, ToolCallerDefinition as ToolCallerDefinition, FunctionTool as FunctionTool, ProviderDefinedTool as ProviderDefinedTool, ProviderExecutedTool as ProviderExecutedTool, ExecutableTool as ExecutableTool, DynamicTool as DynamicTool, DecisionModelV4Input as DecisionModelV4Input, SharedV4ProviderReference as SharedV4ProviderReference, TypeValidationContext as TypeValidationContext, LanguageModelV4Citation as LanguageModelV4Citation, EmbeddingModelV3 as EmbeddingModelV3, EmbeddingModelV2 as EmbeddingModelV2, EmbeddingModelV4Embedding as EmbeddingModelV4Embedding, EmbeddingModelV4Middleware as EmbeddingModelV4Middleware, ImageModelV3 as ImageModelV3, ImageModelV2 as ImageModelV2, ImageModelV2ProviderMetadata as ImageModelV2ProviderMetadata, ImageModelV4Middleware as ImageModelV4Middleware, GlobalProviderModelId as GlobalProviderModelId, LanguageModelV3 as LanguageModelV3, LanguageModelV2 as LanguageModelV2, SharedV4Warning as SharedV4Warning, LanguageModelV4Middleware as LanguageModelV4Middleware, RerankingModelV3 as RerankingModelV3, SpeechModelV3 as SpeechModelV3, SpeechModelV2 as SpeechModelV2, TranscriptionModelV3 as TranscriptionModelV3, TranscriptionModelV2 as TranscriptionModelV2, ImageModelV4Usage as ImageModelV4Usage, JSONValue_2 as JSONValue_2, Experimental_EvaluationModelV4 as Experimental_EvaluationModelV4, DecisionModelV4Result as DecisionModelV4Result, DeepPartialInternal as DeepPartialInternal, IncludedContext as IncludedContext, IncludedToolsContext as IncludedToolsContext, BaseToolCall as BaseToolCall, Source as Source, ValueOf as ValueOf, asUITool as asUITool, DataUIMessageChunk as DataUIMessageChunk, InferElementOutput as InferElementOutput, ConsumeStreamOptions as ConsumeStreamOptions, TextStreamTextStartPart as TextStreamTextStartPart, TextStreamTextEndPart as TextStreamTextEndPart, TextStreamReasoningStartPart as TextStreamReasoningStartPart, TextStreamReasoningEndPart as TextStreamReasoningEndPart, TextStreamCustomPart as TextStreamCustomPart, TextStreamToolInputStartPart as TextStreamToolInputStartPart, TextStreamToolInputEndPart as TextStreamToolInputEndPart, TextStreamToolInputDeltaPart as TextStreamToolInputDeltaPart, TextStreamSourcePart as TextStreamSourcePart, TextStreamToolOutputDeniedPart as TextStreamToolOutputDeniedPart, TextStreamStartStepPart as TextStreamStartStepPart, TextStreamFinishStepPart as TextStreamFinishStepPart, TextStreamStartPart as TextStreamStartPart, TextStreamFinishPart as TextStreamFinishPart, TextStreamAbortPart as TextStreamAbortPart, TextStreamErrorPart as TextStreamErrorPart, TextStreamRawPart as TextStreamRawPart, MaybePromiseLike as MaybePromiseLike, InferToolContext as InferToolContext, ToolCallerName as ToolCallerName, LanguageModelV4ToolCall as LanguageModelV4ToolCall, WidenedToolExecutionStartEvent as WidenedToolExecutionStartEvent, StaticToolExecutionStartEvent as StaticToolExecutionStartEvent, DynamicToolExecutionStartEvent as DynamicToolExecutionStartEvent, WidenedToolExecutionEndEvent as WidenedToolExecutionEndEvent, StaticToolExecutionEndEvent as StaticToolExecutionEndEvent, DynamicToolExecutionEndEvent as DynamicToolExecutionEndEvent, StreamTextOptions as StreamTextOptions, StreamTextSingleConsumerResult as StreamTextSingleConsumerResult, EnrichedStreamPart as EnrichedStreamPart, StandardizedPrompt as StandardizedPrompt, ResponseMessage as ResponseMessage, TranscriptionStartEventFor as TranscriptionStartEventFor, TranscriptionEndEventFor as TranscriptionEndEventFor, BivariantCallback as BivariantCallback, OperationStartEvent as OperationStartEvent, OperationEndEvent as OperationEndEvent, Arrayable as Arrayable, Context as Context, GenerateTextOptions as GenerateTextOptions, ToolsContextParameter as ToolsContextParameter, StreamTextOnAbortCallback as StreamTextOnAbortCallback, ToolLoopAgentCallExtensions as ToolLoopAgentCallExtensions, InferAgentTools as InferAgentTools, getOriginalFetch as getOriginalFetch, InferUIMessageTools as InferUIMessageTools, InferUIMessageToolCall as InferUIMessageToolCall, UIDataTypesToSchemas as UIDataTypesToSchemas, InferUIMessageData as InferUIMessageData, InferUIMessageMetadata as InferUIMessageMetadata, Resolvable as Resolvable, FetchFunction as FetchFunction, WebSocketConstructor as WebSocketConstructor, ValidateUIMessagesOptions as ValidateUIMessagesOptions, AgentUIMessageStreamOptions as AgentUIMessageStreamOptions, UIMessageStreamResponseInit as UIMessageStreamResponseInit, ActiveToolSubset as ActiveToolSubset, TextStreamTextDeltaPart as TextStreamTextDeltaPart, TextStreamReasoningDeltaPart as TextStreamReasoningDeltaPart, TextStreamFilePart as TextStreamFilePart, TextStreamReasoningFilePart as TextStreamReasoningFilePart, TextStreamToolApprovalRequestPart as TextStreamToolApprovalRequestPart, TextStreamToolApprovalResponsePart as TextStreamToolApprovalResponsePart, TextStreamToolCallPart as TextStreamToolCallPart, TextStreamToolResultPart as TextStreamToolResultPart, TextStreamToolErrorPart as TextStreamToolErrorPart, LanguageModelV4Prompt as LanguageModelV4Prompt, SharedV4Headers as SharedV4Headers, BatchV4 as BatchV4, BatchV4Error as BatchV4Error, BatchV4Status as BatchV4Status, GenerateImagePrompt as GenerateImagePrompt, BatchV4ModelIds as BatchV4ModelIds, InferBatchModelIds as InferBatchModelIds, BatchV4StartResult as BatchV4StartResult, BatchCallOptions as BatchCallOptions, ImageModelV4ProviderMetadata as ImageModelV4ProviderMetadata, Callback as Callback, EnforcedToolChoice as EnforcedToolChoice, LanguageModelV4Content as LanguageModelV4Content, RetryErrorReason as RetryErrorReason, DecisionModelV4CallOptions as DecisionModelV4CallOptions, Job as Job, StreamObjectOnErrorCallback as StreamObjectOnErrorCallback, SharedV4AudioFormat as SharedV4AudioFormat, SharedV4ProviderMetadata as SharedV4ProviderMetadata, SpeechModelV4StreamUsage as SpeechModelV4StreamUsage, VideoModelResponseMetadata as VideoModelResponseMetadata, VideoModelProviderMetadata as VideoModelProviderMetadata, VideoModelV4FrameType as VideoModelV4FrameType, GenerateVideoPollOptions as GenerateVideoPollOptions, GenerateVideoWebhookFactory as GenerateVideoWebhookFactory, VideoModelV4OperationStatusResult as VideoModelV4OperationStatusResult, EmbeddingModelV4CallOptions as EmbeddingModelV4CallOptions, LanguageModelV4CallOptions as LanguageModelV4CallOptions, JSONObject as JSONObject, RealtimeFactoryV4 as RealtimeFactoryV4, RealtimeFactoryV4GetTokenOptions as RealtimeFactoryV4GetTokenOptions, RealtimeFactoryV4GetTokenResult as RealtimeFactoryV4GetTokenResult, RealtimeModelV4 as RealtimeModelV4, RealtimeModelV4ClientEvent as RealtimeModelV4ClientEvent, RealtimeModelV4ServerEvent as RealtimeModelV4ServerEvent, RealtimeModelV4SessionConfig as RealtimeModelV4SessionConfig, RealtimeModelV4ToolDefinition as RealtimeModelV4ToolDefinition, InferToolSetContext as InferToolSetContext, ProviderDecisionModelIdentifier as ProviderDecisionModelIdentifier, ExtractLiteralUnion as ExtractLiteralUnion, ProviderVideoModelIdentifier as ProviderVideoModelIdentifier, ProviderV4 as ProviderV4, ProviderV3 as ProviderV3, VideoModel as VideoModel, FilesV4 as FilesV4, SkillsV4 as SkillsV4, ProviderV2 as ProviderV2, ExtractModelId as ExtractModelId, LanguageModelV4 as LanguageModelV4, EmbeddingModelV4 as EmbeddingModelV4, ImageModelV4 as ImageModelV4, TranscriptionModelV4 as TranscriptionModelV4, RerankingModelV4 as RerankingModelV4, SpeechModelV4 as SpeechModelV4, VideoModelV4 as VideoModelV4, DecisionModelV4 as DecisionModelV4, ToolSearchInput as ToolSearchInput, ToolSearchOutput as ToolSearchOutput, ToolSearchFunction as ToolSearchFunction, SpeechTranslationModelV4Usage as SpeechTranslationModelV4Usage, SpeechTranslationModelResponseMetadata as SpeechTranslationModelResponseMetadata, SpeechTranslationModel as SpeechTranslationModel, FilesV4UploadFileCallOptions as FilesV4UploadFileCallOptions, SkillsV4UploadSkillResult as SkillsV4UploadSkillResult, SkillsV4UploadSkillCallOptions as SkillsV4UploadSkillCallOptions, UploadSkillFile as UploadSkillFile };
|
|
23198
|
+
export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, ParseResult as ParseResult, LazySchema as LazySchema, ZodSchema as ZodSchema, StandardSchema as StandardSchema, ValidationResult as ValidationResult, ProviderOptions as ProviderOptions, CustomPart as CustomPart, ReasoningPart as ReasoningPart, ReasoningFilePart as ReasoningFilePart, FileData as FileData, ProviderReference_2 as ProviderReference_2, ToolResultOutput as ToolResultOutput, SandboxReadFileOptions as SandboxReadFileOptions, SandboxReadBinaryFileOptions as SandboxReadBinaryFileOptions, SandboxReadTextFileOptions as SandboxReadTextFileOptions, SandboxWriteFileOptions as SandboxWriteFileOptions, SandboxWriteBinaryFileOptions as SandboxWriteBinaryFileOptions, SandboxWriteTextFileOptions as SandboxWriteTextFileOptions, SandboxStatOptions as SandboxStatOptions, SandboxListDirectoryOptions as SandboxListDirectoryOptions, SandboxDeleteFileOptions as SandboxDeleteFileOptions, SandboxSpawnOptionsWithStdin as SandboxSpawnOptionsWithStdin, WritableSandboxProcess as WritableSandboxProcess, SandboxSpawnOptionsWithoutStdin as SandboxSpawnOptionsWithoutStdin, SandboxSpawnOptions as SandboxSpawnOptions, SandboxRunOptions as SandboxRunOptions, ToolCallerDefinition as ToolCallerDefinition, FunctionTool as FunctionTool, ProviderDefinedTool as ProviderDefinedTool, ProviderExecutedTool as ProviderExecutedTool, ExecutableTool as ExecutableTool, DynamicTool as DynamicTool, DecisionModelV4Input as DecisionModelV4Input, SharedV4ProviderReference as SharedV4ProviderReference, TypeValidationContext as TypeValidationContext, LanguageModelV4Citation as LanguageModelV4Citation, EmbeddingModelV3 as EmbeddingModelV3, EmbeddingModelV2 as EmbeddingModelV2, EmbeddingModelV4Embedding as EmbeddingModelV4Embedding, EmbeddingModelV4Middleware as EmbeddingModelV4Middleware, ImageModelV3 as ImageModelV3, ImageModelV2 as ImageModelV2, ImageModelV2ProviderMetadata as ImageModelV2ProviderMetadata, ImageModelV4Middleware as ImageModelV4Middleware, GlobalProviderModelId as GlobalProviderModelId, LanguageModelV3 as LanguageModelV3, LanguageModelV2 as LanguageModelV2, SharedV4Warning as SharedV4Warning, LanguageModelV4Middleware as LanguageModelV4Middleware, RerankingModelV3 as RerankingModelV3, SpeechModelV3 as SpeechModelV3, SpeechModelV2 as SpeechModelV2, TranscriptionModelV3 as TranscriptionModelV3, TranscriptionModelV2 as TranscriptionModelV2, ImageModelV4Usage as ImageModelV4Usage, JSONValue_2 as JSONValue_2, Experimental_EvaluationModelV4 as Experimental_EvaluationModelV4, DecisionModelV4Result as DecisionModelV4Result, DeepPartialInternal as DeepPartialInternal, IncludedContext as IncludedContext, IncludedToolsContext as IncludedToolsContext, BaseToolCall as BaseToolCall, Source as Source, ValueOf as ValueOf, asUITool as asUITool, DataUIMessageChunk as DataUIMessageChunk, InferElementOutput as InferElementOutput, ConsumeStreamOptions as ConsumeStreamOptions, TextStreamTextStartPart as TextStreamTextStartPart, TextStreamTextEndPart as TextStreamTextEndPart, TextStreamReasoningStartPart as TextStreamReasoningStartPart, TextStreamReasoningEndPart as TextStreamReasoningEndPart, TextStreamCustomPart as TextStreamCustomPart, TextStreamToolInputStartPart as TextStreamToolInputStartPart, TextStreamToolInputEndPart as TextStreamToolInputEndPart, TextStreamToolInputDeltaPart as TextStreamToolInputDeltaPart, TextStreamSourcePart as TextStreamSourcePart, TextStreamToolOutputDeniedPart as TextStreamToolOutputDeniedPart, TextStreamStartStepPart as TextStreamStartStepPart, TextStreamFinishStepPart as TextStreamFinishStepPart, TextStreamStartPart as TextStreamStartPart, TextStreamFinishPart as TextStreamFinishPart, TextStreamAbortPart as TextStreamAbortPart, TextStreamErrorPart as TextStreamErrorPart, TextStreamRawPart as TextStreamRawPart, MaybePromiseLike as MaybePromiseLike, InferToolContext as InferToolContext, ToolCallerName as ToolCallerName, LanguageModelV4ToolCall as LanguageModelV4ToolCall, WidenedToolExecutionStartEvent as WidenedToolExecutionStartEvent, StaticToolExecutionStartEvent as StaticToolExecutionStartEvent, DynamicToolExecutionStartEvent as DynamicToolExecutionStartEvent, WidenedToolExecutionEndEvent as WidenedToolExecutionEndEvent, StaticToolExecutionEndEvent as StaticToolExecutionEndEvent, DynamicToolExecutionEndEvent as DynamicToolExecutionEndEvent, StreamTextOptions as StreamTextOptions, StreamTextSingleConsumerResult as StreamTextSingleConsumerResult, EnrichedStreamPart as EnrichedStreamPart, StandardizedPrompt as StandardizedPrompt, ResponseMessage as ResponseMessage, TranscriptionStartEventFor as TranscriptionStartEventFor, TranscriptionEndEventFor as TranscriptionEndEventFor, BivariantCallback as BivariantCallback, OperationStartEvent as OperationStartEvent, OperationEndEvent as OperationEndEvent, Arrayable as Arrayable, Context as Context, GenerateTextOptions as GenerateTextOptions, ToolsContextParameter as ToolsContextParameter, StreamTextOnAbortCallback as StreamTextOnAbortCallback, ToolLoopAgentCallExtensions as ToolLoopAgentCallExtensions, InferAgentTools as InferAgentTools, getOriginalFetch as getOriginalFetch, InferUIMessageTools as InferUIMessageTools, InferUIMessageToolCall as InferUIMessageToolCall, UIDataTypesToSchemas as UIDataTypesToSchemas, InferUIMessageData as InferUIMessageData, InferUIMessageMetadata as InferUIMessageMetadata, Resolvable as Resolvable, FetchFunction as FetchFunction, WebSocketConstructor as WebSocketConstructor, ValidateUIMessagesOptions as ValidateUIMessagesOptions, AgentUIMessageStreamOptions as AgentUIMessageStreamOptions, UIMessageStreamResponseInit as UIMessageStreamResponseInit, ActiveToolSubset as ActiveToolSubset, TextStreamTextDeltaPart as TextStreamTextDeltaPart, TextStreamReasoningDeltaPart as TextStreamReasoningDeltaPart, TextStreamFilePart as TextStreamFilePart, TextStreamReasoningFilePart as TextStreamReasoningFilePart, TextStreamToolApprovalRequestPart as TextStreamToolApprovalRequestPart, TextStreamToolApprovalResponsePart as TextStreamToolApprovalResponsePart, TextStreamToolCallPart as TextStreamToolCallPart, TextStreamToolResultPart as TextStreamToolResultPart, TextStreamToolErrorPart as TextStreamToolErrorPart, LanguageModelV4Prompt as LanguageModelV4Prompt, SharedV4Headers as SharedV4Headers, BatchV4 as BatchV4, BatchV4Error as BatchV4Error, BatchV4Status as BatchV4Status, GenerateImagePrompt as GenerateImagePrompt, BatchV4ModelIds as BatchV4ModelIds, InferBatchModelIds as InferBatchModelIds, BatchV4StartResult as BatchV4StartResult, BatchCallOptions as BatchCallOptions, ImageModelV4ProviderMetadata as ImageModelV4ProviderMetadata, Callback as Callback, EnforcedToolChoice as EnforcedToolChoice, LanguageModelV4Content as LanguageModelV4Content, RetryErrorReason as RetryErrorReason, DecisionModelV4CallOptions as DecisionModelV4CallOptions, Job as Job, StreamObjectOnErrorCallback as StreamObjectOnErrorCallback, SharedV4AudioFormat as SharedV4AudioFormat, SharedV4ProviderMetadata as SharedV4ProviderMetadata, SpeechModelV4StreamUsage as SpeechModelV4StreamUsage, VideoModelResponseMetadata as VideoModelResponseMetadata, VideoModelProviderMetadata as VideoModelProviderMetadata, VideoModelV4FrameType as VideoModelV4FrameType, GenerateVideoPollOptions as GenerateVideoPollOptions, GenerateVideoWebhookFactory as GenerateVideoWebhookFactory, VideoModelV4OperationStatusResult as VideoModelV4OperationStatusResult, EmbeddingModelV4CallOptions as EmbeddingModelV4CallOptions, LanguageModelV4CallOptions as LanguageModelV4CallOptions, JSONObject as JSONObject, RealtimeFactoryV4 as RealtimeFactoryV4, RealtimeFactoryV4GetTokenOptions as RealtimeFactoryV4GetTokenOptions, RealtimeFactoryV4GetTokenResult as RealtimeFactoryV4GetTokenResult, RealtimeModelV4 as RealtimeModelV4, RealtimeModelV4ClientEvent as RealtimeModelV4ClientEvent, RealtimeModelV4ServerEvent as RealtimeModelV4ServerEvent, RealtimeModelV4SessionConfig as RealtimeModelV4SessionConfig, RealtimeModelV4ToolDefinition as RealtimeModelV4ToolDefinition, InferToolSetContext as InferToolSetContext, ProviderDecisionModelIdentifier as ProviderDecisionModelIdentifier, ExtractLiteralUnion as ExtractLiteralUnion, ProviderVideoModelIdentifier as ProviderVideoModelIdentifier, ProviderV4 as ProviderV4, ProviderV3 as ProviderV3, VideoModel as VideoModel, FilesV4 as FilesV4, SkillsV4 as SkillsV4, ProviderV2 as ProviderV2, ExtractModelId as ExtractModelId, LanguageModelV4 as LanguageModelV4, EmbeddingModelV4 as EmbeddingModelV4, ImageModelV4 as ImageModelV4, TranscriptionModelV4 as TranscriptionModelV4, RerankingModelV4 as RerankingModelV4, SpeechModelV4 as SpeechModelV4, VideoModelV4 as VideoModelV4, DecisionModelV4 as DecisionModelV4, ToolSearchInput as ToolSearchInput, ToolSearchOutput as ToolSearchOutput, ToolSearchFunction as ToolSearchFunction, SpeechTranslationModelV4Usage as SpeechTranslationModelV4Usage, SpeechTranslationModelResponseMetadata as SpeechTranslationModelResponseMetadata, SpeechTranslationModel as SpeechTranslationModel, FilesV4UploadFileCallOptions as FilesV4UploadFileCallOptions, SkillsV4UploadSkillResult as SkillsV4UploadSkillResult, SkillsV4UploadSkillCallOptions as SkillsV4UploadSkillCallOptions, UploadSkillFile as UploadSkillFile };
|
|
22996
23199
|
export { schemaSymbol, symbol$1, symbol$10, symbol$10_2, symbol$11, symbol$12, symbol$12_2, symbol$13, symbol$13_2, symbol$14, symbol$14_2, symbol$15, symbol$15_2, symbol$16, symbol$16_2, symbol$17, symbol$18, symbol$19, symbol$1_2, symbol$1_3, symbol$2, symbol$20, symbol$21, symbol$22, symbol$23, symbol$2_2, symbol$3, symbol$3_2, symbol$4, symbol$4_2, symbol$5, symbol$5_2, symbol$6, symbol$6_2, symbol$7, symbol$7_2, symbol$8, symbol$8_2, symbol$9, symbol$9_2, symbol, symbol_2 };
|