ai 7.0.59 → 7.0.60
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
package/dist/index.d.ts
CHANGED
|
@@ -5122,9 +5122,9 @@ type ToolLoopAgentSettings<CALL_OPTIONS = never, TOOLS extends ToolSet = {}, RUN
|
|
|
5122
5122
|
* }),
|
|
5123
5123
|
* ```
|
|
5124
5124
|
*/
|
|
5125
|
-
prepareCall?: (options: Omit<AgentCallParameters<CALL_OPTIONS, NoInfer<TOOLS>, NoInfer<RUNTIME_CONTEXT>>, 'onStepEnd' | 'onStepFinish'> & Pick<ToolLoopAgentSettings<CALL_OPTIONS, TOOLS, RUNTIME_CONTEXT, NoInfer<OUTPUT>>, 'model' | 'tools' | 'maxOutputTokens' | 'temperature' | 'topP' | 'topK' | 'presencePenalty' | 'frequencyPenalty' | 'stopSequences' | 'seed' | 'reasoning' | 'headers' | 'instructions' | 'allowSystemInMessages' | 'stopWhen' | 'telemetry' | 'experimental_telemetry' | 'activeTools' | 'toolOrder' | 'toolApproval' | 'experimental_toolCallers' | 'providerOptions' | 'experimental_download' | 'experimental_refineToolInput' | 'include' | 'runtimeContext' | '_internal'> & {
|
|
5125
|
+
prepareCall?: (options: Omit<AgentCallParameters<CALL_OPTIONS, NoInfer<TOOLS>, NoInfer<RUNTIME_CONTEXT>>, 'abortSignal' | 'timeout' | 'onStart' | 'experimental_onStart' | 'onStepStart' | 'experimental_onStepStart' | 'onToolExecutionStart' | 'onToolExecutionEnd' | 'onStepEnd' | 'onStepFinish' | 'onEnd' | 'onFinish'> & Pick<ToolLoopAgentSettings<CALL_OPTIONS, TOOLS, RUNTIME_CONTEXT, NoInfer<OUTPUT>>, 'model' | 'tools' | 'toolChoice' | 'maxRetries' | 'maxOutputTokens' | 'temperature' | 'topP' | 'topK' | 'presencePenalty' | 'frequencyPenalty' | 'stopSequences' | 'seed' | 'reasoning' | 'headers' | 'instructions' | 'allowSystemInMessages' | 'stopWhen' | 'telemetry' | 'experimental_telemetry' | 'activeTools' | 'toolOrder' | 'toolApproval' | 'experimental_toolCallers' | 'prepareStep' | 'repairToolCall' | 'experimental_repairToolCall' | 'providerOptions' | 'experimental_download' | 'experimental_refineToolInput' | 'include' | 'runtimeContext' | '_internal'> & {
|
|
5126
5126
|
toolsContext: InferToolSetContext<TOOLS>;
|
|
5127
|
-
}) => MaybePromiseLike<Pick<ToolLoopAgentSettings<CALL_OPTIONS, TOOLS, RUNTIME_CONTEXT, NoInfer<OUTPUT>>, 'model' | 'tools' | 'maxOutputTokens' | 'temperature' | 'topP' | 'topK' | 'presencePenalty' | 'frequencyPenalty' | 'stopSequences' | 'seed' | 'reasoning' | 'headers' | 'instructions' | 'allowSystemInMessages' | 'stopWhen' | 'telemetry' | 'experimental_telemetry' | 'activeTools' | 'toolOrder' | 'toolApproval' | 'experimental_toolCallers' | 'providerOptions' | 'experimental_download' | 'experimental_refineToolInput' | 'include' | 'runtimeContext' | '_internal'> & Omit<Prompt, 'system'> & {
|
|
5127
|
+
}) => MaybePromiseLike<Pick<ToolLoopAgentSettings<CALL_OPTIONS, TOOLS, RUNTIME_CONTEXT, NoInfer<OUTPUT>>, 'model' | 'tools' | 'toolChoice' | 'maxRetries' | 'maxOutputTokens' | 'temperature' | 'topP' | 'topK' | 'presencePenalty' | 'frequencyPenalty' | 'stopSequences' | 'seed' | 'reasoning' | 'headers' | 'instructions' | 'allowSystemInMessages' | 'stopWhen' | 'telemetry' | 'experimental_telemetry' | 'activeTools' | 'toolOrder' | 'toolApproval' | 'experimental_toolCallers' | 'prepareStep' | 'repairToolCall' | 'experimental_repairToolCall' | 'providerOptions' | 'experimental_download' | 'experimental_refineToolInput' | 'include' | 'runtimeContext' | '_internal'> & Omit<Prompt, 'system'> & {
|
|
5128
5128
|
toolsContext: InferToolSetContext<TOOLS>;
|
|
5129
5129
|
}>;
|
|
5130
5130
|
};
|
package/dist/index.js
CHANGED
|
@@ -1143,7 +1143,7 @@ import {
|
|
|
1143
1143
|
} from "@ai-sdk/provider-utils";
|
|
1144
1144
|
|
|
1145
1145
|
// src/version.ts
|
|
1146
|
-
var VERSION = true ? "7.0.
|
|
1146
|
+
var VERSION = true ? "7.0.60" : "0.0.0-test";
|
|
1147
1147
|
|
|
1148
1148
|
// src/util/download/download.ts
|
|
1149
1149
|
var download = async ({
|
package/dist/internal/index.js
CHANGED
|
@@ -364,7 +364,8 @@ console.log(preparation.identity);
|
|
|
364
364
|
- `harness`: the adapter instance.
|
|
365
365
|
- `sandbox`: a `HarnessV1SandboxProvider`.
|
|
366
366
|
- `id`: optional stable agent identifier.
|
|
367
|
-
- `instructions`: instructions
|
|
367
|
+
- `instructions`: instructions appended to the runtime's system or developer
|
|
368
|
+
prompt when supported, or prepended to the first user prompt otherwise.
|
|
368
369
|
- `stopWhen`: condition(s) for finishing a result slice after a completed
|
|
369
370
|
harness tool step that can continue into another model step.
|
|
370
371
|
- `tools`: AI SDK tools executed by the host when the harness calls them.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.60",
|
|
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,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ai-sdk/gateway": "4.0.
|
|
45
|
+
"@ai-sdk/gateway": "4.0.48",
|
|
46
46
|
"@ai-sdk/provider": "4.0.7",
|
|
47
47
|
"@ai-sdk/provider-utils": "5.0.26"
|
|
48
48
|
},
|
|
@@ -307,7 +307,18 @@ export type ToolLoopAgentSettings<
|
|
|
307
307
|
NoInfer<TOOLS>,
|
|
308
308
|
NoInfer<RUNTIME_CONTEXT>
|
|
309
309
|
>,
|
|
310
|
-
|
|
310
|
+
| 'abortSignal'
|
|
311
|
+
| 'timeout'
|
|
312
|
+
| 'onStart'
|
|
313
|
+
| 'experimental_onStart'
|
|
314
|
+
| 'onStepStart'
|
|
315
|
+
| 'experimental_onStepStart'
|
|
316
|
+
| 'onToolExecutionStart'
|
|
317
|
+
| 'onToolExecutionEnd'
|
|
318
|
+
| 'onStepEnd'
|
|
319
|
+
| 'onStepFinish'
|
|
320
|
+
| 'onEnd'
|
|
321
|
+
| 'onFinish'
|
|
311
322
|
> &
|
|
312
323
|
Pick<
|
|
313
324
|
ToolLoopAgentSettings<
|
|
@@ -318,6 +329,8 @@ export type ToolLoopAgentSettings<
|
|
|
318
329
|
>,
|
|
319
330
|
| 'model'
|
|
320
331
|
| 'tools'
|
|
332
|
+
| 'toolChoice'
|
|
333
|
+
| 'maxRetries'
|
|
321
334
|
| 'maxOutputTokens'
|
|
322
335
|
| 'temperature'
|
|
323
336
|
| 'topP'
|
|
@@ -337,6 +350,9 @@ export type ToolLoopAgentSettings<
|
|
|
337
350
|
| 'toolOrder'
|
|
338
351
|
| 'toolApproval'
|
|
339
352
|
| 'experimental_toolCallers'
|
|
353
|
+
| 'prepareStep'
|
|
354
|
+
| 'repairToolCall'
|
|
355
|
+
| 'experimental_repairToolCall'
|
|
340
356
|
| 'providerOptions'
|
|
341
357
|
| 'experimental_download'
|
|
342
358
|
| 'experimental_refineToolInput'
|
|
@@ -354,6 +370,8 @@ export type ToolLoopAgentSettings<
|
|
|
354
370
|
>,
|
|
355
371
|
| 'model'
|
|
356
372
|
| 'tools'
|
|
373
|
+
| 'toolChoice'
|
|
374
|
+
| 'maxRetries'
|
|
357
375
|
| 'maxOutputTokens'
|
|
358
376
|
| 'temperature'
|
|
359
377
|
| 'topP'
|
|
@@ -373,6 +391,9 @@ export type ToolLoopAgentSettings<
|
|
|
373
391
|
| 'toolOrder'
|
|
374
392
|
| 'toolApproval'
|
|
375
393
|
| 'experimental_toolCallers'
|
|
394
|
+
| 'prepareStep'
|
|
395
|
+
| 'repairToolCall'
|
|
396
|
+
| 'experimental_repairToolCall'
|
|
376
397
|
| 'providerOptions'
|
|
377
398
|
| 'experimental_download'
|
|
378
399
|
| 'experimental_refineToolInput'
|