ai 4.3.2 → 5.0.0-canary.1
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 +21 -19
- package/dist/index.d.mts +33 -135
- package/dist/index.d.ts +33 -135
- package/dist/index.js +14 -141
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -135
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -14
- package/rsc/dist/index.d.ts +7 -7
- package/rsc/dist/rsc-server.d.mts +7 -7
- package/rsc/dist/rsc-server.mjs.map +1 -1
- package/test/dist/index.d.mts +18 -18
- package/test/dist/index.d.ts +18 -18
- package/test/dist/index.js +4 -4
- package/test/dist/index.js.map +1 -1
- package/test/dist/index.mjs +3 -3
- package/test/dist/index.mjs.map +1 -1
- package/react/dist/index.d.mts +0 -22
- package/react/dist/index.d.ts +0 -22
- package/react/dist/index.js +0 -42
- package/react/dist/index.js.map +0 -1
- package/react/dist/index.mjs +0 -20
- package/react/dist/index.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,35 +1,37 @@
|
|
1
1
|
# ai
|
2
2
|
|
3
|
-
##
|
3
|
+
## 5.0.0-canary.1
|
4
4
|
|
5
|
-
###
|
6
|
-
|
7
|
-
- 665a567: fix (core): improve error handling in streamText's consumeStream method
|
5
|
+
### Minor Changes
|
8
6
|
|
9
|
-
|
7
|
+
- b7eae2d: feat (core): Add finishReason field to NoObjectGeneratedError
|
10
8
|
|
11
9
|
### Patch Changes
|
12
10
|
|
13
|
-
-
|
11
|
+
- c22ad54: feat(smooth-stream): chunking callbacks
|
12
|
+
- a4f3007: chore: remove ai/react
|
13
|
+
- Updated dependencies [060370c]
|
14
|
+
- Updated dependencies [0c0c0b3]
|
15
|
+
- Updated dependencies [63d791d]
|
16
|
+
- @ai-sdk/provider-utils@3.0.0-canary.1
|
17
|
+
- @ai-sdk/ui-utils@2.0.0-canary.1
|
14
18
|
|
15
|
-
##
|
16
|
-
|
17
|
-
### Minor Changes
|
19
|
+
## 5.0.0-canary.0
|
18
20
|
|
19
|
-
|
20
|
-
|
21
|
-
### Patch Changes
|
22
|
-
|
23
|
-
- Updated dependencies [2c19b9a]
|
24
|
-
- @ai-sdk/provider-utils@2.2.4
|
25
|
-
- @ai-sdk/react@1.2.6
|
26
|
-
- @ai-sdk/ui-utils@1.2.5
|
21
|
+
### Major Changes
|
27
22
|
|
28
|
-
|
23
|
+
- d5f588f: AI SDK 5
|
24
|
+
- 9477ebb: chore (ui): remove useAssistant hook (**breaking change**)
|
29
25
|
|
30
26
|
### Patch Changes
|
31
27
|
|
32
|
-
-
|
28
|
+
- 8026705: fix (core): send buffered text in smooth stream when stream parts change
|
29
|
+
- Updated dependencies [d5f588f]
|
30
|
+
- Updated dependencies [9477ebb]
|
31
|
+
- @ai-sdk/provider-utils@3.0.0-canary.0
|
32
|
+
- @ai-sdk/ui-utils@2.0.0-canary.0
|
33
|
+
- @ai-sdk/react@2.0.0-canary.0
|
34
|
+
- @ai-sdk/provider@2.0.0-canary.0
|
33
35
|
|
34
36
|
## 4.2.10
|
35
37
|
|
package/dist/index.d.mts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { IDGenerator } from '@ai-sdk/provider-utils';
|
2
2
|
export { CoreToolCall, CoreToolResult, IDGenerator, ToolCall, ToolResult, createIdGenerator, generateId } from '@ai-sdk/provider-utils';
|
3
|
-
import { DataStreamString, Message, Schema, DeepPartial, JSONValue as JSONValue$1
|
4
|
-
export {
|
5
|
-
import {
|
6
|
-
export { AISDKError, APICallError, EmptyResponseBodyError, InvalidPromptError, InvalidResponseDataError, JSONParseError,
|
3
|
+
import { DataStreamString, Message, Schema, DeepPartial, JSONValue as JSONValue$1 } from '@ai-sdk/ui-utils';
|
4
|
+
export { Attachment, ChatRequest, ChatRequestOptions, CreateMessage, DataStreamPart, DeepPartial, IdGenerator, JSONValue, Message, RequestOptions, Schema, ToolInvocation, UIMessage, formatDataStreamPart, jsonSchema, parseDataStreamPart, processDataStream, processTextStream, zodSchema } from '@ai-sdk/ui-utils';
|
5
|
+
import { LanguageModelV2, LanguageModelV2FinishReason, LanguageModelV2LogProbs, LanguageModelV2CallWarning, LanguageModelV2Source, JSONValue, EmbeddingModelV1, EmbeddingModelV1Embedding, ImageModelV1, ImageModelV1CallWarning, LanguageModelV2ProviderMetadata, LanguageModelV2CallOptions, AISDKError, LanguageModelV2FunctionToolCall, JSONSchema7, JSONParseError, TypeValidationError, LanguageModelV2Middleware, ProviderV2, NoSuchModelError } from '@ai-sdk/provider';
|
6
|
+
export { AISDKError, APICallError, EmptyResponseBodyError, InvalidPromptError, InvalidResponseDataError, JSONParseError, LanguageModelV2, LanguageModelV2CallOptions, LanguageModelV2Prompt, LanguageModelV2StreamPart, LoadAPIKeyError, NoContentGeneratedError, NoSuchModelError, TypeValidationError, UnsupportedFunctionalityError } from '@ai-sdk/provider';
|
7
7
|
import { ServerResponse } from 'node:http';
|
8
8
|
import { AttributeValue, Tracer } from '@opentelemetry/api';
|
9
9
|
import { z } from 'zod';
|
@@ -12,7 +12,7 @@ import { ServerResponse as ServerResponse$1 } from 'http';
|
|
12
12
|
/**
|
13
13
|
Language model that is used by the AI SDK Core functions.
|
14
14
|
*/
|
15
|
-
type LanguageModel =
|
15
|
+
type LanguageModel = LanguageModelV2;
|
16
16
|
/**
|
17
17
|
Reason why a language model finished generating a response.
|
18
18
|
|
@@ -24,22 +24,22 @@ Can be one of the following:
|
|
24
24
|
- `error`: model stopped because of an error
|
25
25
|
- `other`: model stopped for other reasons
|
26
26
|
*/
|
27
|
-
type FinishReason =
|
27
|
+
type FinishReason = LanguageModelV2FinishReason;
|
28
28
|
/**
|
29
29
|
Log probabilities for each token and its top log probabilities.
|
30
30
|
|
31
31
|
@deprecated Will become a provider extension in the future.
|
32
32
|
*/
|
33
|
-
type LogProbs =
|
33
|
+
type LogProbs = LanguageModelV2LogProbs;
|
34
34
|
/**
|
35
35
|
Warning from the model provider for this call. The call will proceed, but e.g.
|
36
36
|
some settings might not be supported, which can lead to suboptimal results.
|
37
37
|
*/
|
38
|
-
type CallWarning =
|
38
|
+
type CallWarning = LanguageModelV2CallWarning;
|
39
39
|
/**
|
40
40
|
A source that has been used as input to generate the response.
|
41
41
|
*/
|
42
|
-
type Source =
|
42
|
+
type Source = LanguageModelV2Source;
|
43
43
|
/**
|
44
44
|
Tool choice for the generation. It supports the following settings:
|
45
45
|
|
@@ -240,14 +240,14 @@ Additional provider-specific metadata that is returned from the provider.
|
|
240
240
|
This is needed to enable provider-specific functionality that can be
|
241
241
|
fully encapsulated in the provider.
|
242
242
|
*/
|
243
|
-
type ProviderMetadata =
|
243
|
+
type ProviderMetadata = LanguageModelV2ProviderMetadata;
|
244
244
|
/**
|
245
245
|
Additional provider-specific options.
|
246
246
|
|
247
247
|
They are passed through to the provider from the AI SDK and enable
|
248
248
|
provider-specific functionality that can be fully encapsulated in the provider.
|
249
249
|
*/
|
250
|
-
type ProviderOptions =
|
250
|
+
type ProviderOptions = LanguageModelV2ProviderMetadata;
|
251
251
|
|
252
252
|
/**
|
253
253
|
Represents the number of tokens used in a prompt and completion.
|
@@ -2243,7 +2243,7 @@ interface Output<OUTPUT, PARTIAL> {
|
|
2243
2243
|
}): string | undefined;
|
2244
2244
|
responseFormat: (options: {
|
2245
2245
|
model: LanguageModel;
|
2246
|
-
}) =>
|
2246
|
+
}) => LanguageModelV2CallOptions['responseFormat'];
|
2247
2247
|
parsePartial(options: {
|
2248
2248
|
text: string;
|
2249
2249
|
}): {
|
@@ -2352,13 +2352,13 @@ declare function convertToCoreMessages<TOOLS extends ToolSet = never>(messages:
|
|
2352
2352
|
type ToolCallRepairFunction<TOOLS extends ToolSet> = (options: {
|
2353
2353
|
system: string | undefined;
|
2354
2354
|
messages: CoreMessage[];
|
2355
|
-
toolCall:
|
2355
|
+
toolCall: LanguageModelV2FunctionToolCall;
|
2356
2356
|
tools: TOOLS;
|
2357
2357
|
parameterSchema: (options: {
|
2358
2358
|
toolName: string;
|
2359
2359
|
}) => JSONSchema7;
|
2360
2360
|
error: NoSuchToolError | InvalidToolArgumentsError;
|
2361
|
-
}) => Promise<
|
2361
|
+
}) => Promise<LanguageModelV2FunctionToolCall | null>;
|
2362
2362
|
|
2363
2363
|
/**
|
2364
2364
|
Callback that is set using the `onStepFinish` option.
|
@@ -2539,9 +2539,6 @@ type DataStreamOptions = {
|
|
2539
2539
|
*/
|
2540
2540
|
experimental_sendStart?: boolean;
|
2541
2541
|
};
|
2542
|
-
type ConsumeStreamOptions = {
|
2543
|
-
onError?: (error: unknown) => void;
|
2544
|
-
};
|
2545
2542
|
/**
|
2546
2543
|
A result object for accessing different stream types and additional information.
|
2547
2544
|
*/
|
@@ -2662,10 +2659,8 @@ interface StreamTextResult<TOOLS extends ToolSet, PARTIAL_OUTPUT> {
|
|
2662
2659
|
This is useful to force the stream to finish.
|
2663
2660
|
It effectively removes the backpressure and allows the stream to finish,
|
2664
2661
|
triggering the `onFinish` callback and the promise resolution.
|
2665
|
-
|
2666
|
-
If an error occurs, it is passed to the optional `onError` callback.
|
2667
2662
|
*/
|
2668
|
-
consumeStream(
|
2663
|
+
consumeStream(): Promise<void>;
|
2669
2664
|
/**
|
2670
2665
|
Converts the result to a data stream.
|
2671
2666
|
|
@@ -3792,74 +3787,14 @@ Callback that is called when the LLM response and the final object validation ar
|
|
3792
3787
|
};
|
3793
3788
|
}): StreamObjectResult<JSONValue, JSONValue, never>;
|
3794
3789
|
|
3795
|
-
/**
|
3796
|
-
* Experimental middleware for LanguageModelV1.
|
3797
|
-
* This type defines the structure for middleware that can be used to modify
|
3798
|
-
* the behavior of LanguageModelV1 operations.
|
3799
|
-
*/
|
3800
|
-
type LanguageModelV1Middleware = {
|
3801
|
-
/**
|
3802
|
-
* Middleware specification version. Use `v1` for the current version.
|
3803
|
-
*/
|
3804
|
-
middlewareVersion?: 'v1' | undefined;
|
3805
|
-
/**
|
3806
|
-
* Transforms the parameters before they are passed to the language model.
|
3807
|
-
* @param options - Object containing the type of operation and the parameters.
|
3808
|
-
* @param options.type - The type of operation ('generate' or 'stream').
|
3809
|
-
* @param options.params - The original parameters for the language model call.
|
3810
|
-
* @returns A promise that resolves to the transformed parameters.
|
3811
|
-
*/
|
3812
|
-
transformParams?: (options: {
|
3813
|
-
type: 'generate' | 'stream';
|
3814
|
-
params: LanguageModelV1CallOptions;
|
3815
|
-
}) => PromiseLike<LanguageModelV1CallOptions>;
|
3816
|
-
/**
|
3817
|
-
* Wraps the generate operation of the language model.
|
3818
|
-
* @param options - Object containing the generate function, parameters, and model.
|
3819
|
-
* @param options.doGenerate - The original generate function.
|
3820
|
-
* @param options.doStream - The original stream function.
|
3821
|
-
* @param options.params - The parameters for the generate call. If the
|
3822
|
-
* `transformParams` middleware is used, this will be the transformed parameters.
|
3823
|
-
* @param options.model - The language model instance.
|
3824
|
-
* @returns A promise that resolves to the result of the generate operation.
|
3825
|
-
*/
|
3826
|
-
wrapGenerate?: (options: {
|
3827
|
-
doGenerate: () => ReturnType<LanguageModelV1['doGenerate']>;
|
3828
|
-
doStream: () => ReturnType<LanguageModelV1['doStream']>;
|
3829
|
-
params: LanguageModelV1CallOptions;
|
3830
|
-
model: LanguageModelV1;
|
3831
|
-
}) => Promise<Awaited<ReturnType<LanguageModelV1['doGenerate']>>>;
|
3832
|
-
/**
|
3833
|
-
* Wraps the stream operation of the language model.
|
3834
|
-
*
|
3835
|
-
* @param options - Object containing the stream function, parameters, and model.
|
3836
|
-
* @param options.doGenerate - The original generate function.
|
3837
|
-
* @param options.doStream - The original stream function.
|
3838
|
-
* @param options.params - The parameters for the stream call. If the
|
3839
|
-
* `transformParams` middleware is used, this will be the transformed parameters.
|
3840
|
-
* @param options.model - The language model instance.
|
3841
|
-
* @returns A promise that resolves to the result of the stream operation.
|
3842
|
-
*/
|
3843
|
-
wrapStream?: (options: {
|
3844
|
-
doGenerate: () => ReturnType<LanguageModelV1['doGenerate']>;
|
3845
|
-
doStream: () => ReturnType<LanguageModelV1['doStream']>;
|
3846
|
-
params: LanguageModelV1CallOptions;
|
3847
|
-
model: LanguageModelV1;
|
3848
|
-
}) => PromiseLike<Awaited<ReturnType<LanguageModelV1['doStream']>>>;
|
3849
|
-
};
|
3850
|
-
/**
|
3851
|
-
* @deprecated Use `LanguageModelV1Middleware` instead.
|
3852
|
-
*/
|
3853
|
-
type Experimental_LanguageModelV1Middleware = LanguageModelV1Middleware;
|
3854
|
-
|
3855
3790
|
/**
|
3856
3791
|
* Applies default settings for a language model.
|
3857
3792
|
*/
|
3858
3793
|
declare function defaultSettingsMiddleware({ settings, }: {
|
3859
|
-
settings: Partial<
|
3860
|
-
providerMetadata?:
|
3794
|
+
settings: Partial<LanguageModelV2CallOptions & {
|
3795
|
+
providerMetadata?: LanguageModelV2ProviderMetadata;
|
3861
3796
|
}>;
|
3862
|
-
}):
|
3797
|
+
}): LanguageModelV2Middleware;
|
3863
3798
|
|
3864
3799
|
/**
|
3865
3800
|
* Extract an XML-tagged reasoning section from the generated text and exposes it
|
@@ -3873,40 +3808,40 @@ declare function extractReasoningMiddleware({ tagName, separator, startWithReaso
|
|
3873
3808
|
tagName: string;
|
3874
3809
|
separator?: string;
|
3875
3810
|
startWithReasoning?: boolean;
|
3876
|
-
}):
|
3811
|
+
}): LanguageModelV2Middleware;
|
3877
3812
|
|
3878
3813
|
/**
|
3879
3814
|
* Simulates streaming chunks with the response from a generate call.
|
3880
3815
|
*/
|
3881
|
-
declare function simulateStreamingMiddleware():
|
3816
|
+
declare function simulateStreamingMiddleware(): LanguageModelV2Middleware;
|
3882
3817
|
|
3883
3818
|
/**
|
3884
|
-
* Wraps a
|
3819
|
+
* Wraps a LanguageModelV2 instance with middleware functionality.
|
3885
3820
|
* This function allows you to apply middleware to transform parameters,
|
3886
3821
|
* wrap generate operations, and wrap stream operations of a language model.
|
3887
3822
|
*
|
3888
3823
|
* @param options - Configuration options for wrapping the language model.
|
3889
|
-
* @param options.model - The original
|
3824
|
+
* @param options.model - The original LanguageModelV2 instance to be wrapped.
|
3890
3825
|
* @param options.middleware - The middleware to be applied to the language model. When multiple middlewares are provided, the first middleware will transform the input first, and the last middleware will be wrapped directly around the model.
|
3891
3826
|
* @param options.modelId - Optional custom model ID to override the original model's ID.
|
3892
3827
|
* @param options.providerId - Optional custom provider ID to override the original model's provider.
|
3893
|
-
* @returns A new
|
3828
|
+
* @returns A new LanguageModelV2 instance with middleware applied.
|
3894
3829
|
*/
|
3895
3830
|
declare const wrapLanguageModel: ({ model, middleware: middlewareArg, modelId, providerId, }: {
|
3896
|
-
model:
|
3897
|
-
middleware:
|
3831
|
+
model: LanguageModelV2;
|
3832
|
+
middleware: LanguageModelV2Middleware | LanguageModelV2Middleware[];
|
3898
3833
|
modelId?: string;
|
3899
3834
|
providerId?: string;
|
3900
|
-
}) =>
|
3835
|
+
}) => LanguageModelV2;
|
3901
3836
|
/**
|
3902
3837
|
* @deprecated Use `wrapLanguageModel` instead.
|
3903
3838
|
*/
|
3904
3839
|
declare const experimental_wrapLanguageModel: ({ model, middleware: middlewareArg, modelId, providerId, }: {
|
3905
|
-
model:
|
3906
|
-
middleware:
|
3840
|
+
model: LanguageModelV2;
|
3841
|
+
middleware: LanguageModelV2Middleware | LanguageModelV2Middleware[];
|
3907
3842
|
modelId?: string;
|
3908
3843
|
providerId?: string;
|
3909
|
-
}) =>
|
3844
|
+
}) => LanguageModelV2;
|
3910
3845
|
|
3911
3846
|
/**
|
3912
3847
|
* Creates a custom provider with specified language models, text embedding models, and an optional fallback provider.
|
@@ -3924,7 +3859,7 @@ declare function customProvider<LANGUAGE_MODELS extends Record<string, LanguageM
|
|
3924
3859
|
languageModels?: LANGUAGE_MODELS;
|
3925
3860
|
textEmbeddingModels?: EMBEDDING_MODELS;
|
3926
3861
|
imageModels?: IMAGE_MODELS;
|
3927
|
-
fallbackProvider?:
|
3862
|
+
fallbackProvider?: ProviderV2;
|
3928
3863
|
}): Provider & {
|
3929
3864
|
languageModel(modelId: ExtractModelId<LANGUAGE_MODELS>): LanguageModel;
|
3930
3865
|
textEmbeddingModel(modelId: ExtractModelId<EMBEDDING_MODELS>): EmbeddingModel<string>;
|
@@ -3952,7 +3887,7 @@ declare class NoSuchProviderError extends NoSuchModelError {
|
|
3952
3887
|
}
|
3953
3888
|
|
3954
3889
|
type ExtractLiteralUnion<T> = T extends string ? string extends T ? never : T : never;
|
3955
|
-
interface ProviderRegistryProvider<PROVIDERS extends Record<string,
|
3890
|
+
interface ProviderRegistryProvider<PROVIDERS extends Record<string, ProviderV2> = Record<string, ProviderV2>, SEPARATOR extends string = ':'> {
|
3956
3891
|
languageModel<KEY extends keyof PROVIDERS>(id: KEY extends string ? `${KEY & string}${SEPARATOR}${ExtractLiteralUnion<Parameters<NonNullable<PROVIDERS[KEY]['languageModel']>>[0]>}` : never): LanguageModel;
|
3957
3892
|
languageModel<KEY extends keyof PROVIDERS>(id: KEY extends string ? `${KEY & string}${SEPARATOR}${string}` : never): LanguageModel;
|
3958
3893
|
textEmbeddingModel<KEY extends keyof PROVIDERS>(id: KEY extends string ? `${KEY & string}${SEPARATOR}${ExtractLiteralUnion<Parameters<NonNullable<PROVIDERS[KEY]['textEmbeddingModel']>>[0]>}` : never): EmbeddingModel<string>;
|
@@ -3963,7 +3898,7 @@ interface ProviderRegistryProvider<PROVIDERS extends Record<string, ProviderV1>
|
|
3963
3898
|
/**
|
3964
3899
|
* Creates a registry for the given providers.
|
3965
3900
|
*/
|
3966
|
-
declare function createProviderRegistry<PROVIDERS extends Record<string,
|
3901
|
+
declare function createProviderRegistry<PROVIDERS extends Record<string, ProviderV2>, SEPARATOR extends string = ':'>(providers: PROVIDERS, { separator, }?: {
|
3967
3902
|
separator?: SEPARATOR;
|
3968
3903
|
}): ProviderRegistryProvider<PROVIDERS, SEPARATOR>;
|
3969
3904
|
/**
|
@@ -4262,43 +4197,6 @@ declare class RetryError extends AISDKError {
|
|
4262
4197
|
static isInstance(error: unknown): error is RetryError;
|
4263
4198
|
}
|
4264
4199
|
|
4265
|
-
/**
|
4266
|
-
You can pass the thread and the latest message into the `AssistantResponse`. This establishes the context for the response.
|
4267
|
-
*/
|
4268
|
-
type AssistantResponseSettings = {
|
4269
|
-
/**
|
4270
|
-
The thread ID that the response is associated with.
|
4271
|
-
*/
|
4272
|
-
threadId: string;
|
4273
|
-
/**
|
4274
|
-
The ID of the latest message that the response is associated with.
|
4275
|
-
*/
|
4276
|
-
messageId: string;
|
4277
|
-
};
|
4278
|
-
/**
|
4279
|
-
The process parameter is a callback in which you can run the assistant on threads, and send messages and data messages to the client.
|
4280
|
-
*/
|
4281
|
-
type AssistantResponseCallback = (options: {
|
4282
|
-
/**
|
4283
|
-
Forwards an assistant message (non-streaming) to the client.
|
4284
|
-
*/
|
4285
|
-
sendMessage: (message: AssistantMessage) => void;
|
4286
|
-
/**
|
4287
|
-
Send a data message to the client. You can use this to provide information for rendering custom UIs while the assistant is processing the thread.
|
4288
|
-
*/
|
4289
|
-
sendDataMessage: (message: DataMessage) => void;
|
4290
|
-
/**
|
4291
|
-
Forwards the assistant response stream to the client. Returns the `Run` object after it completes, or when it requires an action.
|
4292
|
-
*/
|
4293
|
-
forwardStream: (stream: any) => Promise<any | undefined>;
|
4294
|
-
}) => Promise<void>;
|
4295
|
-
/**
|
4296
|
-
The `AssistantResponse` allows you to send a stream of assistant update to `useAssistant`.
|
4297
|
-
It is designed to facilitate streaming assistant responses to the `useAssistant` hook.
|
4298
|
-
It receives an assistant thread and a current message, and can send messages and data messages to the client.
|
4299
|
-
*/
|
4300
|
-
declare function AssistantResponse({ threadId, messageId }: AssistantResponseSettings, process: AssistantResponseCallback): Response;
|
4301
|
-
|
4302
4200
|
/**
|
4303
4201
|
* Configuration options and helper callback methods for stream lifecycle events.
|
4304
4202
|
*/
|
@@ -4395,4 +4293,4 @@ declare namespace llamaindexAdapter {
|
|
4395
4293
|
};
|
4396
4294
|
}
|
4397
4295
|
|
4398
|
-
export { AssistantContent,
|
4296
|
+
export { AssistantContent, CallWarning, ChunkDetector, CoreAssistantMessage, CoreMessage, CoreSystemMessage, CoreTool, CoreToolCallUnion, CoreToolChoice, CoreToolMessage, CoreToolResultUnion, CoreUserMessage, DataContent, DataStreamOptions, DataStreamWriter, DownloadError, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelUsage, GenerateImageResult as Experimental_GenerateImageResult, GeneratedFile as Experimental_GeneratedImage, FilePart, FinishReason, GenerateObjectResult, GenerateTextOnStepFinishCallback, GenerateTextResult, GeneratedFile, ImageModel, ImageGenerationWarning as ImageModelCallWarning, ImageModelResponseMetadata, ImagePart, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidStreamPartError, InvalidToolArgumentsError, JSONRPCError, JSONRPCMessage, JSONRPCNotification, JSONRPCRequest, JSONRPCResponse, langchainAdapter as LangChainAdapter, LanguageModel, LanguageModelRequestMetadata, LanguageModelResponseMetadata, LanguageModelUsage, llamaindexAdapter as LlamaIndexAdapter, LogProbs, MCPClientError, MCPTransport, MessageConversionError, NoImageGeneratedError, NoObjectGeneratedError, NoOutputSpecifiedError, NoSuchProviderError, NoSuchToolError, ObjectStreamPart, output as Output, Provider, ProviderMetadata, ProviderRegistryProvider, RepairTextFunction, RetryError, StepResult, StreamData, StreamObjectOnFinishCallback, StreamObjectResult, StreamTextOnChunkCallback, StreamTextOnErrorCallback, StreamTextOnFinishCallback, StreamTextOnStepFinishCallback, StreamTextResult, StreamTextTransform, TelemetrySettings, TextPart, TextStreamPart, Tool, ToolCallPart, ToolCallRepairError, ToolCallRepairFunction, ToolCallUnion, ToolChoice, ToolContent, ToolExecutionError, ToolExecutionOptions, ToolResultPart, ToolResultUnion, ToolSet, UserContent, appendClientMessage, appendResponseMessages, 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, experimental_wrapLanguageModel, extractReasoningMiddleware, generateObject, generateText, pipeDataStreamToResponse, simulateReadableStream, simulateStreamingMiddleware, smoothStream, streamObject, streamText, tool, wrapLanguageModel };
|