ai 3.4.12 → 3.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # ai
2
2
 
3
+ ## 3.4.14
4
+
5
+ ### Patch Changes
6
+
7
+ - e930f40: feat (ai/core): expose core tool result and tool call types
8
+
9
+ ## 3.4.13
10
+
11
+ ### Patch Changes
12
+
13
+ - fc39158: fix (ai/core): add abortSignal to tool helper function
14
+
3
15
  ## 3.4.12
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1245,9 +1245,13 @@ interface CoreTool<PARAMETERS extends Parameters = any, RESULT = any> {
1245
1245
  Helper function for inferring the execute args of a tool.
1246
1246
  */
1247
1247
  declare function tool<PARAMETERS extends Parameters, RESULT>(tool: CoreTool<PARAMETERS, RESULT> & {
1248
- execute: (args: inferParameters<PARAMETERS>) => PromiseLike<RESULT>;
1248
+ execute: (args: inferParameters<PARAMETERS>, options: {
1249
+ abortSignal?: AbortSignal;
1250
+ }) => PromiseLike<RESULT>;
1249
1251
  }): CoreTool<PARAMETERS, RESULT> & {
1250
- execute: (args: inferParameters<PARAMETERS>) => PromiseLike<RESULT>;
1252
+ execute: (args: inferParameters<PARAMETERS>, options: {
1253
+ abortSignal?: AbortSignal;
1254
+ }) => PromiseLike<RESULT>;
1251
1255
  };
1252
1256
  declare function tool<PARAMETERS extends Parameters, RESULT>(tool: CoreTool<PARAMETERS, RESULT> & {
1253
1257
  execute?: undefined;
@@ -1313,7 +1317,25 @@ onlyBar('bar');
1313
1317
  */
1314
1318
  type ValueOf<ObjectType, ValueType extends keyof ObjectType = keyof ObjectType> = ObjectType[ValueType];
1315
1319
 
1316
- type ToToolCall<TOOLS extends Record<string, CoreTool>> = ValueOf<{
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<{
1317
1339
  [NAME in keyof TOOLS]: {
1318
1340
  type: 'tool-call';
1319
1341
  toolCallId: string;
@@ -1321,8 +1343,30 @@ type ToToolCall<TOOLS extends Record<string, CoreTool>> = ValueOf<{
1321
1343
  args: inferParameters<TOOLS[NAME]['parameters']>;
1322
1344
  };
1323
1345
  }>;
1324
- type ToToolCallArray<TOOLS extends Record<string, CoreTool>> = Array<ToToolCall<TOOLS>>;
1346
+ type ToolCallArray<TOOLS extends Record<string, CoreTool>> = Array<ToolCallUnion<TOOLS>>;
1325
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
+ }
1326
1370
  type ToToolsWithExecute<TOOLS extends Record<string, CoreTool>> = {
1327
1371
  [K in keyof TOOLS as TOOLS[K] extends {
1328
1372
  execute: any;
@@ -1340,8 +1384,8 @@ type ToToolResultObject<TOOLS extends Record<string, CoreTool>> = ValueOf<{
1340
1384
  result: Awaited<ReturnType<Exclude<TOOLS[NAME]['execute'], undefined>>>;
1341
1385
  };
1342
1386
  }>;
1343
- type ToToolResult<TOOLS extends Record<string, CoreTool>> = ToToolResultObject<ToToolsWithDefinedExecute<ToToolsWithExecute<TOOLS>>>;
1344
- type ToToolResultArray<TOOLS extends Record<string, CoreTool>> = Array<ToToolResult<TOOLS>>;
1387
+ type ToolResultUnion<TOOLS extends Record<string, CoreTool>> = ToToolResultObject<ToToolsWithDefinedExecute<ToToolsWithExecute<TOOLS>>>;
1388
+ type ToolResultArray<TOOLS extends Record<string, CoreTool>> = Array<ToolResultUnion<TOOLS>>;
1345
1389
 
1346
1390
  /**
1347
1391
  * The result of a single step in the generation process.
@@ -1354,11 +1398,11 @@ type StepResult<TOOLS extends Record<string, CoreTool>> = {
1354
1398
  /**
1355
1399
  The tool calls that were made during the generation.
1356
1400
  */
1357
- readonly toolCalls: ToToolCallArray<TOOLS>;
1401
+ readonly toolCalls: ToolCallArray<TOOLS>;
1358
1402
  /**
1359
1403
  The results of the tool calls.
1360
1404
  */
1361
- readonly toolResults: ToToolResultArray<TOOLS>;
1405
+ readonly toolResults: ToolResultArray<TOOLS>;
1362
1406
  /**
1363
1407
  The reason why the generation finished.
1364
1408
  */
@@ -1421,11 +1465,11 @@ interface GenerateTextResult<TOOLS extends Record<string, CoreTool>> {
1421
1465
  /**
1422
1466
  The tool calls that were made during the generation.
1423
1467
  */
1424
- readonly toolCalls: ToToolCallArray<TOOLS>;
1468
+ readonly toolCalls: ToolCallArray<TOOLS>;
1425
1469
  /**
1426
1470
  The results of the tool calls.
1427
1471
  */
1428
- readonly toolResults: ToToolResultArray<TOOLS>;
1472
+ readonly toolResults: ToolResultArray<TOOLS>;
1429
1473
  /**
1430
1474
  The reason why the generation finished.
1431
1475
  */
@@ -1651,13 +1695,13 @@ interface StreamTextResult<TOOLS extends Record<string, CoreTool>> {
1651
1695
 
1652
1696
  Resolved when the response is finished.
1653
1697
  */
1654
- readonly toolCalls: Promise<ToToolCall<TOOLS>[]>;
1698
+ readonly toolCalls: Promise<ToolCallUnion<TOOLS>[]>;
1655
1699
  /**
1656
1700
  The tool results that have been generated in the last step.
1657
1701
 
1658
1702
  Resolved when the all tool executions are finished.
1659
1703
  */
1660
- readonly toolResults: Promise<ToToolResult<TOOLS>[]>;
1704
+ readonly toolResults: Promise<ToolResultUnion<TOOLS>[]>;
1661
1705
  /**
1662
1706
  Optional raw response data.
1663
1707
 
@@ -1809,7 +1853,7 @@ type TextStreamPart<TOOLS extends Record<string, CoreTool>> = {
1809
1853
  textDelta: string;
1810
1854
  } | ({
1811
1855
  type: 'tool-call';
1812
- } & ToToolCall<TOOLS>) | {
1856
+ } & ToolCallUnion<TOOLS>) | {
1813
1857
  type: 'tool-call-streaming-start';
1814
1858
  toolCallId: string;
1815
1859
  toolName: string;
@@ -1820,7 +1864,7 @@ type TextStreamPart<TOOLS extends Record<string, CoreTool>> = {
1820
1864
  argsTextDelta: string;
1821
1865
  } | ({
1822
1866
  type: 'tool-result';
1823
- } & ToToolResult<TOOLS>) | {
1867
+ } & ToolResultUnion<TOOLS>) | {
1824
1868
  type: 'step-finish';
1825
1869
  finishReason: FinishReason;
1826
1870
  logprobs?: LogProbs;
@@ -3187,4 +3231,4 @@ declare const generateId: (size?: number) => string;
3187
3231
  */
3188
3232
  declare const nanoid: (size?: number) => string;
3189
3233
 
3190
- 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
@@ -1245,9 +1245,13 @@ interface CoreTool<PARAMETERS extends Parameters = any, RESULT = any> {
1245
1245
  Helper function for inferring the execute args of a tool.
1246
1246
  */
1247
1247
  declare function tool<PARAMETERS extends Parameters, RESULT>(tool: CoreTool<PARAMETERS, RESULT> & {
1248
- execute: (args: inferParameters<PARAMETERS>) => PromiseLike<RESULT>;
1248
+ execute: (args: inferParameters<PARAMETERS>, options: {
1249
+ abortSignal?: AbortSignal;
1250
+ }) => PromiseLike<RESULT>;
1249
1251
  }): CoreTool<PARAMETERS, RESULT> & {
1250
- execute: (args: inferParameters<PARAMETERS>) => PromiseLike<RESULT>;
1252
+ execute: (args: inferParameters<PARAMETERS>, options: {
1253
+ abortSignal?: AbortSignal;
1254
+ }) => PromiseLike<RESULT>;
1251
1255
  };
1252
1256
  declare function tool<PARAMETERS extends Parameters, RESULT>(tool: CoreTool<PARAMETERS, RESULT> & {
1253
1257
  execute?: undefined;
@@ -1313,7 +1317,25 @@ onlyBar('bar');
1313
1317
  */
1314
1318
  type ValueOf<ObjectType, ValueType extends keyof ObjectType = keyof ObjectType> = ObjectType[ValueType];
1315
1319
 
1316
- type ToToolCall<TOOLS extends Record<string, CoreTool>> = ValueOf<{
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<{
1317
1339
  [NAME in keyof TOOLS]: {
1318
1340
  type: 'tool-call';
1319
1341
  toolCallId: string;
@@ -1321,8 +1343,30 @@ type ToToolCall<TOOLS extends Record<string, CoreTool>> = ValueOf<{
1321
1343
  args: inferParameters<TOOLS[NAME]['parameters']>;
1322
1344
  };
1323
1345
  }>;
1324
- type ToToolCallArray<TOOLS extends Record<string, CoreTool>> = Array<ToToolCall<TOOLS>>;
1346
+ type ToolCallArray<TOOLS extends Record<string, CoreTool>> = Array<ToolCallUnion<TOOLS>>;
1325
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
+ }
1326
1370
  type ToToolsWithExecute<TOOLS extends Record<string, CoreTool>> = {
1327
1371
  [K in keyof TOOLS as TOOLS[K] extends {
1328
1372
  execute: any;
@@ -1340,8 +1384,8 @@ type ToToolResultObject<TOOLS extends Record<string, CoreTool>> = ValueOf<{
1340
1384
  result: Awaited<ReturnType<Exclude<TOOLS[NAME]['execute'], undefined>>>;
1341
1385
  };
1342
1386
  }>;
1343
- type ToToolResult<TOOLS extends Record<string, CoreTool>> = ToToolResultObject<ToToolsWithDefinedExecute<ToToolsWithExecute<TOOLS>>>;
1344
- type ToToolResultArray<TOOLS extends Record<string, CoreTool>> = Array<ToToolResult<TOOLS>>;
1387
+ type ToolResultUnion<TOOLS extends Record<string, CoreTool>> = ToToolResultObject<ToToolsWithDefinedExecute<ToToolsWithExecute<TOOLS>>>;
1388
+ type ToolResultArray<TOOLS extends Record<string, CoreTool>> = Array<ToolResultUnion<TOOLS>>;
1345
1389
 
1346
1390
  /**
1347
1391
  * The result of a single step in the generation process.
@@ -1354,11 +1398,11 @@ type StepResult<TOOLS extends Record<string, CoreTool>> = {
1354
1398
  /**
1355
1399
  The tool calls that were made during the generation.
1356
1400
  */
1357
- readonly toolCalls: ToToolCallArray<TOOLS>;
1401
+ readonly toolCalls: ToolCallArray<TOOLS>;
1358
1402
  /**
1359
1403
  The results of the tool calls.
1360
1404
  */
1361
- readonly toolResults: ToToolResultArray<TOOLS>;
1405
+ readonly toolResults: ToolResultArray<TOOLS>;
1362
1406
  /**
1363
1407
  The reason why the generation finished.
1364
1408
  */
@@ -1421,11 +1465,11 @@ interface GenerateTextResult<TOOLS extends Record<string, CoreTool>> {
1421
1465
  /**
1422
1466
  The tool calls that were made during the generation.
1423
1467
  */
1424
- readonly toolCalls: ToToolCallArray<TOOLS>;
1468
+ readonly toolCalls: ToolCallArray<TOOLS>;
1425
1469
  /**
1426
1470
  The results of the tool calls.
1427
1471
  */
1428
- readonly toolResults: ToToolResultArray<TOOLS>;
1472
+ readonly toolResults: ToolResultArray<TOOLS>;
1429
1473
  /**
1430
1474
  The reason why the generation finished.
1431
1475
  */
@@ -1651,13 +1695,13 @@ interface StreamTextResult<TOOLS extends Record<string, CoreTool>> {
1651
1695
 
1652
1696
  Resolved when the response is finished.
1653
1697
  */
1654
- readonly toolCalls: Promise<ToToolCall<TOOLS>[]>;
1698
+ readonly toolCalls: Promise<ToolCallUnion<TOOLS>[]>;
1655
1699
  /**
1656
1700
  The tool results that have been generated in the last step.
1657
1701
 
1658
1702
  Resolved when the all tool executions are finished.
1659
1703
  */
1660
- readonly toolResults: Promise<ToToolResult<TOOLS>[]>;
1704
+ readonly toolResults: Promise<ToolResultUnion<TOOLS>[]>;
1661
1705
  /**
1662
1706
  Optional raw response data.
1663
1707
 
@@ -1809,7 +1853,7 @@ type TextStreamPart<TOOLS extends Record<string, CoreTool>> = {
1809
1853
  textDelta: string;
1810
1854
  } | ({
1811
1855
  type: 'tool-call';
1812
- } & ToToolCall<TOOLS>) | {
1856
+ } & ToolCallUnion<TOOLS>) | {
1813
1857
  type: 'tool-call-streaming-start';
1814
1858
  toolCallId: string;
1815
1859
  toolName: string;
@@ -1820,7 +1864,7 @@ type TextStreamPart<TOOLS extends Record<string, CoreTool>> = {
1820
1864
  argsTextDelta: string;
1821
1865
  } | ({
1822
1866
  type: 'tool-result';
1823
- } & ToToolResult<TOOLS>) | {
1867
+ } & ToolResultUnion<TOOLS>) | {
1824
1868
  type: 'step-finish';
1825
1869
  finishReason: FinishReason;
1826
1870
  logprobs?: LogProbs;
@@ -3187,4 +3231,4 @@ declare const generateId: (size?: number) => string;
3187
3231
  */
3188
3232
  declare const nanoid: (size?: number) => string;
3189
3233
 
3190
- 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 };