@ai-sdk/provider-utils 3.0.0-beta.7 → 3.0.0-beta.9
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 +12 -0
- package/dist/index.d.ts +12 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# @ai-sdk/provider-utils
|
2
2
|
|
3
|
+
## 3.0.0-beta.9
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [27deb4d]
|
8
|
+
- @ai-sdk/provider@2.0.0-beta.2
|
9
|
+
|
10
|
+
## 3.0.0-beta.8
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- dd5fd43: feat (ai): support dynamic tools in Chat onToolCall
|
15
|
+
|
3
16
|
## 3.0.0-beta.7
|
4
17
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
@@ -812,6 +812,10 @@ interface ToolCall<NAME extends string, INPUT> {
|
|
812
812
|
* If this flag is not set or is false, the tool call will be executed by the client.
|
813
813
|
*/
|
814
814
|
providerExecuted?: boolean;
|
815
|
+
/**
|
816
|
+
* Whether the tool is dynamic.
|
817
|
+
*/
|
818
|
+
dynamic?: boolean;
|
815
819
|
}
|
816
820
|
|
817
821
|
/**
|
@@ -835,6 +839,14 @@ interface ToolResult<NAME extends string, INPUT, OUTPUT> {
|
|
835
839
|
Result of the tool call. This is the result of the tool's execution.
|
836
840
|
*/
|
837
841
|
output: OUTPUT;
|
842
|
+
/**
|
843
|
+
* Whether the tool result has been executed by the provider.
|
844
|
+
*/
|
845
|
+
providerExecuted?: boolean;
|
846
|
+
/**
|
847
|
+
* Whether the tool is dynamic.
|
848
|
+
*/
|
849
|
+
dynamic?: boolean;
|
838
850
|
}
|
839
851
|
|
840
852
|
export { type AssistantContent, type AssistantModelMessage, type DataContent, type FetchFunction, type FilePart, type FlexibleSchema, type IdGenerator, type ImagePart, type InferSchema, type InferToolInput, type InferToolOutput, type ModelMessage, type ParseResult, type ProviderDefinedToolFactory, type ProviderDefinedToolFactoryWithOutputSchema, type ProviderOptions, type ReasoningPart, type Resolvable, type ResponseHandler, type Schema, type SystemModelMessage, type TextPart, type Tool, type ToolCall, type ToolCallOptions, type ToolCallPart, type ToolContent, type ToolExecuteFunction, type ToolModelMessage, type ToolResult, type ToolResultPart, type UserContent, type UserModelMessage, type ValidationResult, type Validator, asSchema, asValidator, combineHeaders, convertAsyncIteratorToReadableStream, convertBase64ToUint8Array, convertToBase64, convertUint8ArrayToBase64, createBinaryResponseHandler, createEventSourceResponseHandler, createIdGenerator, createJsonErrorResponseHandler, createJsonResponseHandler, createJsonStreamResponseHandler, createProviderDefinedToolFactory, createProviderDefinedToolFactoryWithOutputSchema, createStatusCodeErrorResponseHandler, delay, dynamicTool, extractResponseHeaders, generateId, getErrorMessage, getFromApi, isAbortError, isParsableJson, isUrlSupported, isValidator, jsonSchema, loadApiKey, loadOptionalSetting, loadSetting, parseJSON, parseJsonEventStream, parseProviderOptions, postFormDataToApi, postJsonToApi, postToApi, removeUndefinedEntries, resolve, safeParseJSON, safeValidateTypes, standardSchemaValidator, tool, validateTypes, validator, validatorSymbol, withoutTrailingSlash, zodSchema };
|
package/dist/index.d.ts
CHANGED
@@ -812,6 +812,10 @@ interface ToolCall<NAME extends string, INPUT> {
|
|
812
812
|
* If this flag is not set or is false, the tool call will be executed by the client.
|
813
813
|
*/
|
814
814
|
providerExecuted?: boolean;
|
815
|
+
/**
|
816
|
+
* Whether the tool is dynamic.
|
817
|
+
*/
|
818
|
+
dynamic?: boolean;
|
815
819
|
}
|
816
820
|
|
817
821
|
/**
|
@@ -835,6 +839,14 @@ interface ToolResult<NAME extends string, INPUT, OUTPUT> {
|
|
835
839
|
Result of the tool call. This is the result of the tool's execution.
|
836
840
|
*/
|
837
841
|
output: OUTPUT;
|
842
|
+
/**
|
843
|
+
* Whether the tool result has been executed by the provider.
|
844
|
+
*/
|
845
|
+
providerExecuted?: boolean;
|
846
|
+
/**
|
847
|
+
* Whether the tool is dynamic.
|
848
|
+
*/
|
849
|
+
dynamic?: boolean;
|
838
850
|
}
|
839
851
|
|
840
852
|
export { type AssistantContent, type AssistantModelMessage, type DataContent, type FetchFunction, type FilePart, type FlexibleSchema, type IdGenerator, type ImagePart, type InferSchema, type InferToolInput, type InferToolOutput, type ModelMessage, type ParseResult, type ProviderDefinedToolFactory, type ProviderDefinedToolFactoryWithOutputSchema, type ProviderOptions, type ReasoningPart, type Resolvable, type ResponseHandler, type Schema, type SystemModelMessage, type TextPart, type Tool, type ToolCall, type ToolCallOptions, type ToolCallPart, type ToolContent, type ToolExecuteFunction, type ToolModelMessage, type ToolResult, type ToolResultPart, type UserContent, type UserModelMessage, type ValidationResult, type Validator, asSchema, asValidator, combineHeaders, convertAsyncIteratorToReadableStream, convertBase64ToUint8Array, convertToBase64, convertUint8ArrayToBase64, createBinaryResponseHandler, createEventSourceResponseHandler, createIdGenerator, createJsonErrorResponseHandler, createJsonResponseHandler, createJsonStreamResponseHandler, createProviderDefinedToolFactory, createProviderDefinedToolFactoryWithOutputSchema, createStatusCodeErrorResponseHandler, delay, dynamicTool, extractResponseHeaders, generateId, getErrorMessage, getFromApi, isAbortError, isParsableJson, isUrlSupported, isValidator, jsonSchema, loadApiKey, loadOptionalSetting, loadSetting, parseJSON, parseJsonEventStream, parseProviderOptions, postFormDataToApi, postJsonToApi, postToApi, removeUndefinedEntries, resolve, safeParseJSON, safeValidateTypes, standardSchemaValidator, tool, validateTypes, validator, validatorSymbol, withoutTrailingSlash, zodSchema };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ai-sdk/provider-utils",
|
3
|
-
"version": "3.0.0-beta.
|
3
|
+
"version": "3.0.0-beta.9",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"sideEffects": false,
|
6
6
|
"main": "./dist/index.js",
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"@standard-schema/spec": "^1.0.0",
|
30
30
|
"zod-to-json-schema": "^3.24.1",
|
31
31
|
"eventsource-parser": "^3.0.3",
|
32
|
-
"@ai-sdk/provider": "2.0.0-beta.
|
32
|
+
"@ai-sdk/provider": "2.0.0-beta.2"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
35
|
"@types/node": "20.17.24",
|