ai 6.0.2 → 6.0.4
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 +16 -0
- package/dist/index.d.mts +31 -9
- package/dist/index.d.ts +31 -9
- package/dist/index.js +579 -392
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +513 -328
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +25 -8
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +25 -8
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 6.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [1dad057]
|
|
8
|
+
- @ai-sdk/gateway@3.0.3
|
|
9
|
+
|
|
10
|
+
## 6.0.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 29264a3: feat: add MCP tool approval
|
|
15
|
+
- Updated dependencies [29264a3]
|
|
16
|
+
- @ai-sdk/provider-utils@4.0.1
|
|
17
|
+
- @ai-sdk/gateway@3.0.2
|
|
18
|
+
|
|
3
19
|
## 6.0.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1192,9 +1192,9 @@ type StopCondition<TOOLS extends ToolSet> = (options: {
|
|
|
1192
1192
|
declare function stepCountIs(stepCount: number): StopCondition<any>;
|
|
1193
1193
|
declare function hasToolCall(toolName: string): StopCondition<any>;
|
|
1194
1194
|
|
|
1195
|
-
declare const symbol$
|
|
1195
|
+
declare const symbol$e: unique symbol;
|
|
1196
1196
|
declare class InvalidToolInputError extends AISDKError {
|
|
1197
|
-
private readonly [symbol$
|
|
1197
|
+
private readonly [symbol$e];
|
|
1198
1198
|
readonly toolName: string;
|
|
1199
1199
|
readonly toolInput: string;
|
|
1200
1200
|
constructor({ toolInput, toolName, cause, message, }: {
|
|
@@ -1206,9 +1206,9 @@ declare class InvalidToolInputError extends AISDKError {
|
|
|
1206
1206
|
static isInstance(error: unknown): error is InvalidToolInputError;
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
|
-
declare const symbol$
|
|
1209
|
+
declare const symbol$d: unique symbol;
|
|
1210
1210
|
declare class NoSuchToolError extends AISDKError {
|
|
1211
|
-
private readonly [symbol$
|
|
1211
|
+
private readonly [symbol$d];
|
|
1212
1212
|
readonly toolName: string;
|
|
1213
1213
|
readonly availableTools: string[] | undefined;
|
|
1214
1214
|
constructor({ toolName, availableTools, message, }: {
|
|
@@ -3884,9 +3884,9 @@ declare function embedMany({ model: modelArg, values, maxParallelCalls, maxRetri
|
|
|
3884
3884
|
maxParallelCalls?: number;
|
|
3885
3885
|
}): Promise<EmbedManyResult>;
|
|
3886
3886
|
|
|
3887
|
-
declare const symbol$
|
|
3887
|
+
declare const symbol$c: unique symbol;
|
|
3888
3888
|
declare class InvalidArgumentError extends AISDKError {
|
|
3889
|
-
private readonly [symbol$
|
|
3889
|
+
private readonly [symbol$c];
|
|
3890
3890
|
readonly parameter: string;
|
|
3891
3891
|
readonly value: unknown;
|
|
3892
3892
|
constructor({ parameter, value, message, }: {
|
|
@@ -3975,9 +3975,9 @@ type SingleRequestTextStreamPart<TOOLS extends ToolSet> = {
|
|
|
3975
3975
|
rawValue: unknown;
|
|
3976
3976
|
};
|
|
3977
3977
|
|
|
3978
|
-
declare const symbol$
|
|
3978
|
+
declare const symbol$b: unique symbol;
|
|
3979
3979
|
declare class InvalidStreamPartError extends AISDKError {
|
|
3980
|
-
private readonly [symbol$
|
|
3980
|
+
private readonly [symbol$b];
|
|
3981
3981
|
readonly chunk: SingleRequestTextStreamPart<any>;
|
|
3982
3982
|
constructor({ chunk, message, }: {
|
|
3983
3983
|
chunk: SingleRequestTextStreamPart<any>;
|
|
@@ -3986,6 +3986,28 @@ declare class InvalidStreamPartError extends AISDKError {
|
|
|
3986
3986
|
static isInstance(error: unknown): error is InvalidStreamPartError;
|
|
3987
3987
|
}
|
|
3988
3988
|
|
|
3989
|
+
declare const symbol$a: unique symbol;
|
|
3990
|
+
declare class InvalidToolApprovalError extends AISDKError {
|
|
3991
|
+
private readonly [symbol$a];
|
|
3992
|
+
readonly approvalId: string;
|
|
3993
|
+
constructor({ approvalId }: {
|
|
3994
|
+
approvalId: string;
|
|
3995
|
+
});
|
|
3996
|
+
static isInstance(error: unknown): error is InvalidToolApprovalError;
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3999
|
+
declare const symbol$9: unique symbol;
|
|
4000
|
+
declare class ToolCallNotFoundForApprovalError extends AISDKError {
|
|
4001
|
+
private readonly [symbol$9];
|
|
4002
|
+
readonly toolCallId: string;
|
|
4003
|
+
readonly approvalId: string;
|
|
4004
|
+
constructor({ toolCallId, approvalId, }: {
|
|
4005
|
+
toolCallId: string;
|
|
4006
|
+
approvalId: string;
|
|
4007
|
+
});
|
|
4008
|
+
static isInstance(error: unknown): error is ToolCallNotFoundForApprovalError;
|
|
4009
|
+
}
|
|
4010
|
+
|
|
3989
4011
|
declare const symbol$8: unique symbol;
|
|
3990
4012
|
/**
|
|
3991
4013
|
Thrown when no image could be generated. This can have multiple causes:
|
|
@@ -5425,4 +5447,4 @@ declare global {
|
|
|
5425
5447
|
var AI_SDK_LOG_WARNINGS: LogWarningsFunction | undefined | false;
|
|
5426
5448
|
}
|
|
5427
5449
|
|
|
5428
|
-
export { AbstractChat, Agent, AgentCallParameters, AgentStreamParameters, AsyncIterableStream, CallSettings, CallWarning, ChatAddToolApproveResponseFunction, ChatInit, ChatOnDataCallback, ChatOnErrorCallback, ChatOnFinishCallback, ChatOnToolCallCallback, ChatRequestOptions, ChatState, ChatStatus, ChatTransport, ChunkDetector, CompletionRequestOptions, ContentPart, CreateUIMessage, DataUIPart, DeepPartial, DefaultChatTransport, DynamicToolCall, DynamicToolError, DynamicToolResult, DynamicToolUIPart, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelMiddleware, EmbeddingModelUsage, ErrorHandler, ToolLoopAgent as Experimental_Agent, ToolLoopAgentSettings as Experimental_AgentSettings, DownloadFunction as Experimental_DownloadFunction, Experimental_GenerateImageResult, GeneratedFile as Experimental_GeneratedImage, InferAgentUIMessage as Experimental_InferAgentUIMessage, LogWarningsFunction as Experimental_LogWarningsFunction, SpeechResult as Experimental_SpeechResult, TranscriptionResult as Experimental_TranscriptionResult, FileUIPart, FinishReason, GenerateImageResult, GenerateObjectResult, GenerateTextOnFinishCallback, GenerateTextOnStepFinishCallback, GenerateTextResult, GeneratedAudioFile, GeneratedFile, HttpChatTransport, HttpChatTransportInitOptions, ImageModel, ImageModelProviderMetadata, ImageModelResponseMetadata, ImageModelUsage, InferAgentUIMessage, InferCompleteOutput as InferGenerateOutput, InferPartialOutput as InferStreamOutput, InferUIDataParts, InferUIMessageChunk, InferUITool, InferUITools, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidStreamPartError, InvalidToolInputError, JSONValue, JsonToSseTransformStream, LanguageModel, LanguageModelMiddleware, LanguageModelRequestMetadata, LanguageModelResponseMetadata, LanguageModelUsage, LogWarningsFunction, MessageConversionError, NoImageGeneratedError, NoObjectGeneratedError, NoOutputGeneratedError, NoSpeechGeneratedError, NoSuchProviderError, NoSuchToolError, ObjectStreamPart, output as Output, PrepareReconnectToStreamRequest, PrepareSendMessagesRequest, PrepareStepFunction, PrepareStepResult, Prompt, Provider, ProviderMetadata, ProviderRegistryProvider, ReasoningOutput, ReasoningUIPart, RepairTextFunction, RerankResult, RerankingModel, RetryError, SafeValidateUIMessagesResult, SerialJobExecutor, SourceDocumentUIPart, SourceUrlUIPart, SpeechModel, SpeechModelResponseMetadata, StaticToolCall, StaticToolError, StaticToolOutputDenied, StaticToolResult, StepResult, StepStartUIPart, StopCondition, StreamObjectOnFinishCallback, StreamObjectResult, StreamTextOnChunkCallback, StreamTextOnErrorCallback, StreamTextOnFinishCallback, StreamTextOnStepFinishCallback, StreamTextResult, StreamTextTransform, TelemetrySettings, TextStreamChatTransport, TextStreamPart, TextUIPart, ToolApprovalRequestOutput, ToolCallRepairError, ToolCallRepairFunction, ToolChoice, ToolLoopAgent, ToolLoopAgentOnFinishCallback, ToolLoopAgentOnStepFinishCallback, ToolLoopAgentSettings, ToolSet, ToolUIPart, TranscriptionModel, TranscriptionModelResponseMetadata, TypedToolCall, TypedToolError, TypedToolOutputDenied, TypedToolResult, UIDataPartSchemas, UIDataTypes, UIMessage, UIMessageChunk, UIMessagePart, UIMessageStreamOnFinishCallback, UIMessageStreamOptions, UIMessageStreamWriter, UITool, UIToolInvocation, UITools, UI_MESSAGE_STREAM_HEADERS, UnsupportedModelVersionError, UseCompletionOptions, Warning, addToolInputExamplesMiddleware, assistantModelMessageSchema, callCompletionApi, consumeStream, convertFileListToFileUIParts, convertToModelMessages, cosineSimilarity, createAgentUIStream, createAgentUIStreamResponse, createProviderRegistry, createTextStreamResponse, createUIMessageStream, createUIMessageStreamResponse, customProvider, defaultEmbeddingSettingsMiddleware, defaultSettingsMiddleware, embed, embedMany, experimental_createProviderRegistry, experimental_customProvider, experimental_generateImage, generateSpeech as experimental_generateSpeech, transcribe as experimental_transcribe, extractReasoningMiddleware, generateImage, generateObject, generateText, getStaticToolName, getTextFromDataUrl, getToolName, getToolOrDynamicToolName, hasToolCall, isDataUIPart, isDeepEqualData, isFileUIPart, isReasoningUIPart, isStaticToolUIPart, isTextUIPart, isToolOrDynamicToolUIPart, isToolUIPart, lastAssistantMessageIsCompleteWithApprovalResponses, lastAssistantMessageIsCompleteWithToolCalls, modelMessageSchema, parsePartialJson, pipeAgentUIStreamToResponse, pipeTextStreamToResponse, pipeUIMessageStreamToResponse, pruneMessages, readUIMessageStream, rerank, safeValidateUIMessages, simulateReadableStream, simulateStreamingMiddleware, smoothStream, stepCountIs, streamObject, streamText, systemModelMessageSchema, toolModelMessageSchema, uiMessageChunkSchema, userModelMessageSchema, validateUIMessages, wrapEmbeddingModel, wrapLanguageModel, wrapProvider };
|
|
5450
|
+
export { AbstractChat, Agent, AgentCallParameters, AgentStreamParameters, AsyncIterableStream, CallSettings, CallWarning, ChatAddToolApproveResponseFunction, ChatInit, ChatOnDataCallback, ChatOnErrorCallback, ChatOnFinishCallback, ChatOnToolCallCallback, ChatRequestOptions, ChatState, ChatStatus, ChatTransport, ChunkDetector, CompletionRequestOptions, ContentPart, CreateUIMessage, DataUIPart, DeepPartial, DefaultChatTransport, DynamicToolCall, DynamicToolError, DynamicToolResult, DynamicToolUIPart, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelMiddleware, EmbeddingModelUsage, ErrorHandler, ToolLoopAgent as Experimental_Agent, ToolLoopAgentSettings as Experimental_AgentSettings, DownloadFunction as Experimental_DownloadFunction, Experimental_GenerateImageResult, GeneratedFile as Experimental_GeneratedImage, InferAgentUIMessage as Experimental_InferAgentUIMessage, LogWarningsFunction as Experimental_LogWarningsFunction, SpeechResult as Experimental_SpeechResult, TranscriptionResult as Experimental_TranscriptionResult, FileUIPart, FinishReason, GenerateImageResult, GenerateObjectResult, GenerateTextOnFinishCallback, GenerateTextOnStepFinishCallback, GenerateTextResult, GeneratedAudioFile, GeneratedFile, HttpChatTransport, HttpChatTransportInitOptions, ImageModel, ImageModelProviderMetadata, ImageModelResponseMetadata, ImageModelUsage, InferAgentUIMessage, InferCompleteOutput as InferGenerateOutput, InferPartialOutput as InferStreamOutput, InferUIDataParts, InferUIMessageChunk, InferUITool, InferUITools, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidStreamPartError, InvalidToolApprovalError, InvalidToolInputError, JSONValue, JsonToSseTransformStream, LanguageModel, LanguageModelMiddleware, LanguageModelRequestMetadata, LanguageModelResponseMetadata, LanguageModelUsage, LogWarningsFunction, MessageConversionError, NoImageGeneratedError, NoObjectGeneratedError, NoOutputGeneratedError, NoSpeechGeneratedError, NoSuchProviderError, NoSuchToolError, ObjectStreamPart, output as Output, PrepareReconnectToStreamRequest, PrepareSendMessagesRequest, PrepareStepFunction, PrepareStepResult, Prompt, Provider, ProviderMetadata, ProviderRegistryProvider, ReasoningOutput, ReasoningUIPart, RepairTextFunction, RerankResult, RerankingModel, RetryError, SafeValidateUIMessagesResult, SerialJobExecutor, SourceDocumentUIPart, SourceUrlUIPart, SpeechModel, SpeechModelResponseMetadata, StaticToolCall, StaticToolError, StaticToolOutputDenied, StaticToolResult, StepResult, StepStartUIPart, StopCondition, StreamObjectOnFinishCallback, StreamObjectResult, StreamTextOnChunkCallback, StreamTextOnErrorCallback, StreamTextOnFinishCallback, StreamTextOnStepFinishCallback, StreamTextResult, StreamTextTransform, TelemetrySettings, TextStreamChatTransport, TextStreamPart, TextUIPart, ToolApprovalRequestOutput, ToolCallNotFoundForApprovalError, ToolCallRepairError, ToolCallRepairFunction, ToolChoice, ToolLoopAgent, ToolLoopAgentOnFinishCallback, ToolLoopAgentOnStepFinishCallback, ToolLoopAgentSettings, ToolSet, ToolUIPart, TranscriptionModel, TranscriptionModelResponseMetadata, TypedToolCall, TypedToolError, TypedToolOutputDenied, TypedToolResult, UIDataPartSchemas, UIDataTypes, UIMessage, UIMessageChunk, UIMessagePart, UIMessageStreamOnFinishCallback, UIMessageStreamOptions, UIMessageStreamWriter, UITool, UIToolInvocation, UITools, UI_MESSAGE_STREAM_HEADERS, UnsupportedModelVersionError, UseCompletionOptions, Warning, addToolInputExamplesMiddleware, assistantModelMessageSchema, callCompletionApi, consumeStream, convertFileListToFileUIParts, convertToModelMessages, cosineSimilarity, createAgentUIStream, createAgentUIStreamResponse, createProviderRegistry, createTextStreamResponse, createUIMessageStream, createUIMessageStreamResponse, customProvider, defaultEmbeddingSettingsMiddleware, defaultSettingsMiddleware, embed, embedMany, experimental_createProviderRegistry, experimental_customProvider, experimental_generateImage, generateSpeech as experimental_generateSpeech, transcribe as experimental_transcribe, extractReasoningMiddleware, generateImage, generateObject, generateText, getStaticToolName, getTextFromDataUrl, getToolName, getToolOrDynamicToolName, hasToolCall, isDataUIPart, isDeepEqualData, isFileUIPart, isReasoningUIPart, isStaticToolUIPart, isTextUIPart, isToolOrDynamicToolUIPart, isToolUIPart, lastAssistantMessageIsCompleteWithApprovalResponses, lastAssistantMessageIsCompleteWithToolCalls, modelMessageSchema, parsePartialJson, pipeAgentUIStreamToResponse, pipeTextStreamToResponse, pipeUIMessageStreamToResponse, pruneMessages, readUIMessageStream, rerank, safeValidateUIMessages, simulateReadableStream, simulateStreamingMiddleware, smoothStream, stepCountIs, streamObject, streamText, systemModelMessageSchema, toolModelMessageSchema, uiMessageChunkSchema, userModelMessageSchema, validateUIMessages, wrapEmbeddingModel, wrapLanguageModel, wrapProvider };
|
package/dist/index.d.ts
CHANGED
|
@@ -1192,9 +1192,9 @@ type StopCondition<TOOLS extends ToolSet> = (options: {
|
|
|
1192
1192
|
declare function stepCountIs(stepCount: number): StopCondition<any>;
|
|
1193
1193
|
declare function hasToolCall(toolName: string): StopCondition<any>;
|
|
1194
1194
|
|
|
1195
|
-
declare const symbol$
|
|
1195
|
+
declare const symbol$e: unique symbol;
|
|
1196
1196
|
declare class InvalidToolInputError extends AISDKError {
|
|
1197
|
-
private readonly [symbol$
|
|
1197
|
+
private readonly [symbol$e];
|
|
1198
1198
|
readonly toolName: string;
|
|
1199
1199
|
readonly toolInput: string;
|
|
1200
1200
|
constructor({ toolInput, toolName, cause, message, }: {
|
|
@@ -1206,9 +1206,9 @@ declare class InvalidToolInputError extends AISDKError {
|
|
|
1206
1206
|
static isInstance(error: unknown): error is InvalidToolInputError;
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
|
-
declare const symbol$
|
|
1209
|
+
declare const symbol$d: unique symbol;
|
|
1210
1210
|
declare class NoSuchToolError extends AISDKError {
|
|
1211
|
-
private readonly [symbol$
|
|
1211
|
+
private readonly [symbol$d];
|
|
1212
1212
|
readonly toolName: string;
|
|
1213
1213
|
readonly availableTools: string[] | undefined;
|
|
1214
1214
|
constructor({ toolName, availableTools, message, }: {
|
|
@@ -3884,9 +3884,9 @@ declare function embedMany({ model: modelArg, values, maxParallelCalls, maxRetri
|
|
|
3884
3884
|
maxParallelCalls?: number;
|
|
3885
3885
|
}): Promise<EmbedManyResult>;
|
|
3886
3886
|
|
|
3887
|
-
declare const symbol$
|
|
3887
|
+
declare const symbol$c: unique symbol;
|
|
3888
3888
|
declare class InvalidArgumentError extends AISDKError {
|
|
3889
|
-
private readonly [symbol$
|
|
3889
|
+
private readonly [symbol$c];
|
|
3890
3890
|
readonly parameter: string;
|
|
3891
3891
|
readonly value: unknown;
|
|
3892
3892
|
constructor({ parameter, value, message, }: {
|
|
@@ -3975,9 +3975,9 @@ type SingleRequestTextStreamPart<TOOLS extends ToolSet> = {
|
|
|
3975
3975
|
rawValue: unknown;
|
|
3976
3976
|
};
|
|
3977
3977
|
|
|
3978
|
-
declare const symbol$
|
|
3978
|
+
declare const symbol$b: unique symbol;
|
|
3979
3979
|
declare class InvalidStreamPartError extends AISDKError {
|
|
3980
|
-
private readonly [symbol$
|
|
3980
|
+
private readonly [symbol$b];
|
|
3981
3981
|
readonly chunk: SingleRequestTextStreamPart<any>;
|
|
3982
3982
|
constructor({ chunk, message, }: {
|
|
3983
3983
|
chunk: SingleRequestTextStreamPart<any>;
|
|
@@ -3986,6 +3986,28 @@ declare class InvalidStreamPartError extends AISDKError {
|
|
|
3986
3986
|
static isInstance(error: unknown): error is InvalidStreamPartError;
|
|
3987
3987
|
}
|
|
3988
3988
|
|
|
3989
|
+
declare const symbol$a: unique symbol;
|
|
3990
|
+
declare class InvalidToolApprovalError extends AISDKError {
|
|
3991
|
+
private readonly [symbol$a];
|
|
3992
|
+
readonly approvalId: string;
|
|
3993
|
+
constructor({ approvalId }: {
|
|
3994
|
+
approvalId: string;
|
|
3995
|
+
});
|
|
3996
|
+
static isInstance(error: unknown): error is InvalidToolApprovalError;
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3999
|
+
declare const symbol$9: unique symbol;
|
|
4000
|
+
declare class ToolCallNotFoundForApprovalError extends AISDKError {
|
|
4001
|
+
private readonly [symbol$9];
|
|
4002
|
+
readonly toolCallId: string;
|
|
4003
|
+
readonly approvalId: string;
|
|
4004
|
+
constructor({ toolCallId, approvalId, }: {
|
|
4005
|
+
toolCallId: string;
|
|
4006
|
+
approvalId: string;
|
|
4007
|
+
});
|
|
4008
|
+
static isInstance(error: unknown): error is ToolCallNotFoundForApprovalError;
|
|
4009
|
+
}
|
|
4010
|
+
|
|
3989
4011
|
declare const symbol$8: unique symbol;
|
|
3990
4012
|
/**
|
|
3991
4013
|
Thrown when no image could be generated. This can have multiple causes:
|
|
@@ -5425,4 +5447,4 @@ declare global {
|
|
|
5425
5447
|
var AI_SDK_LOG_WARNINGS: LogWarningsFunction | undefined | false;
|
|
5426
5448
|
}
|
|
5427
5449
|
|
|
5428
|
-
export { AbstractChat, Agent, AgentCallParameters, AgentStreamParameters, AsyncIterableStream, CallSettings, CallWarning, ChatAddToolApproveResponseFunction, ChatInit, ChatOnDataCallback, ChatOnErrorCallback, ChatOnFinishCallback, ChatOnToolCallCallback, ChatRequestOptions, ChatState, ChatStatus, ChatTransport, ChunkDetector, CompletionRequestOptions, ContentPart, CreateUIMessage, DataUIPart, DeepPartial, DefaultChatTransport, DynamicToolCall, DynamicToolError, DynamicToolResult, DynamicToolUIPart, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelMiddleware, EmbeddingModelUsage, ErrorHandler, ToolLoopAgent as Experimental_Agent, ToolLoopAgentSettings as Experimental_AgentSettings, DownloadFunction as Experimental_DownloadFunction, Experimental_GenerateImageResult, GeneratedFile as Experimental_GeneratedImage, InferAgentUIMessage as Experimental_InferAgentUIMessage, LogWarningsFunction as Experimental_LogWarningsFunction, SpeechResult as Experimental_SpeechResult, TranscriptionResult as Experimental_TranscriptionResult, FileUIPart, FinishReason, GenerateImageResult, GenerateObjectResult, GenerateTextOnFinishCallback, GenerateTextOnStepFinishCallback, GenerateTextResult, GeneratedAudioFile, GeneratedFile, HttpChatTransport, HttpChatTransportInitOptions, ImageModel, ImageModelProviderMetadata, ImageModelResponseMetadata, ImageModelUsage, InferAgentUIMessage, InferCompleteOutput as InferGenerateOutput, InferPartialOutput as InferStreamOutput, InferUIDataParts, InferUIMessageChunk, InferUITool, InferUITools, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidStreamPartError, InvalidToolInputError, JSONValue, JsonToSseTransformStream, LanguageModel, LanguageModelMiddleware, LanguageModelRequestMetadata, LanguageModelResponseMetadata, LanguageModelUsage, LogWarningsFunction, MessageConversionError, NoImageGeneratedError, NoObjectGeneratedError, NoOutputGeneratedError, NoSpeechGeneratedError, NoSuchProviderError, NoSuchToolError, ObjectStreamPart, output as Output, PrepareReconnectToStreamRequest, PrepareSendMessagesRequest, PrepareStepFunction, PrepareStepResult, Prompt, Provider, ProviderMetadata, ProviderRegistryProvider, ReasoningOutput, ReasoningUIPart, RepairTextFunction, RerankResult, RerankingModel, RetryError, SafeValidateUIMessagesResult, SerialJobExecutor, SourceDocumentUIPart, SourceUrlUIPart, SpeechModel, SpeechModelResponseMetadata, StaticToolCall, StaticToolError, StaticToolOutputDenied, StaticToolResult, StepResult, StepStartUIPart, StopCondition, StreamObjectOnFinishCallback, StreamObjectResult, StreamTextOnChunkCallback, StreamTextOnErrorCallback, StreamTextOnFinishCallback, StreamTextOnStepFinishCallback, StreamTextResult, StreamTextTransform, TelemetrySettings, TextStreamChatTransport, TextStreamPart, TextUIPart, ToolApprovalRequestOutput, ToolCallRepairError, ToolCallRepairFunction, ToolChoice, ToolLoopAgent, ToolLoopAgentOnFinishCallback, ToolLoopAgentOnStepFinishCallback, ToolLoopAgentSettings, ToolSet, ToolUIPart, TranscriptionModel, TranscriptionModelResponseMetadata, TypedToolCall, TypedToolError, TypedToolOutputDenied, TypedToolResult, UIDataPartSchemas, UIDataTypes, UIMessage, UIMessageChunk, UIMessagePart, UIMessageStreamOnFinishCallback, UIMessageStreamOptions, UIMessageStreamWriter, UITool, UIToolInvocation, UITools, UI_MESSAGE_STREAM_HEADERS, UnsupportedModelVersionError, UseCompletionOptions, Warning, addToolInputExamplesMiddleware, assistantModelMessageSchema, callCompletionApi, consumeStream, convertFileListToFileUIParts, convertToModelMessages, cosineSimilarity, createAgentUIStream, createAgentUIStreamResponse, createProviderRegistry, createTextStreamResponse, createUIMessageStream, createUIMessageStreamResponse, customProvider, defaultEmbeddingSettingsMiddleware, defaultSettingsMiddleware, embed, embedMany, experimental_createProviderRegistry, experimental_customProvider, experimental_generateImage, generateSpeech as experimental_generateSpeech, transcribe as experimental_transcribe, extractReasoningMiddleware, generateImage, generateObject, generateText, getStaticToolName, getTextFromDataUrl, getToolName, getToolOrDynamicToolName, hasToolCall, isDataUIPart, isDeepEqualData, isFileUIPart, isReasoningUIPart, isStaticToolUIPart, isTextUIPart, isToolOrDynamicToolUIPart, isToolUIPart, lastAssistantMessageIsCompleteWithApprovalResponses, lastAssistantMessageIsCompleteWithToolCalls, modelMessageSchema, parsePartialJson, pipeAgentUIStreamToResponse, pipeTextStreamToResponse, pipeUIMessageStreamToResponse, pruneMessages, readUIMessageStream, rerank, safeValidateUIMessages, simulateReadableStream, simulateStreamingMiddleware, smoothStream, stepCountIs, streamObject, streamText, systemModelMessageSchema, toolModelMessageSchema, uiMessageChunkSchema, userModelMessageSchema, validateUIMessages, wrapEmbeddingModel, wrapLanguageModel, wrapProvider };
|
|
5450
|
+
export { AbstractChat, Agent, AgentCallParameters, AgentStreamParameters, AsyncIterableStream, CallSettings, CallWarning, ChatAddToolApproveResponseFunction, ChatInit, ChatOnDataCallback, ChatOnErrorCallback, ChatOnFinishCallback, ChatOnToolCallCallback, ChatRequestOptions, ChatState, ChatStatus, ChatTransport, ChunkDetector, CompletionRequestOptions, ContentPart, CreateUIMessage, DataUIPart, DeepPartial, DefaultChatTransport, DynamicToolCall, DynamicToolError, DynamicToolResult, DynamicToolUIPart, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelMiddleware, EmbeddingModelUsage, ErrorHandler, ToolLoopAgent as Experimental_Agent, ToolLoopAgentSettings as Experimental_AgentSettings, DownloadFunction as Experimental_DownloadFunction, Experimental_GenerateImageResult, GeneratedFile as Experimental_GeneratedImage, InferAgentUIMessage as Experimental_InferAgentUIMessage, LogWarningsFunction as Experimental_LogWarningsFunction, SpeechResult as Experimental_SpeechResult, TranscriptionResult as Experimental_TranscriptionResult, FileUIPart, FinishReason, GenerateImageResult, GenerateObjectResult, GenerateTextOnFinishCallback, GenerateTextOnStepFinishCallback, GenerateTextResult, GeneratedAudioFile, GeneratedFile, HttpChatTransport, HttpChatTransportInitOptions, ImageModel, ImageModelProviderMetadata, ImageModelResponseMetadata, ImageModelUsage, InferAgentUIMessage, InferCompleteOutput as InferGenerateOutput, InferPartialOutput as InferStreamOutput, InferUIDataParts, InferUIMessageChunk, InferUITool, InferUITools, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidStreamPartError, InvalidToolApprovalError, InvalidToolInputError, JSONValue, JsonToSseTransformStream, LanguageModel, LanguageModelMiddleware, LanguageModelRequestMetadata, LanguageModelResponseMetadata, LanguageModelUsage, LogWarningsFunction, MessageConversionError, NoImageGeneratedError, NoObjectGeneratedError, NoOutputGeneratedError, NoSpeechGeneratedError, NoSuchProviderError, NoSuchToolError, ObjectStreamPart, output as Output, PrepareReconnectToStreamRequest, PrepareSendMessagesRequest, PrepareStepFunction, PrepareStepResult, Prompt, Provider, ProviderMetadata, ProviderRegistryProvider, ReasoningOutput, ReasoningUIPart, RepairTextFunction, RerankResult, RerankingModel, RetryError, SafeValidateUIMessagesResult, SerialJobExecutor, SourceDocumentUIPart, SourceUrlUIPart, SpeechModel, SpeechModelResponseMetadata, StaticToolCall, StaticToolError, StaticToolOutputDenied, StaticToolResult, StepResult, StepStartUIPart, StopCondition, StreamObjectOnFinishCallback, StreamObjectResult, StreamTextOnChunkCallback, StreamTextOnErrorCallback, StreamTextOnFinishCallback, StreamTextOnStepFinishCallback, StreamTextResult, StreamTextTransform, TelemetrySettings, TextStreamChatTransport, TextStreamPart, TextUIPart, ToolApprovalRequestOutput, ToolCallNotFoundForApprovalError, ToolCallRepairError, ToolCallRepairFunction, ToolChoice, ToolLoopAgent, ToolLoopAgentOnFinishCallback, ToolLoopAgentOnStepFinishCallback, ToolLoopAgentSettings, ToolSet, ToolUIPart, TranscriptionModel, TranscriptionModelResponseMetadata, TypedToolCall, TypedToolError, TypedToolOutputDenied, TypedToolResult, UIDataPartSchemas, UIDataTypes, UIMessage, UIMessageChunk, UIMessagePart, UIMessageStreamOnFinishCallback, UIMessageStreamOptions, UIMessageStreamWriter, UITool, UIToolInvocation, UITools, UI_MESSAGE_STREAM_HEADERS, UnsupportedModelVersionError, UseCompletionOptions, Warning, addToolInputExamplesMiddleware, assistantModelMessageSchema, callCompletionApi, consumeStream, convertFileListToFileUIParts, convertToModelMessages, cosineSimilarity, createAgentUIStream, createAgentUIStreamResponse, createProviderRegistry, createTextStreamResponse, createUIMessageStream, createUIMessageStreamResponse, customProvider, defaultEmbeddingSettingsMiddleware, defaultSettingsMiddleware, embed, embedMany, experimental_createProviderRegistry, experimental_customProvider, experimental_generateImage, generateSpeech as experimental_generateSpeech, transcribe as experimental_transcribe, extractReasoningMiddleware, generateImage, generateObject, generateText, getStaticToolName, getTextFromDataUrl, getToolName, getToolOrDynamicToolName, hasToolCall, isDataUIPart, isDeepEqualData, isFileUIPart, isReasoningUIPart, isStaticToolUIPart, isTextUIPart, isToolOrDynamicToolUIPart, isToolUIPart, lastAssistantMessageIsCompleteWithApprovalResponses, lastAssistantMessageIsCompleteWithToolCalls, modelMessageSchema, parsePartialJson, pipeAgentUIStreamToResponse, pipeTextStreamToResponse, pipeUIMessageStreamToResponse, pruneMessages, readUIMessageStream, rerank, safeValidateUIMessages, simulateReadableStream, simulateStreamingMiddleware, smoothStream, stepCountIs, streamObject, streamText, systemModelMessageSchema, toolModelMessageSchema, uiMessageChunkSchema, userModelMessageSchema, validateUIMessages, wrapEmbeddingModel, wrapLanguageModel, wrapProvider };
|