ai 7.0.5 → 7.0.6

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,13 @@
1
1
  # ai
2
2
 
3
+ ## 7.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 989402d: Add ToolLoopAgent types for deprecated tool call callback aliases.
8
+ - Updated dependencies [7e3c99e]
9
+ - @ai-sdk/gateway@4.0.5
10
+
3
11
  ## 7.0.5
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -4642,10 +4642,22 @@ type AgentCallParameters<CALL_OPTIONS, TOOLS extends ToolSet = {}, RUNTIME_CONTE
4642
4642
  * Callback that is called before each tool execution begins.
4643
4643
  */
4644
4644
  onToolExecutionStart?: OnToolExecutionStartCallback<TOOLS>;
4645
+ /**
4646
+ * Callback that is called before each tool execution begins.
4647
+ *
4648
+ * @deprecated Use `onToolExecutionStart` instead.
4649
+ */
4650
+ experimental_onToolCallStart?: OnToolExecutionStartCallback<TOOLS>;
4645
4651
  /**
4646
4652
  * Callback that is called after each tool execution completes.
4647
4653
  */
4648
4654
  onToolExecutionEnd?: OnToolExecutionEndCallback<TOOLS>;
4655
+ /**
4656
+ * Callback that is called after each tool execution completes.
4657
+ *
4658
+ * @deprecated Use `onToolExecutionEnd` instead.
4659
+ */
4660
+ experimental_onToolCallFinish?: OnToolExecutionEndCallback<TOOLS>;
4649
4661
  /**
4650
4662
  * Callback that is called when each step (LLM call) ends, including intermediate steps.
4651
4663
  */
package/dist/index.js CHANGED
@@ -1089,7 +1089,7 @@ import {
1089
1089
  } from "@ai-sdk/provider-utils";
1090
1090
 
1091
1091
  // src/version.ts
1092
- var VERSION = true ? "7.0.5" : "0.0.0-test";
1092
+ var VERSION = true ? "7.0.6" : "0.0.0-test";
1093
1093
 
1094
1094
  // src/util/download/download.ts
1095
1095
  var download = async ({
@@ -83,7 +83,7 @@ import {
83
83
  } from "@ai-sdk/provider-utils";
84
84
 
85
85
  // src/version.ts
86
- var VERSION = true ? "7.0.5" : "0.0.0-test";
86
+ var VERSION = true ? "7.0.6" : "0.0.0-test";
87
87
 
88
88
  // src/util/download/download.ts
89
89
  var download = async ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "7.0.5",
3
+ "version": "7.0.6",
4
4
  "type": "module",
5
5
  "description": "AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.",
6
6
  "license": "Apache-2.0",
@@ -42,9 +42,9 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@ai-sdk/gateway": "4.0.4",
46
- "@ai-sdk/provider": "4.0.0",
47
- "@ai-sdk/provider-utils": "5.0.1"
45
+ "@ai-sdk/gateway": "4.0.5",
46
+ "@ai-sdk/provider-utils": "5.0.1",
47
+ "@ai-sdk/provider": "4.0.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@edge-runtime/vm": "^5.0.0",
@@ -106,11 +106,25 @@ export type AgentCallParameters<
106
106
  */
107
107
  onToolExecutionStart?: OnToolExecutionStartCallback<TOOLS>;
108
108
 
109
+ /**
110
+ * Callback that is called before each tool execution begins.
111
+ *
112
+ * @deprecated Use `onToolExecutionStart` instead.
113
+ */
114
+ experimental_onToolCallStart?: OnToolExecutionStartCallback<TOOLS>;
115
+
109
116
  /**
110
117
  * Callback that is called after each tool execution completes.
111
118
  */
112
119
  onToolExecutionEnd?: OnToolExecutionEndCallback<TOOLS>;
113
120
 
121
+ /**
122
+ * Callback that is called after each tool execution completes.
123
+ *
124
+ * @deprecated Use `onToolExecutionEnd` instead.
125
+ */
126
+ experimental_onToolCallFinish?: OnToolExecutionEndCallback<TOOLS>;
127
+
114
128
  /**
115
129
  * Callback that is called when each step (LLM call) ends, including intermediate steps.
116
130
  */