@ai-sdk/anthropic 3.0.54 → 3.0.55
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 +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +232 -175
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +212 -155
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +18 -0
- package/dist/internal/index.d.ts +18 -0
- package/dist/internal/index.js +231 -174
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +211 -154
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/anthropic-messages-language-model.ts +29 -0
- package/src/convert-to-anthropic-messages-prompt.ts +31 -3
- package/src/tool/code-execution_20260120.ts +38 -0
|
@@ -271,6 +271,15 @@ declare const anthropicTools: {
|
|
|
271
271
|
type: "code_execution_output";
|
|
272
272
|
file_id: string;
|
|
273
273
|
}>;
|
|
274
|
+
} | {
|
|
275
|
+
type: "encrypted_code_execution_result";
|
|
276
|
+
encrypted_stdout: string;
|
|
277
|
+
stderr: string;
|
|
278
|
+
return_code: number;
|
|
279
|
+
content: Array<{
|
|
280
|
+
type: "code_execution_output";
|
|
281
|
+
file_id: string;
|
|
282
|
+
}>;
|
|
274
283
|
} | {
|
|
275
284
|
type: "bash_code_execution_result";
|
|
276
285
|
content: Array<{
|
|
@@ -333,6 +342,15 @@ declare const anthropicTools: {
|
|
|
333
342
|
type: "code_execution_output";
|
|
334
343
|
file_id: string;
|
|
335
344
|
}>;
|
|
345
|
+
} | {
|
|
346
|
+
type: "encrypted_code_execution_result";
|
|
347
|
+
encrypted_stdout: string;
|
|
348
|
+
stderr: string;
|
|
349
|
+
return_code: number;
|
|
350
|
+
content: Array<{
|
|
351
|
+
type: "code_execution_output";
|
|
352
|
+
file_id: string;
|
|
353
|
+
}>;
|
|
336
354
|
} | {
|
|
337
355
|
type: "bash_code_execution_result";
|
|
338
356
|
content: Array<{
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -271,6 +271,15 @@ declare const anthropicTools: {
|
|
|
271
271
|
type: "code_execution_output";
|
|
272
272
|
file_id: string;
|
|
273
273
|
}>;
|
|
274
|
+
} | {
|
|
275
|
+
type: "encrypted_code_execution_result";
|
|
276
|
+
encrypted_stdout: string;
|
|
277
|
+
stderr: string;
|
|
278
|
+
return_code: number;
|
|
279
|
+
content: Array<{
|
|
280
|
+
type: "code_execution_output";
|
|
281
|
+
file_id: string;
|
|
282
|
+
}>;
|
|
274
283
|
} | {
|
|
275
284
|
type: "bash_code_execution_result";
|
|
276
285
|
content: Array<{
|
|
@@ -333,6 +342,15 @@ declare const anthropicTools: {
|
|
|
333
342
|
type: "code_execution_output";
|
|
334
343
|
file_id: string;
|
|
335
344
|
}>;
|
|
345
|
+
} | {
|
|
346
|
+
type: "encrypted_code_execution_result";
|
|
347
|
+
encrypted_stdout: string;
|
|
348
|
+
stderr: string;
|
|
349
|
+
return_code: number;
|
|
350
|
+
content: Array<{
|
|
351
|
+
type: "code_execution_output";
|
|
352
|
+
file_id: string;
|
|
353
|
+
}>;
|
|
336
354
|
} | {
|
|
337
355
|
type: "bash_code_execution_result";
|
|
338
356
|
content: Array<{
|