ai 3.4.13 → 3.4.15
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 +13 -0
- package/dist/index.d.mts +53 -13
- package/dist/index.d.ts +53 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# ai
|
2
2
|
|
3
|
+
## 3.4.15
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [98a3b08]
|
8
|
+
- @ai-sdk/react@0.0.64
|
9
|
+
|
10
|
+
## 3.4.14
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- e930f40: feat (ai/core): expose core tool result and tool call types
|
15
|
+
|
3
16
|
## 3.4.13
|
4
17
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
@@ -1317,7 +1317,25 @@ onlyBar('bar');
|
|
1317
1317
|
*/
|
1318
1318
|
type ValueOf<ObjectType, ValueType extends keyof ObjectType = keyof ObjectType> = ObjectType[ValueType];
|
1319
1319
|
|
1320
|
-
|
1320
|
+
/**
|
1321
|
+
Typed tool call that is returned by `generateText` and `streamText`.
|
1322
|
+
It contains the tool call ID, the tool name, and the tool arguments.
|
1323
|
+
*/
|
1324
|
+
interface ToolCall<NAME extends string, ARGS> {
|
1325
|
+
/**
|
1326
|
+
ID of the tool call. This ID is used to match the tool call with the tool result.
|
1327
|
+
*/
|
1328
|
+
toolCallId: string;
|
1329
|
+
/**
|
1330
|
+
Name of the tool that is being called.
|
1331
|
+
*/
|
1332
|
+
toolName: NAME;
|
1333
|
+
/**
|
1334
|
+
Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
|
1335
|
+
*/
|
1336
|
+
args: ARGS;
|
1337
|
+
}
|
1338
|
+
type ToolCallUnion<TOOLS extends Record<string, CoreTool>> = ValueOf<{
|
1321
1339
|
[NAME in keyof TOOLS]: {
|
1322
1340
|
type: 'tool-call';
|
1323
1341
|
toolCallId: string;
|
@@ -1325,8 +1343,30 @@ type ToToolCall<TOOLS extends Record<string, CoreTool>> = ValueOf<{
|
|
1325
1343
|
args: inferParameters<TOOLS[NAME]['parameters']>;
|
1326
1344
|
};
|
1327
1345
|
}>;
|
1328
|
-
type
|
1346
|
+
type ToolCallArray<TOOLS extends Record<string, CoreTool>> = Array<ToolCallUnion<TOOLS>>;
|
1329
1347
|
|
1348
|
+
/**
|
1349
|
+
Typed tool result that is returned by `generateText` and `streamText`.
|
1350
|
+
It contains the tool call ID, the tool name, the tool arguments, and the tool result.
|
1351
|
+
*/
|
1352
|
+
interface ToolResult<NAME extends string, ARGS, RESULT> {
|
1353
|
+
/**
|
1354
|
+
ID of the tool call. This ID is used to match the tool call with the tool result.
|
1355
|
+
*/
|
1356
|
+
toolCallId: string;
|
1357
|
+
/**
|
1358
|
+
Name of the tool that was called.
|
1359
|
+
*/
|
1360
|
+
toolName: NAME;
|
1361
|
+
/**
|
1362
|
+
Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
|
1363
|
+
*/
|
1364
|
+
args: ARGS;
|
1365
|
+
/**
|
1366
|
+
Result of the tool call. This is the result of the tool's execution.
|
1367
|
+
*/
|
1368
|
+
result: RESULT;
|
1369
|
+
}
|
1330
1370
|
type ToToolsWithExecute<TOOLS extends Record<string, CoreTool>> = {
|
1331
1371
|
[K in keyof TOOLS as TOOLS[K] extends {
|
1332
1372
|
execute: any;
|
@@ -1344,8 +1384,8 @@ type ToToolResultObject<TOOLS extends Record<string, CoreTool>> = ValueOf<{
|
|
1344
1384
|
result: Awaited<ReturnType<Exclude<TOOLS[NAME]['execute'], undefined>>>;
|
1345
1385
|
};
|
1346
1386
|
}>;
|
1347
|
-
type
|
1348
|
-
type
|
1387
|
+
type ToolResultUnion<TOOLS extends Record<string, CoreTool>> = ToToolResultObject<ToToolsWithDefinedExecute<ToToolsWithExecute<TOOLS>>>;
|
1388
|
+
type ToolResultArray<TOOLS extends Record<string, CoreTool>> = Array<ToolResultUnion<TOOLS>>;
|
1349
1389
|
|
1350
1390
|
/**
|
1351
1391
|
* The result of a single step in the generation process.
|
@@ -1358,11 +1398,11 @@ type StepResult<TOOLS extends Record<string, CoreTool>> = {
|
|
1358
1398
|
/**
|
1359
1399
|
The tool calls that were made during the generation.
|
1360
1400
|
*/
|
1361
|
-
readonly toolCalls:
|
1401
|
+
readonly toolCalls: ToolCallArray<TOOLS>;
|
1362
1402
|
/**
|
1363
1403
|
The results of the tool calls.
|
1364
1404
|
*/
|
1365
|
-
readonly toolResults:
|
1405
|
+
readonly toolResults: ToolResultArray<TOOLS>;
|
1366
1406
|
/**
|
1367
1407
|
The reason why the generation finished.
|
1368
1408
|
*/
|
@@ -1425,11 +1465,11 @@ interface GenerateTextResult<TOOLS extends Record<string, CoreTool>> {
|
|
1425
1465
|
/**
|
1426
1466
|
The tool calls that were made during the generation.
|
1427
1467
|
*/
|
1428
|
-
readonly toolCalls:
|
1468
|
+
readonly toolCalls: ToolCallArray<TOOLS>;
|
1429
1469
|
/**
|
1430
1470
|
The results of the tool calls.
|
1431
1471
|
*/
|
1432
|
-
readonly toolResults:
|
1472
|
+
readonly toolResults: ToolResultArray<TOOLS>;
|
1433
1473
|
/**
|
1434
1474
|
The reason why the generation finished.
|
1435
1475
|
*/
|
@@ -1655,13 +1695,13 @@ interface StreamTextResult<TOOLS extends Record<string, CoreTool>> {
|
|
1655
1695
|
|
1656
1696
|
Resolved when the response is finished.
|
1657
1697
|
*/
|
1658
|
-
readonly toolCalls: Promise<
|
1698
|
+
readonly toolCalls: Promise<ToolCallUnion<TOOLS>[]>;
|
1659
1699
|
/**
|
1660
1700
|
The tool results that have been generated in the last step.
|
1661
1701
|
|
1662
1702
|
Resolved when the all tool executions are finished.
|
1663
1703
|
*/
|
1664
|
-
readonly toolResults: Promise<
|
1704
|
+
readonly toolResults: Promise<ToolResultUnion<TOOLS>[]>;
|
1665
1705
|
/**
|
1666
1706
|
Optional raw response data.
|
1667
1707
|
|
@@ -1813,7 +1853,7 @@ type TextStreamPart<TOOLS extends Record<string, CoreTool>> = {
|
|
1813
1853
|
textDelta: string;
|
1814
1854
|
} | ({
|
1815
1855
|
type: 'tool-call';
|
1816
|
-
} &
|
1856
|
+
} & ToolCallUnion<TOOLS>) | {
|
1817
1857
|
type: 'tool-call-streaming-start';
|
1818
1858
|
toolCallId: string;
|
1819
1859
|
toolName: string;
|
@@ -1824,7 +1864,7 @@ type TextStreamPart<TOOLS extends Record<string, CoreTool>> = {
|
|
1824
1864
|
argsTextDelta: string;
|
1825
1865
|
} | ({
|
1826
1866
|
type: 'tool-result';
|
1827
|
-
} &
|
1867
|
+
} & ToolResultUnion<TOOLS>) | {
|
1828
1868
|
type: 'step-finish';
|
1829
1869
|
finishReason: FinishReason;
|
1830
1870
|
logprobs?: LogProbs;
|
@@ -3191,4 +3231,4 @@ declare const generateId: (size?: number) => string;
|
|
3191
3231
|
*/
|
3192
3232
|
declare const nanoid: (size?: number) => string;
|
3193
3233
|
|
3194
|
-
export { AIStream, AIStreamCallbacksAndOptions, AIStreamParser, AIStreamParserOptions, AWSBedrockAnthropicMessagesStream, AWSBedrockAnthropicStream, AWSBedrockCohereStream, AWSBedrockLlama2Stream, AWSBedrockStream, AnthropicStream, AssistantContent, AssistantResponse, CallWarning, CohereStream, CompletionTokenUsage, CompletionUsage, CoreAssistantMessage, CoreMessage, CoreSystemMessage, CoreTool, CoreToolChoice, CoreToolMessage, CoreUserMessage, DataContent, DownloadError, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelUsage, EmbeddingTokenUsage, ExperimentalAssistantMessage, ExperimentalMessage, ExperimentalTool, ExperimentalToolMessage, ExperimentalUserMessage, Experimental_LanguageModelV1Middleware, FilePart, FinishReason, FunctionCallPayload, GenerateObjectResult, GenerateTextResult, GoogleGenerativeAIStream, HuggingFaceStream, ImagePart, InkeepAIStreamCallbacksAndOptions, InkeepChatResultCallbacks, InkeepOnFinalMetadata, InkeepStream, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidToolArgumentsError, langchainAdapter as LangChainAdapter, LangChainStream, LanguageModel, LanguageModelResponseMetadata, LanguageModelResponseMetadataWithHeaders, LanguageModelUsage, llamaindexAdapter as LlamaIndexAdapter, LogProbs, MessageConversionError, MistralStream, NoObjectGeneratedError, NoSuchProviderError, NoSuchToolError, ObjectStreamPart, OpenAIStream, OpenAIStreamCallbacks, Provider, ProviderMetadata, ReplicateStream, RetryError, StepResult, StreamData, StreamObjectResult, StreamTextResult, StreamingTextResponse, TextPart$1 as TextPart, TextStreamPart, TokenUsage, ToolCallPart, ToolCallPayload, ToolContent, ToolResultPart, UserContent, convertToCoreMessages, cosineSimilarity, createCallbacksTransformer, createEventStreamTransformer, createStreamDataTransformer, embed, embedMany, experimental_AssistantResponse, experimental_ModelRegistry, experimental_Provider, experimental_ProviderRegistry, experimental_StreamData, experimental_createModelRegistry, experimental_createProviderRegistry, experimental_customProvider, experimental_generateObject, experimental_generateText, experimental_streamObject, experimental_streamText, experimental_wrapLanguageModel, generateId, generateObject, generateText, nanoid, readableFromAsyncIterable, streamObject, streamText, streamToResponse, tool, trimStartOfStreamHelper };
|
3234
|
+
export { AIStream, AIStreamCallbacksAndOptions, AIStreamParser, AIStreamParserOptions, AWSBedrockAnthropicMessagesStream, AWSBedrockAnthropicStream, AWSBedrockCohereStream, AWSBedrockLlama2Stream, AWSBedrockStream, AnthropicStream, AssistantContent, AssistantResponse, CallWarning, CohereStream, CompletionTokenUsage, CompletionUsage, CoreAssistantMessage, CoreMessage, CoreSystemMessage, CoreTool, ToolCall as CoreToolCall, ToolCallUnion as CoreToolCallUnion, CoreToolChoice, CoreToolMessage, ToolResult as CoreToolResult, ToolResultUnion as CoreToolResultUnion, CoreUserMessage, DataContent, DownloadError, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelUsage, EmbeddingTokenUsage, ExperimentalAssistantMessage, ExperimentalMessage, ExperimentalTool, ExperimentalToolMessage, ExperimentalUserMessage, Experimental_LanguageModelV1Middleware, FilePart, FinishReason, FunctionCallPayload, GenerateObjectResult, GenerateTextResult, GoogleGenerativeAIStream, HuggingFaceStream, ImagePart, InkeepAIStreamCallbacksAndOptions, InkeepChatResultCallbacks, InkeepOnFinalMetadata, InkeepStream, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidToolArgumentsError, langchainAdapter as LangChainAdapter, LangChainStream, LanguageModel, LanguageModelResponseMetadata, LanguageModelResponseMetadataWithHeaders, LanguageModelUsage, llamaindexAdapter as LlamaIndexAdapter, LogProbs, MessageConversionError, MistralStream, NoObjectGeneratedError, NoSuchProviderError, NoSuchToolError, ObjectStreamPart, OpenAIStream, OpenAIStreamCallbacks, Provider, ProviderMetadata, ReplicateStream, RetryError, StepResult, StreamData, StreamObjectResult, StreamTextResult, StreamingTextResponse, TextPart$1 as TextPart, TextStreamPart, TokenUsage, ToolCallPart, ToolCallPayload, ToolContent, ToolResultPart, UserContent, convertToCoreMessages, cosineSimilarity, createCallbacksTransformer, createEventStreamTransformer, createStreamDataTransformer, embed, embedMany, experimental_AssistantResponse, experimental_ModelRegistry, experimental_Provider, experimental_ProviderRegistry, experimental_StreamData, experimental_createModelRegistry, experimental_createProviderRegistry, experimental_customProvider, experimental_generateObject, experimental_generateText, experimental_streamObject, experimental_streamText, experimental_wrapLanguageModel, generateId, generateObject, generateText, nanoid, readableFromAsyncIterable, streamObject, streamText, streamToResponse, tool, trimStartOfStreamHelper };
|
package/dist/index.d.ts
CHANGED
@@ -1317,7 +1317,25 @@ onlyBar('bar');
|
|
1317
1317
|
*/
|
1318
1318
|
type ValueOf<ObjectType, ValueType extends keyof ObjectType = keyof ObjectType> = ObjectType[ValueType];
|
1319
1319
|
|
1320
|
-
|
1320
|
+
/**
|
1321
|
+
Typed tool call that is returned by `generateText` and `streamText`.
|
1322
|
+
It contains the tool call ID, the tool name, and the tool arguments.
|
1323
|
+
*/
|
1324
|
+
interface ToolCall<NAME extends string, ARGS> {
|
1325
|
+
/**
|
1326
|
+
ID of the tool call. This ID is used to match the tool call with the tool result.
|
1327
|
+
*/
|
1328
|
+
toolCallId: string;
|
1329
|
+
/**
|
1330
|
+
Name of the tool that is being called.
|
1331
|
+
*/
|
1332
|
+
toolName: NAME;
|
1333
|
+
/**
|
1334
|
+
Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
|
1335
|
+
*/
|
1336
|
+
args: ARGS;
|
1337
|
+
}
|
1338
|
+
type ToolCallUnion<TOOLS extends Record<string, CoreTool>> = ValueOf<{
|
1321
1339
|
[NAME in keyof TOOLS]: {
|
1322
1340
|
type: 'tool-call';
|
1323
1341
|
toolCallId: string;
|
@@ -1325,8 +1343,30 @@ type ToToolCall<TOOLS extends Record<string, CoreTool>> = ValueOf<{
|
|
1325
1343
|
args: inferParameters<TOOLS[NAME]['parameters']>;
|
1326
1344
|
};
|
1327
1345
|
}>;
|
1328
|
-
type
|
1346
|
+
type ToolCallArray<TOOLS extends Record<string, CoreTool>> = Array<ToolCallUnion<TOOLS>>;
|
1329
1347
|
|
1348
|
+
/**
|
1349
|
+
Typed tool result that is returned by `generateText` and `streamText`.
|
1350
|
+
It contains the tool call ID, the tool name, the tool arguments, and the tool result.
|
1351
|
+
*/
|
1352
|
+
interface ToolResult<NAME extends string, ARGS, RESULT> {
|
1353
|
+
/**
|
1354
|
+
ID of the tool call. This ID is used to match the tool call with the tool result.
|
1355
|
+
*/
|
1356
|
+
toolCallId: string;
|
1357
|
+
/**
|
1358
|
+
Name of the tool that was called.
|
1359
|
+
*/
|
1360
|
+
toolName: NAME;
|
1361
|
+
/**
|
1362
|
+
Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
|
1363
|
+
*/
|
1364
|
+
args: ARGS;
|
1365
|
+
/**
|
1366
|
+
Result of the tool call. This is the result of the tool's execution.
|
1367
|
+
*/
|
1368
|
+
result: RESULT;
|
1369
|
+
}
|
1330
1370
|
type ToToolsWithExecute<TOOLS extends Record<string, CoreTool>> = {
|
1331
1371
|
[K in keyof TOOLS as TOOLS[K] extends {
|
1332
1372
|
execute: any;
|
@@ -1344,8 +1384,8 @@ type ToToolResultObject<TOOLS extends Record<string, CoreTool>> = ValueOf<{
|
|
1344
1384
|
result: Awaited<ReturnType<Exclude<TOOLS[NAME]['execute'], undefined>>>;
|
1345
1385
|
};
|
1346
1386
|
}>;
|
1347
|
-
type
|
1348
|
-
type
|
1387
|
+
type ToolResultUnion<TOOLS extends Record<string, CoreTool>> = ToToolResultObject<ToToolsWithDefinedExecute<ToToolsWithExecute<TOOLS>>>;
|
1388
|
+
type ToolResultArray<TOOLS extends Record<string, CoreTool>> = Array<ToolResultUnion<TOOLS>>;
|
1349
1389
|
|
1350
1390
|
/**
|
1351
1391
|
* The result of a single step in the generation process.
|
@@ -1358,11 +1398,11 @@ type StepResult<TOOLS extends Record<string, CoreTool>> = {
|
|
1358
1398
|
/**
|
1359
1399
|
The tool calls that were made during the generation.
|
1360
1400
|
*/
|
1361
|
-
readonly toolCalls:
|
1401
|
+
readonly toolCalls: ToolCallArray<TOOLS>;
|
1362
1402
|
/**
|
1363
1403
|
The results of the tool calls.
|
1364
1404
|
*/
|
1365
|
-
readonly toolResults:
|
1405
|
+
readonly toolResults: ToolResultArray<TOOLS>;
|
1366
1406
|
/**
|
1367
1407
|
The reason why the generation finished.
|
1368
1408
|
*/
|
@@ -1425,11 +1465,11 @@ interface GenerateTextResult<TOOLS extends Record<string, CoreTool>> {
|
|
1425
1465
|
/**
|
1426
1466
|
The tool calls that were made during the generation.
|
1427
1467
|
*/
|
1428
|
-
readonly toolCalls:
|
1468
|
+
readonly toolCalls: ToolCallArray<TOOLS>;
|
1429
1469
|
/**
|
1430
1470
|
The results of the tool calls.
|
1431
1471
|
*/
|
1432
|
-
readonly toolResults:
|
1472
|
+
readonly toolResults: ToolResultArray<TOOLS>;
|
1433
1473
|
/**
|
1434
1474
|
The reason why the generation finished.
|
1435
1475
|
*/
|
@@ -1655,13 +1695,13 @@ interface StreamTextResult<TOOLS extends Record<string, CoreTool>> {
|
|
1655
1695
|
|
1656
1696
|
Resolved when the response is finished.
|
1657
1697
|
*/
|
1658
|
-
readonly toolCalls: Promise<
|
1698
|
+
readonly toolCalls: Promise<ToolCallUnion<TOOLS>[]>;
|
1659
1699
|
/**
|
1660
1700
|
The tool results that have been generated in the last step.
|
1661
1701
|
|
1662
1702
|
Resolved when the all tool executions are finished.
|
1663
1703
|
*/
|
1664
|
-
readonly toolResults: Promise<
|
1704
|
+
readonly toolResults: Promise<ToolResultUnion<TOOLS>[]>;
|
1665
1705
|
/**
|
1666
1706
|
Optional raw response data.
|
1667
1707
|
|
@@ -1813,7 +1853,7 @@ type TextStreamPart<TOOLS extends Record<string, CoreTool>> = {
|
|
1813
1853
|
textDelta: string;
|
1814
1854
|
} | ({
|
1815
1855
|
type: 'tool-call';
|
1816
|
-
} &
|
1856
|
+
} & ToolCallUnion<TOOLS>) | {
|
1817
1857
|
type: 'tool-call-streaming-start';
|
1818
1858
|
toolCallId: string;
|
1819
1859
|
toolName: string;
|
@@ -1824,7 +1864,7 @@ type TextStreamPart<TOOLS extends Record<string, CoreTool>> = {
|
|
1824
1864
|
argsTextDelta: string;
|
1825
1865
|
} | ({
|
1826
1866
|
type: 'tool-result';
|
1827
|
-
} &
|
1867
|
+
} & ToolResultUnion<TOOLS>) | {
|
1828
1868
|
type: 'step-finish';
|
1829
1869
|
finishReason: FinishReason;
|
1830
1870
|
logprobs?: LogProbs;
|
@@ -3191,4 +3231,4 @@ declare const generateId: (size?: number) => string;
|
|
3191
3231
|
*/
|
3192
3232
|
declare const nanoid: (size?: number) => string;
|
3193
3233
|
|
3194
|
-
export { AIStream, AIStreamCallbacksAndOptions, AIStreamParser, AIStreamParserOptions, AWSBedrockAnthropicMessagesStream, AWSBedrockAnthropicStream, AWSBedrockCohereStream, AWSBedrockLlama2Stream, AWSBedrockStream, AnthropicStream, AssistantContent, AssistantResponse, CallWarning, CohereStream, CompletionTokenUsage, CompletionUsage, CoreAssistantMessage, CoreMessage, CoreSystemMessage, CoreTool, CoreToolChoice, CoreToolMessage, CoreUserMessage, DataContent, DownloadError, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelUsage, EmbeddingTokenUsage, ExperimentalAssistantMessage, ExperimentalMessage, ExperimentalTool, ExperimentalToolMessage, ExperimentalUserMessage, Experimental_LanguageModelV1Middleware, FilePart, FinishReason, FunctionCallPayload, GenerateObjectResult, GenerateTextResult, GoogleGenerativeAIStream, HuggingFaceStream, ImagePart, InkeepAIStreamCallbacksAndOptions, InkeepChatResultCallbacks, InkeepOnFinalMetadata, InkeepStream, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidToolArgumentsError, langchainAdapter as LangChainAdapter, LangChainStream, LanguageModel, LanguageModelResponseMetadata, LanguageModelResponseMetadataWithHeaders, LanguageModelUsage, llamaindexAdapter as LlamaIndexAdapter, LogProbs, MessageConversionError, MistralStream, NoObjectGeneratedError, NoSuchProviderError, NoSuchToolError, ObjectStreamPart, OpenAIStream, OpenAIStreamCallbacks, Provider, ProviderMetadata, ReplicateStream, RetryError, StepResult, StreamData, StreamObjectResult, StreamTextResult, StreamingTextResponse, TextPart$1 as TextPart, TextStreamPart, TokenUsage, ToolCallPart, ToolCallPayload, ToolContent, ToolResultPart, UserContent, convertToCoreMessages, cosineSimilarity, createCallbacksTransformer, createEventStreamTransformer, createStreamDataTransformer, embed, embedMany, experimental_AssistantResponse, experimental_ModelRegistry, experimental_Provider, experimental_ProviderRegistry, experimental_StreamData, experimental_createModelRegistry, experimental_createProviderRegistry, experimental_customProvider, experimental_generateObject, experimental_generateText, experimental_streamObject, experimental_streamText, experimental_wrapLanguageModel, generateId, generateObject, generateText, nanoid, readableFromAsyncIterable, streamObject, streamText, streamToResponse, tool, trimStartOfStreamHelper };
|
3234
|
+
export { AIStream, AIStreamCallbacksAndOptions, AIStreamParser, AIStreamParserOptions, AWSBedrockAnthropicMessagesStream, AWSBedrockAnthropicStream, AWSBedrockCohereStream, AWSBedrockLlama2Stream, AWSBedrockStream, AnthropicStream, AssistantContent, AssistantResponse, CallWarning, CohereStream, CompletionTokenUsage, CompletionUsage, CoreAssistantMessage, CoreMessage, CoreSystemMessage, CoreTool, ToolCall as CoreToolCall, ToolCallUnion as CoreToolCallUnion, CoreToolChoice, CoreToolMessage, ToolResult as CoreToolResult, ToolResultUnion as CoreToolResultUnion, CoreUserMessage, DataContent, DownloadError, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelUsage, EmbeddingTokenUsage, ExperimentalAssistantMessage, ExperimentalMessage, ExperimentalTool, ExperimentalToolMessage, ExperimentalUserMessage, Experimental_LanguageModelV1Middleware, FilePart, FinishReason, FunctionCallPayload, GenerateObjectResult, GenerateTextResult, GoogleGenerativeAIStream, HuggingFaceStream, ImagePart, InkeepAIStreamCallbacksAndOptions, InkeepChatResultCallbacks, InkeepOnFinalMetadata, InkeepStream, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidToolArgumentsError, langchainAdapter as LangChainAdapter, LangChainStream, LanguageModel, LanguageModelResponseMetadata, LanguageModelResponseMetadataWithHeaders, LanguageModelUsage, llamaindexAdapter as LlamaIndexAdapter, LogProbs, MessageConversionError, MistralStream, NoObjectGeneratedError, NoSuchProviderError, NoSuchToolError, ObjectStreamPart, OpenAIStream, OpenAIStreamCallbacks, Provider, ProviderMetadata, ReplicateStream, RetryError, StepResult, StreamData, StreamObjectResult, StreamTextResult, StreamingTextResponse, TextPart$1 as TextPart, TextStreamPart, TokenUsage, ToolCallPart, ToolCallPayload, ToolContent, ToolResultPart, UserContent, convertToCoreMessages, cosineSimilarity, createCallbacksTransformer, createEventStreamTransformer, createStreamDataTransformer, embed, embedMany, experimental_AssistantResponse, experimental_ModelRegistry, experimental_Provider, experimental_ProviderRegistry, experimental_StreamData, experimental_createModelRegistry, experimental_createProviderRegistry, experimental_customProvider, experimental_generateObject, experimental_generateText, experimental_streamObject, experimental_streamText, experimental_wrapLanguageModel, generateId, generateObject, generateText, nanoid, readableFromAsyncIterable, streamObject, streamText, streamToResponse, tool, trimStartOfStreamHelper };
|