ai 5.0.0-alpha.13 → 5.0.0-alpha.14
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 +15 -0
- package/dist/index.d.mts +81 -68
- package/dist/index.d.ts +81 -68
- package/dist/index.js +120 -116
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +119 -115
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +33 -20
- package/dist/internal/index.d.ts +33 -20
- package/dist/internal/index.js +14 -7
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +14 -7
- package/dist/internal/index.mjs.map +1 -1
- package/dist/mcp-stdio/index.d.mts +3 -3
- package/dist/mcp-stdio/index.d.ts +3 -3
- package/dist/mcp-stdio/index.js.map +1 -1
- package/dist/mcp-stdio/index.mjs.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# ai
|
2
2
|
|
3
|
+
## 5.0.0-alpha.14
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- 63f9e9b: chore (provider,ai): tools have input/output instead of args,result
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- Updated dependencies [b5da06a]
|
12
|
+
- Updated dependencies [63f9e9b]
|
13
|
+
- Updated dependencies [2e13791]
|
14
|
+
- @ai-sdk/provider@2.0.0-alpha.14
|
15
|
+
- @ai-sdk/gateway@1.0.0-alpha.14
|
16
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.14
|
17
|
+
|
3
18
|
## 5.0.0-alpha.13
|
4
19
|
|
5
20
|
### Major Changes
|
package/dist/index.d.mts
CHANGED
@@ -144,7 +144,7 @@ interface ToolCallPart {
|
|
144
144
|
/**
|
145
145
|
Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
|
146
146
|
*/
|
147
|
-
|
147
|
+
input: unknown;
|
148
148
|
/**
|
149
149
|
Additional provider-specific metadata. They are passed through
|
150
150
|
to the provider from the AI SDK and enable provider-specific
|
@@ -168,7 +168,7 @@ interface ToolResultPart {
|
|
168
168
|
/**
|
169
169
|
Result of the tool call. This is a JSON-serializable object.
|
170
170
|
*/
|
171
|
-
|
171
|
+
output: unknown;
|
172
172
|
/**
|
173
173
|
Multi-part content of the tool result. Only for tools that support multipart results.
|
174
174
|
*/
|
@@ -651,21 +651,21 @@ declare const JSONRPCResponseSchema: z.ZodObject<{
|
|
651
651
|
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
652
652
|
}, z.ZodTypeAny, "passthrough">>;
|
653
653
|
}, "strict", z.ZodTypeAny, {
|
654
|
+
id: string | number;
|
655
|
+
jsonrpc: "2.0";
|
654
656
|
result: {
|
655
657
|
_meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
656
658
|
} & {
|
657
659
|
[k: string]: unknown;
|
658
660
|
};
|
661
|
+
}, {
|
659
662
|
id: string | number;
|
660
663
|
jsonrpc: "2.0";
|
661
|
-
}, {
|
662
664
|
result: {
|
663
665
|
_meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
664
666
|
} & {
|
665
667
|
[k: string]: unknown;
|
666
668
|
};
|
667
|
-
id: string | number;
|
668
|
-
jsonrpc: "2.0";
|
669
669
|
}>;
|
670
670
|
type JSONRPCResponse = z.infer<typeof JSONRPCResponseSchema>;
|
671
671
|
declare const JSONRPCErrorSchema: z.ZodObject<{
|
@@ -787,21 +787,21 @@ declare const JSONRPCMessageSchema: z.ZodUnion<[z.ZodObject<{
|
|
787
787
|
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
788
788
|
}, z.ZodTypeAny, "passthrough">>;
|
789
789
|
}, "strict", z.ZodTypeAny, {
|
790
|
+
id: string | number;
|
791
|
+
jsonrpc: "2.0";
|
790
792
|
result: {
|
791
793
|
_meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
792
794
|
} & {
|
793
795
|
[k: string]: unknown;
|
794
796
|
};
|
797
|
+
}, {
|
795
798
|
id: string | number;
|
796
799
|
jsonrpc: "2.0";
|
797
|
-
}, {
|
798
800
|
result: {
|
799
801
|
_meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
800
802
|
} & {
|
801
803
|
[k: string]: unknown;
|
802
804
|
};
|
803
|
-
id: string | number;
|
804
|
-
jsonrpc: "2.0";
|
805
805
|
}>, z.ZodObject<{
|
806
806
|
jsonrpc: z.ZodLiteral<"2.0">;
|
807
807
|
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
@@ -880,7 +880,7 @@ type MCPTransportConfig = {
|
|
880
880
|
headers?: Record<string, string>;
|
881
881
|
};
|
882
882
|
|
883
|
-
type
|
883
|
+
type ToolInputSchema<T = JSONObject> = z4.$ZodType<T> | z3.Schema<T> | Schema<T>;
|
884
884
|
interface ToolCallOptions {
|
885
885
|
/**
|
886
886
|
* The ID of the tool call. You can use it e.g. when sending tool-call related information with stream data.
|
@@ -903,21 +903,21 @@ This enables the language model to generate the input.
|
|
903
903
|
|
904
904
|
The tool can also contain an optional execute function for the actual execution function of the tool.
|
905
905
|
*/
|
906
|
-
type Tool<
|
906
|
+
type Tool<INPUT extends JSONValue$1 | unknown | never = any, OUTPUT = any> = {
|
907
907
|
/**
|
908
908
|
An optional description of what the tool does.
|
909
909
|
Will be used by the language model to decide whether to use the tool.
|
910
|
-
Not used for provider-defined tools.
|
910
|
+
Not used for provider-defined-client tools.
|
911
911
|
*/
|
912
912
|
description?: string;
|
913
|
-
} & NeverOptional<
|
913
|
+
} & NeverOptional<INPUT, {
|
914
914
|
/**
|
915
915
|
The schema of the input that the tool expects. The language model will use this to generate the input.
|
916
916
|
It is also used to validate the output of the language model.
|
917
917
|
Use descriptions to make the input understandable for the language model.
|
918
918
|
*/
|
919
|
-
|
920
|
-
}> & NeverOptional<
|
919
|
+
inputSchema: ToolInputSchema<INPUT>;
|
920
|
+
}> & NeverOptional<OUTPUT, {
|
921
921
|
/**
|
922
922
|
An async function that is called with the arguments from the tool call and produces a result.
|
923
923
|
If not provided, the tool will not be executed automatically.
|
@@ -925,29 +925,29 @@ If not provided, the tool will not be executed automatically.
|
|
925
925
|
@args is the input of the tool call.
|
926
926
|
@options.abortSignal is a signal that can be used to abort the tool call.
|
927
927
|
*/
|
928
|
-
execute: (
|
928
|
+
execute: (input: [INPUT] extends [never] ? undefined : INPUT, options: ToolCallOptions) => PromiseLike<OUTPUT>;
|
929
929
|
/**
|
930
930
|
Optional conversion function that maps the tool result to multi-part tool content for LLMs.
|
931
931
|
*/
|
932
|
-
experimental_toToolResultContent?: (
|
932
|
+
experimental_toToolResultContent?: (output: OUTPUT) => ToolResultContent;
|
933
933
|
/**
|
934
934
|
* Optional function that is called when the argument streaming starts.
|
935
935
|
* Only called when the tool is used in a streaming context.
|
936
936
|
*/
|
937
|
-
|
937
|
+
onInputStart?: (options: ToolCallOptions) => void | PromiseLike<void>;
|
938
938
|
/**
|
939
939
|
* Optional function that is called when an argument streaming delta is available.
|
940
940
|
* Only called when the tool is used in a streaming context.
|
941
941
|
*/
|
942
|
-
|
943
|
-
|
942
|
+
onInputDelta?: (options: {
|
943
|
+
inputTextDelta: string;
|
944
944
|
} & ToolCallOptions) => void | PromiseLike<void>;
|
945
945
|
/**
|
946
946
|
* Optional function that is called when a tool call can be started,
|
947
947
|
* even if the execute function is not provided.
|
948
948
|
*/
|
949
|
-
|
950
|
-
|
949
|
+
onInputAvailable?: (options: {
|
950
|
+
input: [INPUT] extends [never] ? undefined : INPUT;
|
951
951
|
} & ToolCallOptions) => void | PromiseLike<void>;
|
952
952
|
}> & ({
|
953
953
|
/**
|
@@ -956,9 +956,22 @@ Function tool.
|
|
956
956
|
type?: undefined | 'function';
|
957
957
|
} | {
|
958
958
|
/**
|
959
|
-
Provider-defined tool.
|
959
|
+
Provider-defined-client tool.
|
960
960
|
*/
|
961
|
-
type: 'provider-defined';
|
961
|
+
type: 'provider-defined-client';
|
962
|
+
/**
|
963
|
+
The ID of the tool. Should follow the format `<provider-name>.<tool-name>`.
|
964
|
+
*/
|
965
|
+
id: `${string}.${string}`;
|
966
|
+
/**
|
967
|
+
The arguments for configuring the tool. Must match the expected arguments defined by the provider for this tool.
|
968
|
+
*/
|
969
|
+
args: Record<string, unknown>;
|
970
|
+
} | {
|
971
|
+
/**
|
972
|
+
Provider-defined-server tool.
|
973
|
+
*/
|
974
|
+
type: 'provider-defined-server';
|
962
975
|
/**
|
963
976
|
The ID of the tool. Should follow the format `<provider-name>.<tool-name>`.
|
964
977
|
*/
|
@@ -971,21 +984,21 @@ The arguments for configuring the tool. Must match the expected arguments define
|
|
971
984
|
/**
|
972
985
|
Helper function for inferring the execute args of a tool.
|
973
986
|
*/
|
974
|
-
declare function tool<
|
975
|
-
declare function tool<
|
976
|
-
declare function tool<
|
987
|
+
declare function tool<INPUT, OUTPUT>(tool: Tool<INPUT, OUTPUT>): Tool<INPUT, OUTPUT>;
|
988
|
+
declare function tool<INPUT>(tool: Tool<INPUT, never>): Tool<INPUT, never>;
|
989
|
+
declare function tool<OUTPUT>(tool: Tool<never, OUTPUT>): Tool<never, OUTPUT>;
|
977
990
|
declare function tool(tool: Tool<never, never>): Tool<never, never>;
|
978
|
-
type MappedTool<T extends Tool | JSONObject,
|
991
|
+
type MappedTool<T extends Tool | JSONObject, OUTPUT extends any> = T extends Tool<infer INPUT> ? Tool<INPUT, OUTPUT> : T extends JSONObject ? Tool<T, OUTPUT> : never;
|
979
992
|
|
980
993
|
type ToolSchemas = Record<string, {
|
981
|
-
|
994
|
+
inputSchema: ToolInputSchema<JSONObject | unknown>;
|
982
995
|
}> | 'automatic' | undefined;
|
983
996
|
type McpToolSet<TOOL_SCHEMAS extends ToolSchemas = 'automatic'> = TOOL_SCHEMAS extends Record<string, {
|
984
|
-
|
997
|
+
inputSchema: ToolInputSchema<unknown>;
|
985
998
|
}> ? {
|
986
999
|
[K in keyof TOOL_SCHEMAS]: MappedTool<TOOL_SCHEMAS[K], CallToolResult> & Required<Pick<MappedTool<TOOL_SCHEMAS[K], CallToolResult>, 'execute'>>;
|
987
1000
|
} : McpToolSet<Record<string, {
|
988
|
-
|
1001
|
+
inputSchema: ToolInputSchema<unknown>;
|
989
1002
|
}>>;
|
990
1003
|
declare const CallToolResultSchema: z.ZodUnion<[z.ZodObject<{
|
991
1004
|
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
@@ -1755,14 +1768,14 @@ declare class MCPClient {
|
|
1755
1768
|
private onResponse;
|
1756
1769
|
}
|
1757
1770
|
|
1758
|
-
type ToolSet = Record<string, (Tool<never, never> | Tool<any, any> | Tool<any, never> | Tool<never, any>) & Pick<Tool<any, any>, 'execute' | '
|
1771
|
+
type ToolSet = Record<string, (Tool<never, never> | Tool<any, any> | Tool<any, never> | Tool<never, any>) & Pick<Tool<any, any>, 'execute' | 'onInputAvailable' | 'onInputStart' | 'onInputDelta'>>;
|
1759
1772
|
|
1760
1773
|
type ToolCallUnion<TOOLS extends ToolSet> = ValueOf<{
|
1761
1774
|
[NAME in keyof TOOLS]: {
|
1762
1775
|
type: 'tool-call';
|
1763
1776
|
toolCallId: string;
|
1764
1777
|
toolName: NAME & string;
|
1765
|
-
|
1778
|
+
input: TOOLS[NAME] extends Tool<infer PARAMETERS> ? PARAMETERS : never;
|
1766
1779
|
};
|
1767
1780
|
}>;
|
1768
1781
|
type ToolCallArray<TOOLS extends ToolSet> = Array<ToolCallUnion<TOOLS>>;
|
@@ -1775,8 +1788,8 @@ type ToToolResultObject<TOOLS extends ToolSet> = ValueOf<{
|
|
1775
1788
|
type: 'tool-result';
|
1776
1789
|
toolCallId: string;
|
1777
1790
|
toolName: NAME & string;
|
1778
|
-
|
1779
|
-
|
1791
|
+
input: TOOLS[NAME] extends Tool<infer P> ? P : never;
|
1792
|
+
output: Awaited<ReturnType<Exclude<TOOLS[NAME]['execute'], undefined>>>;
|
1780
1793
|
};
|
1781
1794
|
}>;
|
1782
1795
|
type ToolResultUnion<TOOLS extends ToolSet> = ToToolResultObject<ToToolsWithDefinedExecute<TOOLS>>;
|
@@ -1801,17 +1814,17 @@ type ContentPart<TOOLS extends ToolSet> = {
|
|
1801
1814
|
} & ToolResultUnion<TOOLS>);
|
1802
1815
|
|
1803
1816
|
declare const symbol$e: unique symbol;
|
1804
|
-
declare class
|
1817
|
+
declare class InvalidToolInputError extends AISDKError {
|
1805
1818
|
private readonly [symbol$e];
|
1806
1819
|
readonly toolName: string;
|
1807
|
-
readonly
|
1808
|
-
constructor({
|
1820
|
+
readonly toolInput: string;
|
1821
|
+
constructor({ toolInput, toolName, cause, message, }: {
|
1809
1822
|
message?: string;
|
1810
|
-
|
1823
|
+
toolInput: string;
|
1811
1824
|
toolName: string;
|
1812
1825
|
cause: unknown;
|
1813
1826
|
});
|
1814
|
-
static isInstance(error: unknown): error is
|
1827
|
+
static isInstance(error: unknown): error is InvalidToolInputError;
|
1815
1828
|
}
|
1816
1829
|
|
1817
1830
|
declare const symbol$d: unique symbol;
|
@@ -1933,7 +1946,7 @@ declare const GLOBAL_DEFAULT_PROVIDER: unique symbol;
|
|
1933
1946
|
* @param options.messages - The messages in the current generation step.
|
1934
1947
|
* @param options.toolCall - The tool call that failed to parse.
|
1935
1948
|
* @param options.tools - The tools that are available.
|
1936
|
-
* @param options.
|
1949
|
+
* @param options.inputSchema - A function that returns the JSON Schema for a tool.
|
1937
1950
|
* @param options.error - The error that occurred while parsing the tool call.
|
1938
1951
|
*/
|
1939
1952
|
type ToolCallRepairFunction<TOOLS extends ToolSet> = (options: {
|
@@ -1941,10 +1954,10 @@ type ToolCallRepairFunction<TOOLS extends ToolSet> = (options: {
|
|
1941
1954
|
messages: ModelMessage[];
|
1942
1955
|
toolCall: LanguageModelV2ToolCall;
|
1943
1956
|
tools: TOOLS;
|
1944
|
-
|
1957
|
+
inputSchema: (options: {
|
1945
1958
|
toolName: string;
|
1946
1959
|
}) => JSONSchema7;
|
1947
|
-
error: NoSuchToolError |
|
1960
|
+
error: NoSuchToolError | InvalidToolInputError;
|
1948
1961
|
}) => Promise<LanguageModelV2ToolCall | null>;
|
1949
1962
|
|
1950
1963
|
type SingleRequestTextStreamPart<TOOLS extends ToolSet> = ContentPart<TOOLS> | {
|
@@ -1960,7 +1973,7 @@ type SingleRequestTextStreamPart<TOOLS extends ToolSet> = ContentPart<TOOLS> | {
|
|
1960
1973
|
type: 'tool-call-delta';
|
1961
1974
|
toolCallId: string;
|
1962
1975
|
toolName: string;
|
1963
|
-
|
1976
|
+
inputTextDelta: string;
|
1964
1977
|
} | {
|
1965
1978
|
type: 'response-metadata';
|
1966
1979
|
id?: string;
|
@@ -2081,11 +2094,11 @@ declare class NoOutputSpecifiedError extends AISDKError {
|
|
2081
2094
|
declare const symbol$7: unique symbol;
|
2082
2095
|
declare class ToolCallRepairError extends AISDKError {
|
2083
2096
|
private readonly [symbol$7];
|
2084
|
-
readonly originalError: NoSuchToolError |
|
2097
|
+
readonly originalError: NoSuchToolError | InvalidToolInputError;
|
2085
2098
|
constructor({ cause, originalError, message, }: {
|
2086
2099
|
message?: string;
|
2087
2100
|
cause: unknown;
|
2088
|
-
originalError: NoSuchToolError |
|
2101
|
+
originalError: NoSuchToolError | InvalidToolInputError;
|
2089
2102
|
});
|
2090
2103
|
static isInstance(error: unknown): error is ToolCallRepairError;
|
2091
2104
|
}
|
@@ -2094,11 +2107,11 @@ declare const symbol$6: unique symbol;
|
|
2094
2107
|
declare class ToolExecutionError extends AISDKError {
|
2095
2108
|
private readonly [symbol$6];
|
2096
2109
|
readonly toolName: string;
|
2097
|
-
readonly
|
2110
|
+
readonly toolInput: JSONValue$1 | unknown;
|
2098
2111
|
readonly toolCallId: string;
|
2099
|
-
constructor({
|
2112
|
+
constructor({ toolInput, toolName, toolCallId, cause, message, }: {
|
2100
2113
|
message?: string;
|
2101
|
-
|
2114
|
+
toolInput: JSONValue$1 | unknown;
|
2102
2115
|
toolName: string;
|
2103
2116
|
toolCallId: string;
|
2104
2117
|
cause: unknown;
|
@@ -2151,8 +2164,8 @@ The data types that can be used in the UI message for the UI message data parts.
|
|
2151
2164
|
*/
|
2152
2165
|
type UIDataTypes = Record<string, unknown>;
|
2153
2166
|
type UITools = Record<string, {
|
2154
|
-
|
2155
|
-
|
2167
|
+
input: unknown;
|
2168
|
+
output: unknown | undefined;
|
2156
2169
|
}>;
|
2157
2170
|
/**
|
2158
2171
|
AI SDK UI Messages. They are used in the client and to communicate between the frontend and the API routes.
|
@@ -2267,15 +2280,15 @@ type ToolUIPart<TOOLS extends UITools = UITools> = ValueOf<{
|
|
2267
2280
|
type: `tool-${NAME}`;
|
2268
2281
|
toolCallId: string;
|
2269
2282
|
} & ({
|
2270
|
-
state: '
|
2271
|
-
|
2283
|
+
state: 'input-streaming';
|
2284
|
+
input: DeepPartial<TOOLS[NAME]['input']>;
|
2272
2285
|
} | {
|
2273
|
-
state: '
|
2274
|
-
|
2286
|
+
state: 'input-available';
|
2287
|
+
input: TOOLS[NAME]['input'];
|
2275
2288
|
} | {
|
2276
|
-
state: '
|
2277
|
-
|
2278
|
-
|
2289
|
+
state: 'output-available';
|
2290
|
+
input: TOOLS[NAME]['input'];
|
2291
|
+
output: TOOLS[NAME]['output'];
|
2279
2292
|
});
|
2280
2293
|
}>;
|
2281
2294
|
declare function isToolUIPart<TOOLS extends UITools>(part: UIMessagePart<UIDataTypes, TOOLS>): part is ToolUIPart<TOOLS>;
|
@@ -2365,23 +2378,23 @@ type UIMessageStreamPart<METADATA = unknown, DATA_TYPES extends UIDataTypes = UI
|
|
2365
2378
|
type: 'error';
|
2366
2379
|
errorText: string;
|
2367
2380
|
} | {
|
2368
|
-
type: 'tool-
|
2381
|
+
type: 'tool-input-available';
|
2369
2382
|
toolCallId: string;
|
2370
2383
|
toolName: string;
|
2371
|
-
|
2384
|
+
input: unknown;
|
2372
2385
|
} | {
|
2373
|
-
type: 'tool-
|
2386
|
+
type: 'tool-output-available';
|
2374
2387
|
toolCallId: string;
|
2375
|
-
|
2388
|
+
output: unknown;
|
2376
2389
|
providerMetadata?: ProviderMetadata;
|
2377
2390
|
} | {
|
2378
|
-
type: 'tool-
|
2391
|
+
type: 'tool-input-start';
|
2379
2392
|
toolCallId: string;
|
2380
2393
|
toolName: string;
|
2381
2394
|
} | {
|
2382
|
-
type: 'tool-
|
2395
|
+
type: 'tool-input-delta';
|
2383
2396
|
toolCallId: string;
|
2384
|
-
|
2397
|
+
inputTextDelta: string;
|
2385
2398
|
} | {
|
2386
2399
|
type: 'reasoning';
|
2387
2400
|
text: string;
|
@@ -2621,9 +2634,9 @@ declare abstract class AbstractChat<UI_MESSAGE extends UIMessage> {
|
|
2621
2634
|
* Resume an ongoing chat generation stream. This does not resume an aborted generation.
|
2622
2635
|
*/
|
2623
2636
|
experimental_resume: (options?: ChatRequestOptions) => Promise<void>;
|
2624
|
-
addToolResult: ({ toolCallId,
|
2637
|
+
addToolResult: ({ toolCallId, output, }: {
|
2625
2638
|
toolCallId: string;
|
2626
|
-
|
2639
|
+
output: unknown;
|
2627
2640
|
}) => Promise<void>;
|
2628
2641
|
/**
|
2629
2642
|
* Abort the current request immediately, keep the generated tokens if any.
|
@@ -3685,7 +3698,7 @@ type TextStreamPart<TOOLS extends ToolSet> = ContentPart<TOOLS> | {
|
|
3685
3698
|
type: 'tool-call-delta';
|
3686
3699
|
toolCallId: string;
|
3687
3700
|
toolName: string;
|
3688
|
-
|
3701
|
+
inputTextDelta: string;
|
3689
3702
|
} | {
|
3690
3703
|
type: 'start-step';
|
3691
3704
|
request: LanguageModelRequestMetadata;
|
@@ -4829,4 +4842,4 @@ declare function transcribe({ model, audio, providerOptions, maxRetries: maxRetr
|
|
4829
4842
|
headers?: Record<string, string>;
|
4830
4843
|
}): Promise<TranscriptionResult>;
|
4831
4844
|
|
4832
|
-
export { AbstractChat, AssistantContent, AssistantModelMessage, CallSettings, CallWarning, ChatInit, ChatRequestOptions, ChatState, ChatStatus, ChatTransport, ChunkDetector, CompletionRequestOptions, CoreAssistantMessage, CoreMessage, CoreSystemMessage, CoreToolMessage, CoreUserMessage, CreateUIMessage, DataContent, DataUIPart, DeepPartial, DefaultChatTransport, DownloadError, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelUsage, GenerateImageResult as Experimental_GenerateImageResult, GeneratedFile as Experimental_GeneratedImage, SpeechResult as Experimental_SpeechResult, TranscriptionResult as Experimental_TranscriptionResult, FilePart, FileUIPart, FinishReason, GLOBAL_DEFAULT_PROVIDER, GenerateObjectResult, GenerateTextOnStepFinishCallback, GenerateTextResult, GeneratedAudioFile, GeneratedFile, ImageModel, ImageGenerationWarning as ImageModelCallWarning, ImageModelProviderMetadata, ImageModelResponseMetadata, ImagePart, InferUIDataParts, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidStreamPartError,
|
4845
|
+
export { AbstractChat, AssistantContent, AssistantModelMessage, CallSettings, CallWarning, ChatInit, ChatRequestOptions, ChatState, ChatStatus, ChatTransport, ChunkDetector, CompletionRequestOptions, CoreAssistantMessage, CoreMessage, CoreSystemMessage, CoreToolMessage, CoreUserMessage, CreateUIMessage, DataContent, DataUIPart, DeepPartial, DefaultChatTransport, DownloadError, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelUsage, GenerateImageResult as Experimental_GenerateImageResult, GeneratedFile as Experimental_GeneratedImage, SpeechResult as Experimental_SpeechResult, TranscriptionResult as Experimental_TranscriptionResult, FilePart, FileUIPart, FinishReason, GLOBAL_DEFAULT_PROVIDER, GenerateObjectResult, GenerateTextOnStepFinishCallback, GenerateTextResult, GeneratedAudioFile, GeneratedFile, ImageModel, ImageGenerationWarning as ImageModelCallWarning, ImageModelProviderMetadata, ImageModelResponseMetadata, ImagePart, InferUIDataParts, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidStreamPartError, InvalidToolInputError, JSONRPCError, JSONRPCMessage, JSONRPCNotification, JSONRPCRequest, JSONRPCResponse, JSONValue, JsonToSseTransformStream, LanguageModel, LanguageModelRequestMetadata, LanguageModelResponseMetadata, LanguageModelUsage, MCPClientError, MCPTransport, MessageConversionError, ModelMessage, NoImageGeneratedError, NoObjectGeneratedError, NoOutputSpecifiedError, NoSuchProviderError, NoSuchToolError, ObjectStreamPart, output as Output, PrepareStepFunction, PrepareStepResult, Prompt, Provider, ProviderMetadata, ProviderOptions, ProviderRegistryProvider, ReasoningUIPart, RepairTextFunction, RetryError, SerialJobExecutor, SourceUrlUIPart, SpeechModel, SpeechModelResponseMetadata, SpeechWarning, StepResult, StepStartUIPart, StopCondition, StreamObjectOnFinishCallback, StreamObjectResult, StreamTextOnChunkCallback, StreamTextOnErrorCallback, StreamTextOnFinishCallback, StreamTextOnStepFinishCallback, StreamTextResult, StreamTextTransform, SystemModelMessage, TelemetrySettings, TextPart, TextStreamChatTransport, TextStreamPart, TextUIPart, Tool, ToolCallOptions, ToolCallPart, ToolCallRepairError, ToolCallRepairFunction, ToolCallUnion, ToolChoice, ToolContent, ToolExecutionError, ToolModelMessage, ToolResultPart, ToolResultUnion, ToolSet, ToolUIPart, TranscriptionModel, TranscriptionModelResponseMetadata, TranscriptionWarning, UIDataPartSchemas, UIDataTypes, UIMessage, UIMessagePart, UIMessageStreamOptions, UIMessageStreamPart, UIMessageStreamWriter, UseCompletionOptions, UserContent, UserModelMessage, assistantModelMessageSchema, callCompletionApi, convertFileListToFileUIParts, convertToCoreMessages, convertToModelMessages, coreAssistantMessageSchema, coreMessageSchema, coreSystemMessageSchema, coreToolMessageSchema, coreUserMessageSchema, cosineSimilarity, createProviderRegistry, createTextStreamResponse, createUIMessageStream, createUIMessageStreamResponse, customProvider, defaultSettingsMiddleware, embed, embedMany, createMCPClient as experimental_createMCPClient, experimental_createProviderRegistry, experimental_customProvider, generateImage as experimental_generateImage, generateSpeech as experimental_generateSpeech, transcribe as experimental_transcribe, extractReasoningMiddleware, generateObject, generateText, getTextFromDataUrl, getToolName, hasToolCall, isDeepEqualData, isToolUIPart, modelMessageSchema, parsePartialJson, pipeTextStreamToResponse, pipeUIMessageStreamToResponse, simulateReadableStream, simulateStreamingMiddleware, smoothStream, stepCountIs, streamObject, streamText, systemModelMessageSchema, tool, toolModelMessageSchema, userModelMessageSchema, wrapLanguageModel };
|