@arizeai/phoenix-client 5.5.4 → 5.6.0
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/dist/esm/__generated__/api/v1.d.ts +5 -5
- package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
- package/dist/esm/config.d.ts.map +1 -1
- package/dist/esm/config.js +5 -23
- package/dist/esm/config.js.map +1 -1
- package/dist/esm/schemas/llm/anthropic/converters.d.ts +82 -82
- package/dist/esm/schemas/llm/anthropic/messagePartSchemas.d.ts +28 -28
- package/dist/esm/schemas/llm/anthropic/messageSchemas.d.ts +84 -84
- package/dist/esm/schemas/llm/anthropic/toolCallSchemas.d.ts +4 -4
- package/dist/esm/schemas/llm/anthropic/toolChoiceSchemas.d.ts +2 -2
- package/dist/esm/schemas/llm/constants.d.ts +46 -46
- package/dist/esm/schemas/llm/converters.d.ts +184 -184
- package/dist/esm/schemas/llm/openai/converters.d.ts +32 -32
- package/dist/esm/schemas/llm/openai/messageSchemas.d.ts +6 -6
- package/dist/esm/schemas/llm/openai/toolCallSchemas.d.ts +2 -2
- package/dist/esm/schemas/llm/phoenixPrompt/converters.d.ts +19 -19
- package/dist/esm/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts +8 -8
- package/dist/esm/schemas/llm/phoenixPrompt/messageSchemas.d.ts +12 -12
- package/dist/esm/schemas/llm/phoenixPrompt/toolCallSchemas.d.ts +4 -4
- package/dist/esm/schemas/llm/schemas.d.ts +79 -79
- package/dist/esm/schemas/llm/vercel/messagePartSchemas.d.ts +8 -8
- package/dist/esm/schemas/llm/vercel/messageSchemas.d.ts +8 -8
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/src/__generated__/api/v1.d.ts +5 -5
- package/dist/src/__generated__/api/v1.d.ts.map +1 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +5 -27
- package/dist/src/config.js.map +1 -1
- package/dist/src/schemas/llm/anthropic/converters.d.ts +82 -82
- package/dist/src/schemas/llm/anthropic/messagePartSchemas.d.ts +28 -28
- package/dist/src/schemas/llm/anthropic/messageSchemas.d.ts +84 -84
- package/dist/src/schemas/llm/anthropic/toolCallSchemas.d.ts +4 -4
- package/dist/src/schemas/llm/anthropic/toolChoiceSchemas.d.ts +2 -2
- package/dist/src/schemas/llm/constants.d.ts +46 -46
- package/dist/src/schemas/llm/converters.d.ts +184 -184
- package/dist/src/schemas/llm/openai/converters.d.ts +32 -32
- package/dist/src/schemas/llm/openai/messageSchemas.d.ts +6 -6
- package/dist/src/schemas/llm/openai/toolCallSchemas.d.ts +2 -2
- package/dist/src/schemas/llm/phoenixPrompt/converters.d.ts +19 -19
- package/dist/src/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts +8 -8
- package/dist/src/schemas/llm/phoenixPrompt/messageSchemas.d.ts +12 -12
- package/dist/src/schemas/llm/phoenixPrompt/toolCallSchemas.d.ts +4 -4
- package/dist/src/schemas/llm/schemas.d.ts +79 -79
- package/dist/src/schemas/llm/vercel/messagePartSchemas.d.ts +8 -8
- package/dist/src/schemas/llm/vercel/messageSchemas.d.ts +8 -8
- package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -4
- package/src/__generated__/api/v1.ts +5 -5
- package/src/config.ts +11 -28
|
@@ -7,26 +7,26 @@ export declare const phoenixToolCallSchema: z.ZodObject<{
|
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
arguments: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
type: "function";
|
|
11
10
|
name: string;
|
|
11
|
+
type: "function";
|
|
12
12
|
arguments: string;
|
|
13
13
|
}, {
|
|
14
|
-
type: "function";
|
|
15
14
|
name: string;
|
|
15
|
+
type: "function";
|
|
16
16
|
arguments: string;
|
|
17
17
|
}>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
19
|
tool_call: {
|
|
20
|
-
type: "function";
|
|
21
20
|
name: string;
|
|
21
|
+
type: "function";
|
|
22
22
|
arguments: string;
|
|
23
23
|
};
|
|
24
24
|
type: "tool_call";
|
|
25
25
|
tool_call_id: string;
|
|
26
26
|
}, {
|
|
27
27
|
tool_call: {
|
|
28
|
-
type: "function";
|
|
29
28
|
name: string;
|
|
29
|
+
type: "function";
|
|
30
30
|
arguments: string;
|
|
31
31
|
};
|
|
32
32
|
type: "tool_call";
|
|
@@ -36,8 +36,8 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
36
36
|
} & {
|
|
37
37
|
[k: string]: unknown;
|
|
38
38
|
};
|
|
39
|
-
type: "function";
|
|
40
39
|
id: string;
|
|
40
|
+
type: "function";
|
|
41
41
|
}, {
|
|
42
42
|
function: {
|
|
43
43
|
name: string;
|
|
@@ -82,8 +82,8 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
82
82
|
} & {
|
|
83
83
|
[k: string]: unknown;
|
|
84
84
|
};
|
|
85
|
-
type: "function";
|
|
86
85
|
id: string;
|
|
86
|
+
type: "function";
|
|
87
87
|
}, {
|
|
88
88
|
function: {
|
|
89
89
|
name: string;
|
|
@@ -128,8 +128,8 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
128
128
|
} & {
|
|
129
129
|
[k: string]: unknown;
|
|
130
130
|
};
|
|
131
|
-
type: "function";
|
|
132
131
|
id: string;
|
|
132
|
+
type: "function";
|
|
133
133
|
}, {
|
|
134
134
|
function: {
|
|
135
135
|
name: string;
|
|
@@ -383,26 +383,26 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
383
383
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
384
384
|
type: z.ZodLiteral<"base64">;
|
|
385
385
|
}, "strip", z.ZodTypeAny, {
|
|
386
|
-
type: "base64";
|
|
387
386
|
data: string;
|
|
387
|
+
type: "base64";
|
|
388
388
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
389
389
|
}, {
|
|
390
|
-
type: "base64";
|
|
391
390
|
data: string;
|
|
391
|
+
type: "base64";
|
|
392
392
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
393
393
|
}>;
|
|
394
394
|
}, "strip", z.ZodTypeAny, {
|
|
395
395
|
type: "image";
|
|
396
396
|
source: {
|
|
397
|
-
type: "base64";
|
|
398
397
|
data: string;
|
|
398
|
+
type: "base64";
|
|
399
399
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
400
400
|
};
|
|
401
401
|
}, {
|
|
402
402
|
type: "image";
|
|
403
403
|
source: {
|
|
404
|
-
type: "base64";
|
|
405
404
|
data: string;
|
|
405
|
+
type: "base64";
|
|
406
406
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
407
407
|
};
|
|
408
408
|
}>, z.ZodObject<{
|
|
@@ -411,15 +411,15 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
411
411
|
name: z.ZodString;
|
|
412
412
|
input: z.ZodType<import("../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema").JSONLiteral>;
|
|
413
413
|
}, "strip", z.ZodTypeAny, {
|
|
414
|
-
type: "tool_use";
|
|
415
414
|
name: string;
|
|
416
415
|
id: string;
|
|
417
416
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
418
|
-
}, {
|
|
419
417
|
type: "tool_use";
|
|
418
|
+
}, {
|
|
420
419
|
name: string;
|
|
421
420
|
id: string;
|
|
422
421
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
422
|
+
type: "tool_use";
|
|
423
423
|
}>, z.ZodObject<{
|
|
424
424
|
type: z.ZodLiteral<"tool_result">;
|
|
425
425
|
tool_use_id: z.ZodString;
|
|
@@ -439,58 +439,58 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
439
439
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
440
440
|
type: z.ZodLiteral<"base64">;
|
|
441
441
|
}, "strip", z.ZodTypeAny, {
|
|
442
|
-
type: "base64";
|
|
443
442
|
data: string;
|
|
443
|
+
type: "base64";
|
|
444
444
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
445
445
|
}, {
|
|
446
|
-
type: "base64";
|
|
447
446
|
data: string;
|
|
447
|
+
type: "base64";
|
|
448
448
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
449
449
|
}>;
|
|
450
450
|
}, "strip", z.ZodTypeAny, {
|
|
451
451
|
type: "image";
|
|
452
452
|
source: {
|
|
453
|
-
type: "base64";
|
|
454
453
|
data: string;
|
|
454
|
+
type: "base64";
|
|
455
455
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
456
456
|
};
|
|
457
457
|
}, {
|
|
458
458
|
type: "image";
|
|
459
459
|
source: {
|
|
460
|
-
type: "base64";
|
|
461
460
|
data: string;
|
|
461
|
+
type: "base64";
|
|
462
462
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
463
463
|
};
|
|
464
464
|
}>]>, "many">]>;
|
|
465
465
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
466
466
|
}, "strip", z.ZodTypeAny, {
|
|
467
|
-
type: "tool_result";
|
|
468
467
|
content: string | ({
|
|
469
468
|
text: string;
|
|
470
469
|
type: "text";
|
|
471
470
|
} | {
|
|
472
471
|
type: "image";
|
|
473
472
|
source: {
|
|
474
|
-
type: "base64";
|
|
475
473
|
data: string;
|
|
474
|
+
type: "base64";
|
|
476
475
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
477
476
|
};
|
|
478
477
|
})[];
|
|
478
|
+
type: "tool_result";
|
|
479
479
|
tool_use_id: string;
|
|
480
480
|
is_error?: boolean | undefined;
|
|
481
481
|
}, {
|
|
482
|
-
type: "tool_result";
|
|
483
482
|
content: string | ({
|
|
484
483
|
text: string;
|
|
485
484
|
type: "text";
|
|
486
485
|
} | {
|
|
487
486
|
type: "image";
|
|
488
487
|
source: {
|
|
489
|
-
type: "base64";
|
|
490
488
|
data: string;
|
|
489
|
+
type: "base64";
|
|
491
490
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
492
491
|
};
|
|
493
492
|
})[];
|
|
493
|
+
type: "tool_result";
|
|
494
494
|
tool_use_id: string;
|
|
495
495
|
is_error?: boolean | undefined;
|
|
496
496
|
}>]>, "many">]>;
|
|
@@ -512,26 +512,26 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
512
512
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
513
513
|
type: z.ZodLiteral<"base64">;
|
|
514
514
|
}, "strip", z.ZodTypeAny, {
|
|
515
|
-
type: "base64";
|
|
516
515
|
data: string;
|
|
516
|
+
type: "base64";
|
|
517
517
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
518
518
|
}, {
|
|
519
|
-
type: "base64";
|
|
520
519
|
data: string;
|
|
520
|
+
type: "base64";
|
|
521
521
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
522
522
|
}>;
|
|
523
523
|
}, "strip", z.ZodTypeAny, {
|
|
524
524
|
type: "image";
|
|
525
525
|
source: {
|
|
526
|
-
type: "base64";
|
|
527
526
|
data: string;
|
|
527
|
+
type: "base64";
|
|
528
528
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
529
529
|
};
|
|
530
530
|
}, {
|
|
531
531
|
type: "image";
|
|
532
532
|
source: {
|
|
533
|
-
type: "base64";
|
|
534
533
|
data: string;
|
|
534
|
+
type: "base64";
|
|
535
535
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
536
536
|
};
|
|
537
537
|
}>, z.ZodObject<{
|
|
@@ -540,15 +540,15 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
540
540
|
name: z.ZodString;
|
|
541
541
|
input: z.ZodType<import("../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema").JSONLiteral>;
|
|
542
542
|
}, "strip", z.ZodTypeAny, {
|
|
543
|
-
type: "tool_use";
|
|
544
543
|
name: string;
|
|
545
544
|
id: string;
|
|
546
545
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
547
|
-
}, {
|
|
548
546
|
type: "tool_use";
|
|
547
|
+
}, {
|
|
549
548
|
name: string;
|
|
550
549
|
id: string;
|
|
551
550
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
551
|
+
type: "tool_use";
|
|
552
552
|
}>, z.ZodObject<{
|
|
553
553
|
type: z.ZodLiteral<"tool_result">;
|
|
554
554
|
tool_use_id: z.ZodString;
|
|
@@ -568,58 +568,58 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
568
568
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
569
569
|
type: z.ZodLiteral<"base64">;
|
|
570
570
|
}, "strip", z.ZodTypeAny, {
|
|
571
|
-
type: "base64";
|
|
572
571
|
data: string;
|
|
572
|
+
type: "base64";
|
|
573
573
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
574
574
|
}, {
|
|
575
|
-
type: "base64";
|
|
576
575
|
data: string;
|
|
576
|
+
type: "base64";
|
|
577
577
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
578
578
|
}>;
|
|
579
579
|
}, "strip", z.ZodTypeAny, {
|
|
580
580
|
type: "image";
|
|
581
581
|
source: {
|
|
582
|
-
type: "base64";
|
|
583
582
|
data: string;
|
|
583
|
+
type: "base64";
|
|
584
584
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
585
585
|
};
|
|
586
586
|
}, {
|
|
587
587
|
type: "image";
|
|
588
588
|
source: {
|
|
589
|
-
type: "base64";
|
|
590
589
|
data: string;
|
|
590
|
+
type: "base64";
|
|
591
591
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
592
592
|
};
|
|
593
593
|
}>]>, "many">]>;
|
|
594
594
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
595
595
|
}, "strip", z.ZodTypeAny, {
|
|
596
|
-
type: "tool_result";
|
|
597
596
|
content: string | ({
|
|
598
597
|
text: string;
|
|
599
598
|
type: "text";
|
|
600
599
|
} | {
|
|
601
600
|
type: "image";
|
|
602
601
|
source: {
|
|
603
|
-
type: "base64";
|
|
604
602
|
data: string;
|
|
603
|
+
type: "base64";
|
|
605
604
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
606
605
|
};
|
|
607
606
|
})[];
|
|
607
|
+
type: "tool_result";
|
|
608
608
|
tool_use_id: string;
|
|
609
609
|
is_error?: boolean | undefined;
|
|
610
610
|
}, {
|
|
611
|
-
type: "tool_result";
|
|
612
611
|
content: string | ({
|
|
613
612
|
text: string;
|
|
614
613
|
type: "text";
|
|
615
614
|
} | {
|
|
616
615
|
type: "image";
|
|
617
616
|
source: {
|
|
618
|
-
type: "base64";
|
|
619
617
|
data: string;
|
|
618
|
+
type: "base64";
|
|
620
619
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
621
620
|
};
|
|
622
621
|
})[];
|
|
622
|
+
type: "tool_result";
|
|
623
623
|
tool_use_id: string;
|
|
624
624
|
is_error?: boolean | undefined;
|
|
625
625
|
}>]>, "many">]>;
|
|
@@ -641,26 +641,26 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
641
641
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
642
642
|
type: z.ZodLiteral<"base64">;
|
|
643
643
|
}, "strip", z.ZodTypeAny, {
|
|
644
|
-
type: "base64";
|
|
645
644
|
data: string;
|
|
645
|
+
type: "base64";
|
|
646
646
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
647
647
|
}, {
|
|
648
|
-
type: "base64";
|
|
649
648
|
data: string;
|
|
649
|
+
type: "base64";
|
|
650
650
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
651
651
|
}>;
|
|
652
652
|
}, "strip", z.ZodTypeAny, {
|
|
653
653
|
type: "image";
|
|
654
654
|
source: {
|
|
655
|
-
type: "base64";
|
|
656
655
|
data: string;
|
|
656
|
+
type: "base64";
|
|
657
657
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
658
658
|
};
|
|
659
659
|
}, {
|
|
660
660
|
type: "image";
|
|
661
661
|
source: {
|
|
662
|
-
type: "base64";
|
|
663
662
|
data: string;
|
|
663
|
+
type: "base64";
|
|
664
664
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
665
665
|
};
|
|
666
666
|
}>, z.ZodObject<{
|
|
@@ -669,15 +669,15 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
669
669
|
name: z.ZodString;
|
|
670
670
|
input: z.ZodType<import("../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema").JSONLiteral>;
|
|
671
671
|
}, "strip", z.ZodTypeAny, {
|
|
672
|
-
type: "tool_use";
|
|
673
672
|
name: string;
|
|
674
673
|
id: string;
|
|
675
674
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
676
|
-
}, {
|
|
677
675
|
type: "tool_use";
|
|
676
|
+
}, {
|
|
678
677
|
name: string;
|
|
679
678
|
id: string;
|
|
680
679
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
680
|
+
type: "tool_use";
|
|
681
681
|
}>, z.ZodObject<{
|
|
682
682
|
type: z.ZodLiteral<"tool_result">;
|
|
683
683
|
tool_use_id: z.ZodString;
|
|
@@ -697,58 +697,58 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
697
697
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
698
698
|
type: z.ZodLiteral<"base64">;
|
|
699
699
|
}, "strip", z.ZodTypeAny, {
|
|
700
|
-
type: "base64";
|
|
701
700
|
data: string;
|
|
701
|
+
type: "base64";
|
|
702
702
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
703
703
|
}, {
|
|
704
|
-
type: "base64";
|
|
705
704
|
data: string;
|
|
705
|
+
type: "base64";
|
|
706
706
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
707
707
|
}>;
|
|
708
708
|
}, "strip", z.ZodTypeAny, {
|
|
709
709
|
type: "image";
|
|
710
710
|
source: {
|
|
711
|
-
type: "base64";
|
|
712
711
|
data: string;
|
|
712
|
+
type: "base64";
|
|
713
713
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
714
714
|
};
|
|
715
715
|
}, {
|
|
716
716
|
type: "image";
|
|
717
717
|
source: {
|
|
718
|
-
type: "base64";
|
|
719
718
|
data: string;
|
|
719
|
+
type: "base64";
|
|
720
720
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
721
721
|
};
|
|
722
722
|
}>]>, "many">]>;
|
|
723
723
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
724
724
|
}, "strip", z.ZodTypeAny, {
|
|
725
|
-
type: "tool_result";
|
|
726
725
|
content: string | ({
|
|
727
726
|
text: string;
|
|
728
727
|
type: "text";
|
|
729
728
|
} | {
|
|
730
729
|
type: "image";
|
|
731
730
|
source: {
|
|
732
|
-
type: "base64";
|
|
733
731
|
data: string;
|
|
732
|
+
type: "base64";
|
|
734
733
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
735
734
|
};
|
|
736
735
|
})[];
|
|
736
|
+
type: "tool_result";
|
|
737
737
|
tool_use_id: string;
|
|
738
738
|
is_error?: boolean | undefined;
|
|
739
739
|
}, {
|
|
740
|
-
type: "tool_result";
|
|
741
740
|
content: string | ({
|
|
742
741
|
text: string;
|
|
743
742
|
type: "text";
|
|
744
743
|
} | {
|
|
745
744
|
type: "image";
|
|
746
745
|
source: {
|
|
747
|
-
type: "base64";
|
|
748
746
|
data: string;
|
|
747
|
+
type: "base64";
|
|
749
748
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
750
749
|
};
|
|
751
750
|
})[];
|
|
751
|
+
type: "tool_result";
|
|
752
752
|
tool_use_id: string;
|
|
753
753
|
is_error?: boolean | undefined;
|
|
754
754
|
}>]>, "many">]>;
|
|
@@ -771,26 +771,26 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
771
771
|
name: z.ZodString;
|
|
772
772
|
arguments: z.ZodString;
|
|
773
773
|
}, "strip", z.ZodTypeAny, {
|
|
774
|
-
type: "function";
|
|
775
774
|
name: string;
|
|
775
|
+
type: "function";
|
|
776
776
|
arguments: string;
|
|
777
777
|
}, {
|
|
778
|
-
type: "function";
|
|
779
778
|
name: string;
|
|
779
|
+
type: "function";
|
|
780
780
|
arguments: string;
|
|
781
781
|
}>;
|
|
782
782
|
}, "strip", z.ZodTypeAny, {
|
|
783
783
|
tool_call: {
|
|
784
|
-
type: "function";
|
|
785
784
|
name: string;
|
|
785
|
+
type: "function";
|
|
786
786
|
arguments: string;
|
|
787
787
|
};
|
|
788
788
|
type: "tool_call";
|
|
789
789
|
tool_call_id: string;
|
|
790
790
|
}, {
|
|
791
791
|
tool_call: {
|
|
792
|
-
type: "function";
|
|
793
792
|
name: string;
|
|
793
|
+
type: "function";
|
|
794
794
|
arguments: string;
|
|
795
795
|
};
|
|
796
796
|
type: "tool_call";
|
|
@@ -814,8 +814,8 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
814
814
|
type: "text";
|
|
815
815
|
} | {
|
|
816
816
|
tool_call: {
|
|
817
|
-
type: "function";
|
|
818
817
|
name: string;
|
|
818
|
+
type: "function";
|
|
819
819
|
arguments: string;
|
|
820
820
|
};
|
|
821
821
|
type: "tool_call";
|
|
@@ -832,8 +832,8 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
832
832
|
type: "text";
|
|
833
833
|
} | {
|
|
834
834
|
tool_call: {
|
|
835
|
-
type: "function";
|
|
836
835
|
name: string;
|
|
836
|
+
type: "function";
|
|
837
837
|
arguments: string;
|
|
838
838
|
};
|
|
839
839
|
type: "tool_call";
|
|
@@ -914,13 +914,13 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
914
914
|
toolName: z.ZodString;
|
|
915
915
|
input: z.ZodType<import("../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema").JSONLiteral>;
|
|
916
916
|
}, "strip", z.ZodTypeAny, {
|
|
917
|
-
type: "tool-call";
|
|
918
917
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
918
|
+
type: "tool-call";
|
|
919
919
|
toolCallId: string;
|
|
920
920
|
toolName: string;
|
|
921
921
|
}, {
|
|
922
|
-
type: "tool-call";
|
|
923
922
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
923
|
+
type: "tool-call";
|
|
924
924
|
toolCallId: string;
|
|
925
925
|
toolName: string;
|
|
926
926
|
}>]>, "many">, z.ZodString]>;
|
|
@@ -929,8 +929,8 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
929
929
|
text: string;
|
|
930
930
|
type: "text";
|
|
931
931
|
} | {
|
|
932
|
-
type: "tool-call";
|
|
933
932
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
933
|
+
type: "tool-call";
|
|
934
934
|
toolCallId: string;
|
|
935
935
|
toolName: string;
|
|
936
936
|
})[];
|
|
@@ -940,8 +940,8 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
940
940
|
text: string;
|
|
941
941
|
type: "text";
|
|
942
942
|
} | {
|
|
943
|
-
type: "tool-call";
|
|
944
943
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
944
|
+
type: "tool-call";
|
|
945
945
|
toolCallId: string;
|
|
946
946
|
toolName: string;
|
|
947
947
|
})[];
|
|
@@ -963,40 +963,40 @@ export declare const llmProviderMessageSchema: z.ZodUnion<[z.ZodDiscriminatedUni
|
|
|
963
963
|
type: "text";
|
|
964
964
|
}>;
|
|
965
965
|
}, "strip", z.ZodTypeAny, {
|
|
966
|
-
type: "tool-result";
|
|
967
966
|
output: {
|
|
968
967
|
value: string;
|
|
969
968
|
type: "text";
|
|
970
969
|
};
|
|
970
|
+
type: "tool-result";
|
|
971
971
|
toolCallId: string;
|
|
972
972
|
toolName: string;
|
|
973
973
|
}, {
|
|
974
|
-
type: "tool-result";
|
|
975
974
|
output: {
|
|
976
975
|
value: string;
|
|
977
976
|
type: "text";
|
|
978
977
|
};
|
|
978
|
+
type: "tool-result";
|
|
979
979
|
toolCallId: string;
|
|
980
980
|
toolName: string;
|
|
981
981
|
}>, "many">;
|
|
982
982
|
}, "strip", z.ZodTypeAny, {
|
|
983
983
|
content: {
|
|
984
|
-
type: "tool-result";
|
|
985
984
|
output: {
|
|
986
985
|
value: string;
|
|
987
986
|
type: "text";
|
|
988
987
|
};
|
|
988
|
+
type: "tool-result";
|
|
989
989
|
toolCallId: string;
|
|
990
990
|
toolName: string;
|
|
991
991
|
}[];
|
|
992
992
|
role: "tool";
|
|
993
993
|
}, {
|
|
994
994
|
content: {
|
|
995
|
-
type: "tool-result";
|
|
996
995
|
output: {
|
|
997
996
|
value: string;
|
|
998
997
|
type: "text";
|
|
999
998
|
};
|
|
999
|
+
type: "tool-result";
|
|
1000
1000
|
toolCallId: string;
|
|
1001
1001
|
toolName: string;
|
|
1002
1002
|
}[];
|
|
@@ -1028,8 +1028,8 @@ export declare const llmProviderToolCallSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1028
1028
|
} & {
|
|
1029
1029
|
[k: string]: unknown;
|
|
1030
1030
|
};
|
|
1031
|
-
type: "function";
|
|
1032
1031
|
id: string;
|
|
1032
|
+
type: "function";
|
|
1033
1033
|
}, {
|
|
1034
1034
|
function: {
|
|
1035
1035
|
name: string;
|
|
@@ -1045,15 +1045,15 @@ export declare const llmProviderToolCallSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1045
1045
|
name: z.ZodString;
|
|
1046
1046
|
input: z.ZodType<import("../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema").JSONLiteral>;
|
|
1047
1047
|
}, "strip", z.ZodTypeAny, {
|
|
1048
|
-
type: "tool_use";
|
|
1049
1048
|
name: string;
|
|
1050
1049
|
id: string;
|
|
1051
1050
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
1052
|
-
}, {
|
|
1053
1051
|
type: "tool_use";
|
|
1052
|
+
}, {
|
|
1054
1053
|
name: string;
|
|
1055
1054
|
id: string;
|
|
1056
1055
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
1056
|
+
type: "tool_use";
|
|
1057
1057
|
}>, z.ZodObject<{
|
|
1058
1058
|
type: z.ZodLiteral<"tool_call">;
|
|
1059
1059
|
tool_call_id: z.ZodString;
|
|
@@ -1062,26 +1062,26 @@ export declare const llmProviderToolCallSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1062
1062
|
name: z.ZodString;
|
|
1063
1063
|
arguments: z.ZodString;
|
|
1064
1064
|
}, "strip", z.ZodTypeAny, {
|
|
1065
|
-
type: "function";
|
|
1066
1065
|
name: string;
|
|
1066
|
+
type: "function";
|
|
1067
1067
|
arguments: string;
|
|
1068
1068
|
}, {
|
|
1069
|
-
type: "function";
|
|
1070
1069
|
name: string;
|
|
1070
|
+
type: "function";
|
|
1071
1071
|
arguments: string;
|
|
1072
1072
|
}>;
|
|
1073
1073
|
}, "strip", z.ZodTypeAny, {
|
|
1074
1074
|
tool_call: {
|
|
1075
|
-
type: "function";
|
|
1076
1075
|
name: string;
|
|
1076
|
+
type: "function";
|
|
1077
1077
|
arguments: string;
|
|
1078
1078
|
};
|
|
1079
1079
|
type: "tool_call";
|
|
1080
1080
|
tool_call_id: string;
|
|
1081
1081
|
}, {
|
|
1082
1082
|
tool_call: {
|
|
1083
|
-
type: "function";
|
|
1084
1083
|
name: string;
|
|
1084
|
+
type: "function";
|
|
1085
1085
|
arguments: string;
|
|
1086
1086
|
};
|
|
1087
1087
|
type: "tool_call";
|
|
@@ -1092,13 +1092,13 @@ export declare const llmProviderToolCallSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1092
1092
|
toolName: z.ZodString;
|
|
1093
1093
|
input: z.ZodType<import("../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema").JSONLiteral>;
|
|
1094
1094
|
}, "strip", z.ZodTypeAny, {
|
|
1095
|
-
type: "tool-call";
|
|
1096
1095
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
1096
|
+
type: "tool-call";
|
|
1097
1097
|
toolCallId: string;
|
|
1098
1098
|
toolName: string;
|
|
1099
1099
|
}, {
|
|
1100
|
-
type: "tool-call";
|
|
1101
1100
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
1101
|
+
type: "tool-call";
|
|
1102
1102
|
toolCallId: string;
|
|
1103
1103
|
toolName: string;
|
|
1104
1104
|
}>]>;
|
|
@@ -1128,8 +1128,8 @@ export declare const llmProviderToolCallsSchema: z.ZodArray<z.ZodUnion<[z.ZodObj
|
|
|
1128
1128
|
} & {
|
|
1129
1129
|
[k: string]: unknown;
|
|
1130
1130
|
};
|
|
1131
|
-
type: "function";
|
|
1132
1131
|
id: string;
|
|
1132
|
+
type: "function";
|
|
1133
1133
|
}, {
|
|
1134
1134
|
function: {
|
|
1135
1135
|
name: string;
|
|
@@ -1145,15 +1145,15 @@ export declare const llmProviderToolCallsSchema: z.ZodArray<z.ZodUnion<[z.ZodObj
|
|
|
1145
1145
|
name: z.ZodString;
|
|
1146
1146
|
input: z.ZodType<import("../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema").JSONLiteral>;
|
|
1147
1147
|
}, "strip", z.ZodTypeAny, {
|
|
1148
|
-
type: "tool_use";
|
|
1149
1148
|
name: string;
|
|
1150
1149
|
id: string;
|
|
1151
1150
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
1152
|
-
}, {
|
|
1153
1151
|
type: "tool_use";
|
|
1152
|
+
}, {
|
|
1154
1153
|
name: string;
|
|
1155
1154
|
id: string;
|
|
1156
1155
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
1156
|
+
type: "tool_use";
|
|
1157
1157
|
}>, z.ZodObject<{
|
|
1158
1158
|
type: z.ZodLiteral<"tool_call">;
|
|
1159
1159
|
tool_call_id: z.ZodString;
|
|
@@ -1162,26 +1162,26 @@ export declare const llmProviderToolCallsSchema: z.ZodArray<z.ZodUnion<[z.ZodObj
|
|
|
1162
1162
|
name: z.ZodString;
|
|
1163
1163
|
arguments: z.ZodString;
|
|
1164
1164
|
}, "strip", z.ZodTypeAny, {
|
|
1165
|
-
type: "function";
|
|
1166
1165
|
name: string;
|
|
1166
|
+
type: "function";
|
|
1167
1167
|
arguments: string;
|
|
1168
1168
|
}, {
|
|
1169
|
-
type: "function";
|
|
1170
1169
|
name: string;
|
|
1170
|
+
type: "function";
|
|
1171
1171
|
arguments: string;
|
|
1172
1172
|
}>;
|
|
1173
1173
|
}, "strip", z.ZodTypeAny, {
|
|
1174
1174
|
tool_call: {
|
|
1175
|
-
type: "function";
|
|
1176
1175
|
name: string;
|
|
1176
|
+
type: "function";
|
|
1177
1177
|
arguments: string;
|
|
1178
1178
|
};
|
|
1179
1179
|
type: "tool_call";
|
|
1180
1180
|
tool_call_id: string;
|
|
1181
1181
|
}, {
|
|
1182
1182
|
tool_call: {
|
|
1183
|
-
type: "function";
|
|
1184
1183
|
name: string;
|
|
1184
|
+
type: "function";
|
|
1185
1185
|
arguments: string;
|
|
1186
1186
|
};
|
|
1187
1187
|
type: "tool_call";
|
|
@@ -1192,13 +1192,13 @@ export declare const llmProviderToolCallsSchema: z.ZodArray<z.ZodUnion<[z.ZodObj
|
|
|
1192
1192
|
toolName: z.ZodString;
|
|
1193
1193
|
input: z.ZodType<import("../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../jsonLiteralSchema").JSONLiteral>;
|
|
1194
1194
|
}, "strip", z.ZodTypeAny, {
|
|
1195
|
-
type: "tool-call";
|
|
1196
1195
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
1196
|
+
type: "tool-call";
|
|
1197
1197
|
toolCallId: string;
|
|
1198
1198
|
toolName: string;
|
|
1199
1199
|
}, {
|
|
1200
|
-
type: "tool-call";
|
|
1201
1200
|
input: import("../jsonLiteralSchema").JSONLiteral;
|
|
1201
|
+
type: "tool-call";
|
|
1202
1202
|
toolCallId: string;
|
|
1203
1203
|
toolName: string;
|
|
1204
1204
|
}>]>, "many">;
|
|
@@ -1264,11 +1264,11 @@ export declare const llmProviderToolChoiceSchema: z.ZodUnion<[z.ZodUnion<[z.ZodL
|
|
|
1264
1264
|
type: z.ZodLiteral<"tool">;
|
|
1265
1265
|
name: z.ZodString;
|
|
1266
1266
|
}, "strip", z.ZodTypeAny, {
|
|
1267
|
-
type: "tool";
|
|
1268
1267
|
name: string;
|
|
1269
|
-
}, {
|
|
1270
1268
|
type: "tool";
|
|
1269
|
+
}, {
|
|
1271
1270
|
name: string;
|
|
1271
|
+
type: "tool";
|
|
1272
1272
|
}>, z.ZodObject<{
|
|
1273
1273
|
type: z.ZodLiteral<"auto">;
|
|
1274
1274
|
}, "strip", z.ZodTypeAny, {
|