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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # ai
2
2
 
3
+ ## 3.4.13
4
+
5
+ ### Patch Changes
6
+
7
+ - fc39158: fix (ai/core): add abortSignal to tool helper function
8
+
3
9
  ## 3.4.12
4
10
 
5
11
  ### 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;
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;