ai 3.4.12 → 3.4.13
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 +6 -0
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
1248
|
+
execute: (args: inferParameters<PARAMETERS>, options: {
|
1249
|
+
abortSignal?: AbortSignal;
|
1250
|
+
}) => PromiseLike<RESULT>;
|
1249
1251
|
}): CoreTool<PARAMETERS, RESULT> & {
|
1250
|
-
execute: (args: inferParameters<PARAMETERS
|
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;
|
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
|
1248
|
+
execute: (args: inferParameters<PARAMETERS>, options: {
|
1249
|
+
abortSignal?: AbortSignal;
|
1250
|
+
}) => PromiseLike<RESULT>;
|
1249
1251
|
}): CoreTool<PARAMETERS, RESULT> & {
|
1250
|
-
execute: (args: inferParameters<PARAMETERS
|
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;
|