@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
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -451,6 +451,15 @@ declare const anthropicTools: {
|
|
|
451
451
|
type: "code_execution_output";
|
|
452
452
|
file_id: string;
|
|
453
453
|
}>;
|
|
454
|
+
} | {
|
|
455
|
+
type: "encrypted_code_execution_result";
|
|
456
|
+
encrypted_stdout: string;
|
|
457
|
+
stderr: string;
|
|
458
|
+
return_code: number;
|
|
459
|
+
content: Array<{
|
|
460
|
+
type: "code_execution_output";
|
|
461
|
+
file_id: string;
|
|
462
|
+
}>;
|
|
454
463
|
} | {
|
|
455
464
|
type: "bash_code_execution_result";
|
|
456
465
|
content: Array<{
|
|
@@ -513,6 +522,15 @@ declare const anthropicTools: {
|
|
|
513
522
|
type: "code_execution_output";
|
|
514
523
|
file_id: string;
|
|
515
524
|
}>;
|
|
525
|
+
} | {
|
|
526
|
+
type: "encrypted_code_execution_result";
|
|
527
|
+
encrypted_stdout: string;
|
|
528
|
+
stderr: string;
|
|
529
|
+
return_code: number;
|
|
530
|
+
content: Array<{
|
|
531
|
+
type: "code_execution_output";
|
|
532
|
+
file_id: string;
|
|
533
|
+
}>;
|
|
516
534
|
} | {
|
|
517
535
|
type: "bash_code_execution_result";
|
|
518
536
|
content: Array<{
|
package/dist/index.d.ts
CHANGED
|
@@ -451,6 +451,15 @@ declare const anthropicTools: {
|
|
|
451
451
|
type: "code_execution_output";
|
|
452
452
|
file_id: string;
|
|
453
453
|
}>;
|
|
454
|
+
} | {
|
|
455
|
+
type: "encrypted_code_execution_result";
|
|
456
|
+
encrypted_stdout: string;
|
|
457
|
+
stderr: string;
|
|
458
|
+
return_code: number;
|
|
459
|
+
content: Array<{
|
|
460
|
+
type: "code_execution_output";
|
|
461
|
+
file_id: string;
|
|
462
|
+
}>;
|
|
454
463
|
} | {
|
|
455
464
|
type: "bash_code_execution_result";
|
|
456
465
|
content: Array<{
|
|
@@ -513,6 +522,15 @@ declare const anthropicTools: {
|
|
|
513
522
|
type: "code_execution_output";
|
|
514
523
|
file_id: string;
|
|
515
524
|
}>;
|
|
525
|
+
} | {
|
|
526
|
+
type: "encrypted_code_execution_result";
|
|
527
|
+
encrypted_stdout: string;
|
|
528
|
+
stderr: string;
|
|
529
|
+
return_code: number;
|
|
530
|
+
content: Array<{
|
|
531
|
+
type: "code_execution_output";
|
|
532
|
+
file_id: string;
|
|
533
|
+
}>;
|
|
516
534
|
} | {
|
|
517
535
|
type: "bash_code_execution_result";
|
|
518
536
|
content: Array<{
|