ai 5.0.0-canary.7 → 5.0.0-canary.8
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 +37 -0
- package/dist/index.d.mts +73 -62
- package/dist/index.d.ts +73 -62
- package/dist/index.js +272 -221
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +272 -221
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +6 -6
- package/dist/internal/index.d.ts +6 -6
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs.map +1 -1
- package/dist/test/index.d.mts +14 -14
- package/dist/test/index.d.ts +14 -14
- package/dist/test/index.js +5 -5
- package/dist/test/index.js.map +1 -1
- package/dist/test/index.mjs +4 -4
- package/dist/test/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,42 @@
|
|
1
1
|
# ai
|
2
2
|
|
3
|
+
## 5.0.0-canary.8
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- 14c9410: chore: refactor file towards source pattern (spec)
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- 5d1e3ba: chore (ai): remove provider re-exports
|
12
|
+
- 26735b5: chore(embedding-model): add v2 interface
|
13
|
+
- 7827a49: fix (ai/core): refactor `toResponseMessages` to filter out empty string/content
|
14
|
+
- bd8a36c: feat(embedding-model-v2/embedMany): add response body field
|
15
|
+
- b6f9f3c: remove deprecated `CoreTool*` types
|
16
|
+
- 92c8e66: fix(ai/core): properly handle custom separator in provider registry
|
17
|
+
- fd65bc6: chore(embedding-model-v2): rename rawResponse to response
|
18
|
+
- 5bdff05: Removed deprecated `options.throwErrorForEmptyVectors` from `cosineSimilarity()`. Since `throwErrorForEmptyVectors` was the only option the entire `options` argument was removed.
|
19
|
+
|
20
|
+
```diff
|
21
|
+
- cosineSimilarity(vector1, vector2, options)
|
22
|
+
+cosineSimilarity(vector1, vector2)
|
23
|
+
```
|
24
|
+
|
25
|
+
- Updated dependencies [26735b5]
|
26
|
+
- Updated dependencies [443d8ec]
|
27
|
+
- Updated dependencies [14c9410]
|
28
|
+
- Updated dependencies [d9c98f4]
|
29
|
+
- Updated dependencies [c4a2fec]
|
30
|
+
- Updated dependencies [0054544]
|
31
|
+
- Updated dependencies [9e9c809]
|
32
|
+
- Updated dependencies [32831c6]
|
33
|
+
- Updated dependencies [d0f9495]
|
34
|
+
- Updated dependencies [fd65bc6]
|
35
|
+
- Updated dependencies [393138b]
|
36
|
+
- Updated dependencies [7182d14]
|
37
|
+
- @ai-sdk/provider@2.0.0-canary.6
|
38
|
+
- @ai-sdk/provider-utils@3.0.0-canary.7
|
39
|
+
|
3
40
|
## 5.0.0-canary.7
|
4
41
|
|
5
42
|
### Major Changes
|
package/dist/index.d.mts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ToolCall, ToolResult, FetchFunction, Validator, IDGenerator } from '@ai-sdk/provider-utils';
|
2
2
|
export { CoreToolCall, CoreToolResult, IDGenerator, ToolCall, ToolResult, createIdGenerator, generateId } from '@ai-sdk/provider-utils';
|
3
|
-
import {
|
4
|
-
export { AISDKError, APICallError, EmptyResponseBodyError, InvalidPromptError, InvalidResponseDataError, JSONParseError,
|
3
|
+
import { EmbeddingModelV2, EmbeddingModelV2Embedding, ImageModelV1, ImageModelV1CallWarning, LanguageModelV2, LanguageModelV2FinishReason, LanguageModelV2LogProbs, LanguageModelV2CallWarning, LanguageModelV2Source, SharedV2ProviderMetadata, SharedV2ProviderOptions, JSONValue as JSONValue$1, JSONObject, LanguageModelV2CallOptions, AISDKError, LanguageModelV2ToolCall, JSONSchema7 as JSONSchema7$1, JSONParseError, TypeValidationError, TranscriptionModelV1CallWarning, TranscriptionModelV1, LanguageModelV2Middleware, ProviderV2, NoSuchModelError } from '@ai-sdk/provider';
|
4
|
+
export { AISDKError, APICallError, EmptyResponseBodyError, InvalidPromptError, InvalidResponseDataError, JSONParseError, LoadAPIKeyError, NoContentGeneratedError, NoSuchModelError, TypeValidationError, UnsupportedFunctionalityError } from '@ai-sdk/provider';
|
5
5
|
import { ServerResponse } from 'node:http';
|
6
6
|
import { AttributeValue, Tracer } from '@opentelemetry/api';
|
7
7
|
import { z } from 'zod';
|
@@ -11,11 +11,11 @@ import { ServerResponse as ServerResponse$1 } from 'http';
|
|
11
11
|
/**
|
12
12
|
Embedding model that is used by the AI SDK Core functions.
|
13
13
|
*/
|
14
|
-
type EmbeddingModel<VALUE> =
|
14
|
+
type EmbeddingModel<VALUE> = EmbeddingModelV2<VALUE>;
|
15
15
|
/**
|
16
16
|
Embedding.
|
17
17
|
*/
|
18
|
-
type Embedding =
|
18
|
+
type Embedding = EmbeddingModelV2Embedding;
|
19
19
|
|
20
20
|
/**
|
21
21
|
Image model that is used by the AI SDK Core functions.
|
@@ -85,10 +85,6 @@ type ToolChoice<TOOLS extends Record<string, unknown>> = 'auto' | 'none' | 'requ
|
|
85
85
|
type: 'tool';
|
86
86
|
toolName: Extract<keyof TOOLS, string>;
|
87
87
|
};
|
88
|
-
/**
|
89
|
-
* @deprecated Use `ToolChoice` instead.
|
90
|
-
*/
|
91
|
-
type CoreToolChoice<TOOLS extends Record<string, unknown>> = ToolChoice<TOOLS>;
|
92
88
|
|
93
89
|
type LanguageModelRequestMetadata = {
|
94
90
|
/**
|
@@ -159,14 +155,14 @@ Additional provider-specific metadata that is returned from the provider.
|
|
159
155
|
This is needed to enable provider-specific functionality that can be
|
160
156
|
fully encapsulated in the provider.
|
161
157
|
*/
|
162
|
-
type ProviderMetadata =
|
158
|
+
type ProviderMetadata = SharedV2ProviderMetadata;
|
163
159
|
/**
|
164
160
|
Additional provider-specific options.
|
165
161
|
|
166
162
|
They are passed through to the provider from the AI SDK and enable
|
167
163
|
provider-specific functionality that can be fully encapsulated in the provider.
|
168
164
|
*/
|
169
|
-
type ProviderOptions =
|
165
|
+
type ProviderOptions = SharedV2ProviderOptions;
|
170
166
|
|
171
167
|
/**
|
172
168
|
Represents the number of tokens used in a prompt and completion.
|
@@ -1010,13 +1006,17 @@ interface EmbedResult<VALUE> {
|
|
1010
1006
|
*/
|
1011
1007
|
readonly usage: EmbeddingModelUsage;
|
1012
1008
|
/**
|
1013
|
-
Optional
|
1009
|
+
Optional response data.
|
1014
1010
|
*/
|
1015
|
-
readonly
|
1011
|
+
readonly response?: {
|
1016
1012
|
/**
|
1017
1013
|
Response headers.
|
1018
1014
|
*/
|
1019
1015
|
headers?: Record<string, string>;
|
1016
|
+
/**
|
1017
|
+
The response body.
|
1018
|
+
*/
|
1019
|
+
body?: unknown;
|
1020
1020
|
};
|
1021
1021
|
}
|
1022
1022
|
|
@@ -1032,7 +1032,7 @@ Embed a value using an embedding model. The type of the value is defined by the
|
|
1032
1032
|
|
1033
1033
|
@returns A result object that contains the embedding, the value, and additional information.
|
1034
1034
|
*/
|
1035
|
-
declare function embed<VALUE>({ model, value, maxRetries: maxRetriesArg, abortSignal, headers, experimental_telemetry: telemetry, }: {
|
1035
|
+
declare function embed<VALUE>({ model, value, providerOptions, maxRetries: maxRetriesArg, abortSignal, headers, experimental_telemetry: telemetry, }: {
|
1036
1036
|
/**
|
1037
1037
|
The embedding model to use.
|
1038
1038
|
*/
|
@@ -1056,6 +1056,12 @@ declare function embed<VALUE>({ model, value, maxRetries: maxRetriesArg, abortSi
|
|
1056
1056
|
Only applicable for HTTP-based providers.
|
1057
1057
|
*/
|
1058
1058
|
headers?: Record<string, string>;
|
1059
|
+
/**
|
1060
|
+
Additional provider-specific options. They are passed through
|
1061
|
+
to the provider from the AI SDK and enable provider-specific
|
1062
|
+
functionality that can be fully encapsulated in the provider.
|
1063
|
+
*/
|
1064
|
+
providerOptions?: ProviderOptions;
|
1059
1065
|
/**
|
1060
1066
|
* Optional telemetry configuration (experimental).
|
1061
1067
|
*/
|
@@ -1079,6 +1085,19 @@ interface EmbedManyResult<VALUE> {
|
|
1079
1085
|
The embedding token usage.
|
1080
1086
|
*/
|
1081
1087
|
readonly usage: EmbeddingModelUsage;
|
1088
|
+
/**
|
1089
|
+
Optional raw response data.
|
1090
|
+
*/
|
1091
|
+
readonly responses?: Array<{
|
1092
|
+
/**
|
1093
|
+
Response headers.
|
1094
|
+
*/
|
1095
|
+
headers?: Record<string, string>;
|
1096
|
+
/**
|
1097
|
+
The response body.
|
1098
|
+
*/
|
1099
|
+
body?: unknown;
|
1100
|
+
} | undefined>;
|
1082
1101
|
}
|
1083
1102
|
|
1084
1103
|
/**
|
@@ -1097,7 +1116,7 @@ has a limit on how many embeddings can be generated in a single call.
|
|
1097
1116
|
|
1098
1117
|
@returns A result object that contains the embeddings, the value, and additional information.
|
1099
1118
|
*/
|
1100
|
-
declare function embedMany<VALUE>({ model, values, maxRetries: maxRetriesArg, abortSignal, headers, experimental_telemetry: telemetry, }: {
|
1119
|
+
declare function embedMany<VALUE>({ model, values, maxRetries: maxRetriesArg, abortSignal, headers, providerOptions, experimental_telemetry: telemetry, }: {
|
1101
1120
|
/**
|
1102
1121
|
The embedding model to use.
|
1103
1122
|
*/
|
@@ -1125,6 +1144,12 @@ declare function embedMany<VALUE>({ model, values, maxRetries: maxRetriesArg, ab
|
|
1125
1144
|
* Optional telemetry configuration (experimental).
|
1126
1145
|
*/
|
1127
1146
|
experimental_telemetry?: TelemetrySettings;
|
1147
|
+
/**
|
1148
|
+
Additional provider-specific options. They are passed through
|
1149
|
+
to the provider from the AI SDK and enable provider-specific
|
1150
|
+
functionality that can be fully encapsulated in the provider.
|
1151
|
+
*/
|
1152
|
+
providerOptions?: ProviderOptions;
|
1128
1153
|
}): Promise<EmbedManyResult<VALUE>>;
|
1129
1154
|
|
1130
1155
|
type CallSettings = {
|
@@ -1839,26 +1864,22 @@ Optional conversion function that maps the tool result to multi-part tool conten
|
|
1839
1864
|
}> & ({
|
1840
1865
|
/**
|
1841
1866
|
Function tool.
|
1842
|
-
|
1867
|
+
*/
|
1843
1868
|
type?: undefined | 'function';
|
1844
1869
|
} | {
|
1845
1870
|
/**
|
1846
1871
|
Provider-defined tool.
|
1847
|
-
|
1872
|
+
*/
|
1848
1873
|
type: 'provider-defined';
|
1849
1874
|
/**
|
1850
1875
|
The ID of the tool. Should follow the format `<provider-name>.<tool-name>`.
|
1851
|
-
|
1876
|
+
*/
|
1852
1877
|
id: `${string}.${string}`;
|
1853
1878
|
/**
|
1854
1879
|
The arguments for configuring the tool. Must match the expected arguments defined by the provider for this tool.
|
1855
|
-
|
1880
|
+
*/
|
1856
1881
|
args: Record<string, unknown>;
|
1857
1882
|
});
|
1858
|
-
/**
|
1859
|
-
* @deprecated Use `Tool` instead.
|
1860
|
-
*/
|
1861
|
-
type CoreTool<PARAMETERS extends ToolParameters = any, RESULT = any> = Tool<PARAMETERS, RESULT>;
|
1862
1883
|
/**
|
1863
1884
|
Helper function for inferring the execute args of a tool.
|
1864
1885
|
*/
|
@@ -2693,10 +2714,6 @@ type ToolCallUnion<TOOLS extends ToolSet> = ValueOf<{
|
|
2693
2714
|
args: TOOLS[NAME] extends Tool<infer PARAMETERS> ? PARAMETERS : never;
|
2694
2715
|
};
|
2695
2716
|
}>;
|
2696
|
-
/**
|
2697
|
-
* @deprecated Use `ToolCallUnion` instead.
|
2698
|
-
*/
|
2699
|
-
type CoreToolCallUnion<TOOLS extends ToolSet> = ToolCallUnion<ToolSet>;
|
2700
2717
|
type ToolCallArray<TOOLS extends ToolSet> = Array<ToolCallUnion<TOOLS>>;
|
2701
2718
|
|
2702
2719
|
type ToToolsWithDefinedExecute<TOOLS extends ToolSet> = {
|
@@ -2712,10 +2729,6 @@ type ToToolResultObject<TOOLS extends ToolSet> = ValueOf<{
|
|
2712
2729
|
};
|
2713
2730
|
}>;
|
2714
2731
|
type ToolResultUnion<TOOLS extends ToolSet> = ToToolResultObject<ToToolsWithDefinedExecute<TOOLS>>;
|
2715
|
-
/**
|
2716
|
-
* @deprecated Use `ToolResultUnion` instead.
|
2717
|
-
*/
|
2718
|
-
type CoreToolResultUnion<TOOLS extends ToolSet> = ToolResultUnion<TOOLS>;
|
2719
2732
|
type ToolResultArray<TOOLS extends ToolSet> = Array<ToolResultUnion<TOOLS>>;
|
2720
2733
|
|
2721
2734
|
/**
|
@@ -3021,13 +3034,13 @@ declare function convertToCoreMessages<TOOLS extends ToolSet = never>(messages:
|
|
3021
3034
|
type ToolCallRepairFunction<TOOLS extends ToolSet> = (options: {
|
3022
3035
|
system: string | undefined;
|
3023
3036
|
messages: CoreMessage[];
|
3024
|
-
toolCall:
|
3037
|
+
toolCall: LanguageModelV2ToolCall;
|
3025
3038
|
tools: TOOLS;
|
3026
3039
|
parameterSchema: (options: {
|
3027
3040
|
toolName: string;
|
3028
3041
|
}) => JSONSchema7$1;
|
3029
3042
|
error: NoSuchToolError | InvalidToolArgumentsError;
|
3030
|
-
}) => Promise<
|
3043
|
+
}) => Promise<LanguageModelV2ToolCall | null>;
|
3031
3044
|
|
3032
3045
|
/**
|
3033
3046
|
Callback that is set using the `onStepFinish` option.
|
@@ -3401,23 +3414,26 @@ interface StreamTextResult<TOOLS extends ToolSet, PARTIAL_OUTPUT> {
|
|
3401
3414
|
toTextStreamResponse(init?: ResponseInit): Response;
|
3402
3415
|
}
|
3403
3416
|
type TextStreamPart<TOOLS extends ToolSet> = {
|
3404
|
-
type: 'text
|
3405
|
-
|
3417
|
+
type: 'text';
|
3418
|
+
text: string;
|
3406
3419
|
} | {
|
3407
3420
|
type: 'reasoning';
|
3408
|
-
|
3421
|
+
reasoningType: 'text';
|
3422
|
+
text: string;
|
3409
3423
|
} | {
|
3410
|
-
type: 'reasoning
|
3424
|
+
type: 'reasoning';
|
3425
|
+
reasoningType: 'signature';
|
3411
3426
|
signature: string;
|
3412
3427
|
} | {
|
3413
|
-
type: '
|
3428
|
+
type: 'reasoning';
|
3429
|
+
reasoningType: 'redacted';
|
3414
3430
|
data: string;
|
3415
|
-
} | {
|
3416
|
-
type: 'source';
|
3417
|
-
source: Source;
|
3418
3431
|
} | ({
|
3432
|
+
type: 'source';
|
3433
|
+
} & Source) | {
|
3419
3434
|
type: 'file';
|
3420
|
-
|
3435
|
+
file: GeneratedFile;
|
3436
|
+
} | ({
|
3421
3437
|
type: 'tool-call';
|
3422
3438
|
} & ToolCallUnion<TOOLS>) | {
|
3423
3439
|
type: 'tool-call-streaming-start';
|
@@ -3524,7 +3540,7 @@ Callback that is set using the `onChunk` option.
|
|
3524
3540
|
*/
|
3525
3541
|
type StreamTextOnChunkCallback<TOOLS extends ToolSet> = (event: {
|
3526
3542
|
chunk: Extract<TextStreamPart<TOOLS>, {
|
3527
|
-
type: 'text
|
3543
|
+
type: 'text' | 'reasoning' | 'source' | 'tool-call' | 'tool-call-streaming-start' | 'tool-call-delta' | 'tool-result';
|
3528
3544
|
}>;
|
3529
3545
|
}) => Promise<void> | void;
|
3530
3546
|
/**
|
@@ -4377,7 +4393,7 @@ declare function transcribe({ model, audio, providerOptions, maxRetries: maxRetr
|
|
4377
4393
|
*/
|
4378
4394
|
declare function defaultSettingsMiddleware({ settings, }: {
|
4379
4395
|
settings: Partial<LanguageModelV2CallOptions & {
|
4380
|
-
providerOptions?:
|
4396
|
+
providerOptions?: SharedV2ProviderOptions;
|
4381
4397
|
}>;
|
4382
4398
|
}): LanguageModelV2Middleware;
|
4383
4399
|
|
@@ -4497,21 +4513,13 @@ declare const experimental_createProviderRegistry: typeof createProviderRegistry
|
|
4497
4513
|
*
|
4498
4514
|
* @param vector1 - The first vector.
|
4499
4515
|
* @param vector2 - The second vector.
|
4500
|
-
* @param options - Optional configuration.
|
4501
|
-
* @param options.throwErrorForEmptyVectors - If true, throws an error for empty vectors. Default: false.
|
4502
4516
|
*
|
4503
4517
|
* @returns The cosine similarity between vector1 and vector2.
|
4504
4518
|
* @returns 0 if either vector is the zero vector.
|
4505
4519
|
*
|
4506
|
-
* @throws {InvalidArgumentError} If throwErrorForEmptyVectors is true and vectors are empty.
|
4507
4520
|
* @throws {InvalidArgumentError} If the vectors do not have the same length.
|
4508
4521
|
*/
|
4509
|
-
declare function cosineSimilarity(vector1: number[], vector2: number[]
|
4510
|
-
/**
|
4511
|
-
* @deprecated will be removed in 5.0
|
4512
|
-
*/
|
4513
|
-
throwErrorForEmptyVectors?: boolean;
|
4514
|
-
}): number;
|
4522
|
+
declare function cosineSimilarity(vector1: number[], vector2: number[]): number;
|
4515
4523
|
|
4516
4524
|
/**
|
4517
4525
|
* Creates a ReadableStream that emits the provided values with an optional delay between each value.
|
@@ -4545,23 +4553,26 @@ declare class InvalidArgumentError extends AISDKError {
|
|
4545
4553
|
}
|
4546
4554
|
|
4547
4555
|
type SingleRequestTextStreamPart<TOOLS extends ToolSet> = {
|
4548
|
-
type: 'text
|
4549
|
-
|
4556
|
+
type: 'text';
|
4557
|
+
text: string;
|
4550
4558
|
} | {
|
4551
4559
|
type: 'reasoning';
|
4552
|
-
|
4560
|
+
reasoningType: 'text';
|
4561
|
+
text: string;
|
4553
4562
|
} | {
|
4554
|
-
type: 'reasoning
|
4563
|
+
type: 'reasoning';
|
4564
|
+
reasoningType: 'signature';
|
4555
4565
|
signature: string;
|
4556
4566
|
} | {
|
4557
|
-
type: '
|
4567
|
+
type: 'reasoning';
|
4568
|
+
reasoningType: 'redacted';
|
4558
4569
|
data: string;
|
4559
|
-
} |
|
4570
|
+
} | {
|
4560
4571
|
type: 'file';
|
4561
|
-
|
4562
|
-
type: 'source';
|
4563
|
-
source: Source;
|
4572
|
+
file: GeneratedFile;
|
4564
4573
|
} | ({
|
4574
|
+
type: 'source';
|
4575
|
+
} & Source) | ({
|
4565
4576
|
type: 'tool-call';
|
4566
4577
|
} & ToolCallUnion<TOOLS>) | {
|
4567
4578
|
type: 'tool-call-streaming-start';
|
@@ -4878,4 +4889,4 @@ declare namespace llamaindexAdapter {
|
|
4878
4889
|
};
|
4879
4890
|
}
|
4880
4891
|
|
4881
|
-
export { AssistantContent, Attachment, CallSettings, CallWarning, ChatRequest, ChatRequestOptions, ChunkDetector, CoreAssistantMessage, CoreMessage, CoreSystemMessage,
|
4892
|
+
export { AssistantContent, Attachment, CallSettings, CallWarning, ChatRequest, ChatRequestOptions, ChunkDetector, CoreAssistantMessage, CoreMessage, CoreSystemMessage, CoreToolMessage, CoreUserMessage, CreateMessage, DataContent, DataStreamOptions, DataStreamPart, DataStreamString, DataStreamWriter, DeepPartial, DownloadError, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelUsage, GenerateImageResult as Experimental_GenerateImageResult, GeneratedFile as Experimental_GeneratedImage, TranscriptionResult as Experimental_TranscriptionResult, FilePart, FileUIPart, FinishReason, GenerateObjectResult, GenerateTextOnStepFinishCallback, GenerateTextResult, GeneratedFile, IdGenerator, ImageModel, ImageGenerationWarning as ImageModelCallWarning, ImageModelResponseMetadata, ImagePart, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidStreamPartError, InvalidToolArgumentsError, JSONRPCError, JSONRPCMessage, JSONRPCNotification, JSONRPCRequest, JSONRPCResponse, JSONValue, langchainAdapter as LangChainAdapter, LanguageModel, LanguageModelRequestMetadata, LanguageModelResponseMetadata, LanguageModelUsage$1 as LanguageModelUsage, llamaindexAdapter as LlamaIndexAdapter, LogProbs, MCPClientError, MCPTransport, Message, MessageConversionError, NoImageGeneratedError, NoObjectGeneratedError, NoOutputSpecifiedError, NoSuchProviderError, NoSuchToolError, ObjectStreamPart, output as Output, Prompt, Provider, ProviderMetadata, ProviderOptions, ProviderRegistryProvider, ReasoningUIPart, RepairTextFunction, RequestOptions, RetryError, Schema, SourceUIPart, StepResult, StepStartUIPart, StreamData, StreamObjectOnFinishCallback, StreamObjectResult, StreamTextOnChunkCallback, StreamTextOnErrorCallback, StreamTextOnFinishCallback, StreamTextOnStepFinishCallback, StreamTextResult, StreamTextTransform, TelemetrySettings, TextPart, TextStreamPart, TextUIPart, Tool, ToolCallPart, ToolCallRepairError, ToolCallRepairFunction, ToolCallUnion, ToolChoice, ToolContent, ToolExecutionError, ToolExecutionOptions, ToolInvocation, ToolInvocationUIPart, ToolResultPart, ToolResultUnion, ToolSet, UIMessage, UseChatOptions, UseCompletionOptions, UserContent, appendClientMessage, appendResponseMessages, asSchema, callChatApi, callCompletionApi, convertToCoreMessages, coreAssistantMessageSchema, coreMessageSchema, coreSystemMessageSchema, coreToolMessageSchema, coreUserMessageSchema, cosineSimilarity, createDataStream, createDataStreamResponse, createProviderRegistry, customProvider, defaultSettingsMiddleware, embed, embedMany, createMCPClient as experimental_createMCPClient, experimental_createProviderRegistry, experimental_customProvider, generateImage as experimental_generateImage, transcribe as experimental_transcribe, experimental_wrapLanguageModel, extractMaxToolInvocationStep, extractReasoningMiddleware, fillMessageParts, formatDataStreamPart, generateObject, generateText, getMessageParts, getTextFromDataUrl, isAssistantMessageWithCompletedToolCalls, isDeepEqualData, jsonSchema, parseDataStreamPart, parsePartialJson, pipeDataStreamToResponse, prepareAttachmentsForRequest, processDataStream, processTextStream, shouldResubmitMessages, simulateReadableStream, simulateStreamingMiddleware, smoothStream, streamObject, streamText, tool, updateToolCallResult, wrapLanguageModel, zodSchema };
|