@openai/agents-core 0.1.10 → 0.2.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/agent.d.ts +8 -5
- package/dist/agent.js +4 -3
- package/dist/agent.js.map +1 -1
- package/dist/agent.mjs +4 -3
- package/dist/agent.mjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/items.d.ts +424 -80
- package/dist/metadata.js +2 -2
- package/dist/metadata.js.map +1 -1
- package/dist/metadata.mjs +2 -2
- package/dist/metadata.mjs.map +1 -1
- package/dist/runImplementation.js +346 -0
- package/dist/runImplementation.js.map +1 -1
- package/dist/runImplementation.mjs +346 -0
- package/dist/runImplementation.mjs.map +1 -1
- package/dist/runState.d.ts +2416 -225
- package/dist/shims/shims-browser.d.ts +1 -1
- package/dist/shims/shims-workerd.d.ts +1 -1
- package/dist/tool.d.ts +5 -5
- package/dist/tool.js +2 -0
- package/dist/tool.js.map +1 -1
- package/dist/tool.mjs +2 -0
- package/dist/tool.mjs.map +1 -1
- package/dist/types/helpers.d.ts +3 -3
- package/dist/types/protocol.d.ts +1249 -205
- package/dist/types/protocol.js +101 -19
- package/dist/types/protocol.js.map +1 -1
- package/dist/types/protocol.mjs +100 -18
- package/dist/types/protocol.mjs.map +1 -1
- package/dist/utils/base64.d.ts +4 -0
- package/dist/utils/base64.js +43 -0
- package/dist/utils/base64.js.map +1 -0
- package/dist/utils/base64.mjs +40 -0
- package/dist/utils/base64.mjs.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +3 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +1 -0
- package/dist/utils/index.mjs.map +1 -1
- package/dist/utils/smartString.js +56 -3
- package/dist/utils/smartString.js.map +1 -1
- package/dist/utils/smartString.mjs +56 -3
- package/dist/utils/smartString.mjs.map +1 -1
- package/dist/utils/tools.js +24 -6
- package/dist/utils/tools.js.map +1 -1
- package/dist/utils/tools.mjs +24 -6
- package/dist/utils/tools.mjs.map +1 -1
- package/dist/utils/typeGuards.d.ts +2 -2
- package/dist/utils/typeGuards.js +7 -7
- package/dist/utils/typeGuards.js.map +1 -1
- package/dist/utils/typeGuards.mjs +7 -7
- package/dist/utils/typeGuards.mjs.map +1 -1
- package/dist/utils/zodCompat.d.ts +13 -0
- package/dist/utils/zodCompat.js +29 -0
- package/dist/utils/zodCompat.js.map +1 -0
- package/dist/utils/zodCompat.mjs +24 -0
- package/dist/utils/zodCompat.mjs.map +1 -0
- package/dist/utils/zodJsonSchemaCompat.d.ts +29 -0
- package/dist/utils/zodJsonSchemaCompat.js +282 -0
- package/dist/utils/zodJsonSchemaCompat.js.map +1 -0
- package/dist/utils/zodJsonSchemaCompat.mjs +278 -0
- package/dist/utils/zodJsonSchemaCompat.mjs.map +1 -0
- package/package.json +3 -3
package/dist/runState.d.ts
CHANGED
|
@@ -96,30 +96,33 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
96
96
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
97
97
|
} & {
|
|
98
98
|
type: z.ZodLiteral<"input_image">;
|
|
99
|
-
image: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
99
|
+
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
100
100
|
id: z.ZodString;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
102
|
id: string;
|
|
103
103
|
}, {
|
|
104
104
|
id: string;
|
|
105
|
-
}>]
|
|
105
|
+
}>]>>;
|
|
106
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
106
107
|
}, "strip", z.ZodTypeAny, {
|
|
107
108
|
type: "input_image";
|
|
108
|
-
image: string | {
|
|
109
|
-
id: string;
|
|
110
|
-
};
|
|
111
109
|
providerData?: Record<string, any> | undefined;
|
|
110
|
+
image?: string | {
|
|
111
|
+
id: string;
|
|
112
|
+
} | undefined;
|
|
113
|
+
detail?: string | undefined;
|
|
112
114
|
}, {
|
|
113
115
|
type: "input_image";
|
|
114
|
-
image: string | {
|
|
115
|
-
id: string;
|
|
116
|
-
};
|
|
117
116
|
providerData?: Record<string, any> | undefined;
|
|
117
|
+
image?: string | {
|
|
118
|
+
id: string;
|
|
119
|
+
} | undefined;
|
|
120
|
+
detail?: string | undefined;
|
|
118
121
|
}>, z.ZodObject<{
|
|
119
122
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
120
123
|
} & {
|
|
121
124
|
type: z.ZodLiteral<"input_file">;
|
|
122
|
-
file: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
125
|
+
file: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
123
126
|
id: z.ZodString;
|
|
124
127
|
}, "strip", z.ZodTypeAny, {
|
|
125
128
|
id: string;
|
|
@@ -131,23 +134,26 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
131
134
|
url: string;
|
|
132
135
|
}, {
|
|
133
136
|
url: string;
|
|
134
|
-
}>]
|
|
137
|
+
}>]>>;
|
|
138
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
135
139
|
}, "strip", z.ZodTypeAny, {
|
|
136
140
|
type: "input_file";
|
|
137
|
-
|
|
141
|
+
providerData?: Record<string, any> | undefined;
|
|
142
|
+
file?: string | {
|
|
138
143
|
id: string;
|
|
139
144
|
} | {
|
|
140
145
|
url: string;
|
|
141
|
-
};
|
|
142
|
-
|
|
146
|
+
} | undefined;
|
|
147
|
+
filename?: string | undefined;
|
|
143
148
|
}, {
|
|
144
149
|
type: "input_file";
|
|
145
|
-
|
|
150
|
+
providerData?: Record<string, any> | undefined;
|
|
151
|
+
file?: string | {
|
|
146
152
|
id: string;
|
|
147
153
|
} | {
|
|
148
154
|
url: string;
|
|
149
|
-
};
|
|
150
|
-
|
|
155
|
+
} | undefined;
|
|
156
|
+
filename?: string | undefined;
|
|
151
157
|
}>, z.ZodObject<{
|
|
152
158
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
153
159
|
} & {
|
|
@@ -186,18 +192,20 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
186
192
|
providerData?: Record<string, any> | undefined;
|
|
187
193
|
} | {
|
|
188
194
|
type: "input_image";
|
|
189
|
-
image: string | {
|
|
190
|
-
id: string;
|
|
191
|
-
};
|
|
192
195
|
providerData?: Record<string, any> | undefined;
|
|
196
|
+
image?: string | {
|
|
197
|
+
id: string;
|
|
198
|
+
} | undefined;
|
|
199
|
+
detail?: string | undefined;
|
|
193
200
|
} | {
|
|
194
201
|
type: "input_file";
|
|
195
|
-
|
|
202
|
+
providerData?: Record<string, any> | undefined;
|
|
203
|
+
file?: string | {
|
|
196
204
|
id: string;
|
|
197
205
|
} | {
|
|
198
206
|
url: string;
|
|
199
|
-
};
|
|
200
|
-
|
|
207
|
+
} | undefined;
|
|
208
|
+
filename?: string | undefined;
|
|
201
209
|
} | {
|
|
202
210
|
type: "audio";
|
|
203
211
|
audio: string | {
|
|
@@ -218,18 +226,20 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
218
226
|
providerData?: Record<string, any> | undefined;
|
|
219
227
|
} | {
|
|
220
228
|
type: "input_image";
|
|
221
|
-
image: string | {
|
|
222
|
-
id: string;
|
|
223
|
-
};
|
|
224
229
|
providerData?: Record<string, any> | undefined;
|
|
230
|
+
image?: string | {
|
|
231
|
+
id: string;
|
|
232
|
+
} | undefined;
|
|
233
|
+
detail?: string | undefined;
|
|
225
234
|
} | {
|
|
226
235
|
type: "input_file";
|
|
227
|
-
|
|
236
|
+
providerData?: Record<string, any> | undefined;
|
|
237
|
+
file?: string | {
|
|
228
238
|
id: string;
|
|
229
239
|
} | {
|
|
230
240
|
url: string;
|
|
231
|
-
};
|
|
232
|
-
|
|
241
|
+
} | undefined;
|
|
242
|
+
filename?: string | undefined;
|
|
233
243
|
} | {
|
|
234
244
|
type: "audio";
|
|
235
245
|
audio: string | {
|
|
@@ -660,7 +670,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
660
670
|
name: z.ZodString;
|
|
661
671
|
callId: z.ZodString;
|
|
662
672
|
status: z.ZodEnum<["in_progress", "completed", "incomplete"]>;
|
|
663
|
-
output: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
673
|
+
output: z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
664
674
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
665
675
|
} & {
|
|
666
676
|
type: z.ZodLiteral<"text">;
|
|
@@ -677,33 +687,247 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
677
687
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
678
688
|
} & {
|
|
679
689
|
type: z.ZodLiteral<"image">;
|
|
680
|
-
|
|
681
|
-
|
|
690
|
+
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
691
|
+
data: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>;
|
|
692
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
693
|
+
}, "strip", z.ZodTypeAny, {
|
|
694
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
695
|
+
mediaType?: string | undefined;
|
|
696
|
+
}, {
|
|
697
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
698
|
+
mediaType?: string | undefined;
|
|
699
|
+
}>, z.ZodObject<{
|
|
700
|
+
url: z.ZodString;
|
|
701
|
+
}, "strip", z.ZodTypeAny, {
|
|
702
|
+
url: string;
|
|
703
|
+
}, {
|
|
704
|
+
url: string;
|
|
705
|
+
}>, z.ZodObject<{
|
|
706
|
+
fileId: z.ZodString;
|
|
707
|
+
}, "strip", z.ZodTypeAny, {
|
|
708
|
+
fileId: string;
|
|
709
|
+
}, {
|
|
710
|
+
fileId: string;
|
|
711
|
+
}>]>]>>;
|
|
712
|
+
detail: z.ZodOptional<z.ZodType<"low" | "high" | "auto" | (string & {}), z.ZodTypeDef, "low" | "high" | "auto" | (string & {})>>;
|
|
682
713
|
}, "strip", z.ZodTypeAny, {
|
|
683
714
|
type: "image";
|
|
684
|
-
data: string;
|
|
685
|
-
mediaType: string;
|
|
686
715
|
providerData?: Record<string, any> | undefined;
|
|
716
|
+
image?: string | {
|
|
717
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
718
|
+
mediaType?: string | undefined;
|
|
719
|
+
} | {
|
|
720
|
+
url: string;
|
|
721
|
+
} | {
|
|
722
|
+
fileId: string;
|
|
723
|
+
} | undefined;
|
|
724
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
687
725
|
}, {
|
|
688
726
|
type: "image";
|
|
689
|
-
data: string;
|
|
690
|
-
mediaType: string;
|
|
691
727
|
providerData?: Record<string, any> | undefined;
|
|
692
|
-
|
|
728
|
+
image?: string | {
|
|
729
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
730
|
+
mediaType?: string | undefined;
|
|
731
|
+
} | {
|
|
732
|
+
url: string;
|
|
733
|
+
} | {
|
|
734
|
+
fileId: string;
|
|
735
|
+
} | undefined;
|
|
736
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
737
|
+
}>, z.ZodObject<{
|
|
738
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
739
|
+
} & {
|
|
740
|
+
type: z.ZodLiteral<"file">;
|
|
741
|
+
file: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
742
|
+
data: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>;
|
|
743
|
+
mediaType: z.ZodString;
|
|
744
|
+
filename: z.ZodString;
|
|
745
|
+
}, "strip", z.ZodTypeAny, {
|
|
746
|
+
filename: string;
|
|
747
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
748
|
+
mediaType: string;
|
|
749
|
+
}, {
|
|
750
|
+
filename: string;
|
|
751
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
752
|
+
mediaType: string;
|
|
753
|
+
}>, z.ZodObject<{
|
|
754
|
+
url: z.ZodString;
|
|
755
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
756
|
+
}, "strip", z.ZodTypeAny, {
|
|
757
|
+
url: string;
|
|
758
|
+
filename?: string | undefined;
|
|
759
|
+
}, {
|
|
760
|
+
url: string;
|
|
761
|
+
filename?: string | undefined;
|
|
762
|
+
}>, z.ZodObject<{
|
|
763
|
+
id: z.ZodString;
|
|
764
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
765
|
+
}, "strip", z.ZodTypeAny, {
|
|
766
|
+
id: string;
|
|
767
|
+
filename?: string | undefined;
|
|
768
|
+
}, {
|
|
769
|
+
id: string;
|
|
770
|
+
filename?: string | undefined;
|
|
771
|
+
}>]>;
|
|
772
|
+
}, "strip", z.ZodTypeAny, {
|
|
773
|
+
type: "file";
|
|
774
|
+
file: string | {
|
|
775
|
+
filename: string;
|
|
776
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
777
|
+
mediaType: string;
|
|
778
|
+
} | {
|
|
779
|
+
url: string;
|
|
780
|
+
filename?: string | undefined;
|
|
781
|
+
} | {
|
|
782
|
+
id: string;
|
|
783
|
+
filename?: string | undefined;
|
|
784
|
+
};
|
|
785
|
+
providerData?: Record<string, any> | undefined;
|
|
786
|
+
}, {
|
|
787
|
+
type: "file";
|
|
788
|
+
file: string | {
|
|
789
|
+
filename: string;
|
|
790
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
791
|
+
mediaType: string;
|
|
792
|
+
} | {
|
|
793
|
+
url: string;
|
|
794
|
+
filename?: string | undefined;
|
|
795
|
+
} | {
|
|
796
|
+
id: string;
|
|
797
|
+
filename?: string | undefined;
|
|
798
|
+
};
|
|
799
|
+
providerData?: Record<string, any> | undefined;
|
|
800
|
+
}>]>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
801
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
802
|
+
} & {
|
|
803
|
+
type: z.ZodLiteral<"input_text">;
|
|
804
|
+
text: z.ZodString;
|
|
805
|
+
}, "strip", z.ZodTypeAny, {
|
|
806
|
+
type: "input_text";
|
|
807
|
+
text: string;
|
|
808
|
+
providerData?: Record<string, any> | undefined;
|
|
809
|
+
}, {
|
|
810
|
+
type: "input_text";
|
|
811
|
+
text: string;
|
|
812
|
+
providerData?: Record<string, any> | undefined;
|
|
813
|
+
}>, z.ZodObject<{
|
|
814
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
815
|
+
} & {
|
|
816
|
+
type: z.ZodLiteral<"input_image">;
|
|
817
|
+
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
818
|
+
id: z.ZodString;
|
|
819
|
+
}, "strip", z.ZodTypeAny, {
|
|
820
|
+
id: string;
|
|
821
|
+
}, {
|
|
822
|
+
id: string;
|
|
823
|
+
}>]>>;
|
|
824
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
825
|
+
}, "strip", z.ZodTypeAny, {
|
|
826
|
+
type: "input_image";
|
|
827
|
+
providerData?: Record<string, any> | undefined;
|
|
828
|
+
image?: string | {
|
|
829
|
+
id: string;
|
|
830
|
+
} | undefined;
|
|
831
|
+
detail?: string | undefined;
|
|
832
|
+
}, {
|
|
833
|
+
type: "input_image";
|
|
834
|
+
providerData?: Record<string, any> | undefined;
|
|
835
|
+
image?: string | {
|
|
836
|
+
id: string;
|
|
837
|
+
} | undefined;
|
|
838
|
+
detail?: string | undefined;
|
|
839
|
+
}>, z.ZodObject<{
|
|
840
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
841
|
+
} & {
|
|
842
|
+
type: z.ZodLiteral<"input_file">;
|
|
843
|
+
file: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
844
|
+
id: z.ZodString;
|
|
845
|
+
}, "strip", z.ZodTypeAny, {
|
|
846
|
+
id: string;
|
|
847
|
+
}, {
|
|
848
|
+
id: string;
|
|
849
|
+
}>]>, z.ZodObject<{
|
|
850
|
+
url: z.ZodString;
|
|
851
|
+
}, "strip", z.ZodTypeAny, {
|
|
852
|
+
url: string;
|
|
853
|
+
}, {
|
|
854
|
+
url: string;
|
|
855
|
+
}>]>>;
|
|
856
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
857
|
+
}, "strip", z.ZodTypeAny, {
|
|
858
|
+
type: "input_file";
|
|
859
|
+
providerData?: Record<string, any> | undefined;
|
|
860
|
+
file?: string | {
|
|
861
|
+
id: string;
|
|
862
|
+
} | {
|
|
863
|
+
url: string;
|
|
864
|
+
} | undefined;
|
|
865
|
+
filename?: string | undefined;
|
|
866
|
+
}, {
|
|
867
|
+
type: "input_file";
|
|
868
|
+
providerData?: Record<string, any> | undefined;
|
|
869
|
+
file?: string | {
|
|
870
|
+
id: string;
|
|
871
|
+
} | {
|
|
872
|
+
url: string;
|
|
873
|
+
} | undefined;
|
|
874
|
+
filename?: string | undefined;
|
|
875
|
+
}>]>, "many">]>;
|
|
693
876
|
}, "strip", z.ZodTypeAny, {
|
|
694
877
|
type: "function_call_result";
|
|
695
878
|
status: "in_progress" | "completed" | "incomplete";
|
|
696
879
|
name: string;
|
|
697
|
-
output: {
|
|
880
|
+
output: string | {
|
|
698
881
|
type: "text";
|
|
699
882
|
text: string;
|
|
700
883
|
providerData?: Record<string, any> | undefined;
|
|
701
884
|
} | {
|
|
702
885
|
type: "image";
|
|
703
|
-
data: string;
|
|
704
|
-
mediaType: string;
|
|
705
886
|
providerData?: Record<string, any> | undefined;
|
|
706
|
-
|
|
887
|
+
image?: string | {
|
|
888
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
889
|
+
mediaType?: string | undefined;
|
|
890
|
+
} | {
|
|
891
|
+
url: string;
|
|
892
|
+
} | {
|
|
893
|
+
fileId: string;
|
|
894
|
+
} | undefined;
|
|
895
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
896
|
+
} | {
|
|
897
|
+
type: "file";
|
|
898
|
+
file: string | {
|
|
899
|
+
filename: string;
|
|
900
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
901
|
+
mediaType: string;
|
|
902
|
+
} | {
|
|
903
|
+
url: string;
|
|
904
|
+
filename?: string | undefined;
|
|
905
|
+
} | {
|
|
906
|
+
id: string;
|
|
907
|
+
filename?: string | undefined;
|
|
908
|
+
};
|
|
909
|
+
providerData?: Record<string, any> | undefined;
|
|
910
|
+
} | ({
|
|
911
|
+
type: "input_text";
|
|
912
|
+
text: string;
|
|
913
|
+
providerData?: Record<string, any> | undefined;
|
|
914
|
+
} | {
|
|
915
|
+
type: "input_image";
|
|
916
|
+
providerData?: Record<string, any> | undefined;
|
|
917
|
+
image?: string | {
|
|
918
|
+
id: string;
|
|
919
|
+
} | undefined;
|
|
920
|
+
detail?: string | undefined;
|
|
921
|
+
} | {
|
|
922
|
+
type: "input_file";
|
|
923
|
+
providerData?: Record<string, any> | undefined;
|
|
924
|
+
file?: string | {
|
|
925
|
+
id: string;
|
|
926
|
+
} | {
|
|
927
|
+
url: string;
|
|
928
|
+
} | undefined;
|
|
929
|
+
filename?: string | undefined;
|
|
930
|
+
})[];
|
|
707
931
|
callId: string;
|
|
708
932
|
providerData?: Record<string, any> | undefined;
|
|
709
933
|
id?: string | undefined;
|
|
@@ -711,16 +935,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
711
935
|
type: "function_call_result";
|
|
712
936
|
status: "in_progress" | "completed" | "incomplete";
|
|
713
937
|
name: string;
|
|
714
|
-
output: {
|
|
938
|
+
output: string | {
|
|
715
939
|
type: "text";
|
|
716
940
|
text: string;
|
|
717
941
|
providerData?: Record<string, any> | undefined;
|
|
718
942
|
} | {
|
|
719
943
|
type: "image";
|
|
720
|
-
data: string;
|
|
721
|
-
mediaType: string;
|
|
722
944
|
providerData?: Record<string, any> | undefined;
|
|
723
|
-
|
|
945
|
+
image?: string | {
|
|
946
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
947
|
+
mediaType?: string | undefined;
|
|
948
|
+
} | {
|
|
949
|
+
url: string;
|
|
950
|
+
} | {
|
|
951
|
+
fileId: string;
|
|
952
|
+
} | undefined;
|
|
953
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
954
|
+
} | {
|
|
955
|
+
type: "file";
|
|
956
|
+
file: string | {
|
|
957
|
+
filename: string;
|
|
958
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
959
|
+
mediaType: string;
|
|
960
|
+
} | {
|
|
961
|
+
url: string;
|
|
962
|
+
filename?: string | undefined;
|
|
963
|
+
} | {
|
|
964
|
+
id: string;
|
|
965
|
+
filename?: string | undefined;
|
|
966
|
+
};
|
|
967
|
+
providerData?: Record<string, any> | undefined;
|
|
968
|
+
} | ({
|
|
969
|
+
type: "input_text";
|
|
970
|
+
text: string;
|
|
971
|
+
providerData?: Record<string, any> | undefined;
|
|
972
|
+
} | {
|
|
973
|
+
type: "input_image";
|
|
974
|
+
providerData?: Record<string, any> | undefined;
|
|
975
|
+
image?: string | {
|
|
976
|
+
id: string;
|
|
977
|
+
} | undefined;
|
|
978
|
+
detail?: string | undefined;
|
|
979
|
+
} | {
|
|
980
|
+
type: "input_file";
|
|
981
|
+
providerData?: Record<string, any> | undefined;
|
|
982
|
+
file?: string | {
|
|
983
|
+
id: string;
|
|
984
|
+
} | {
|
|
985
|
+
url: string;
|
|
986
|
+
} | undefined;
|
|
987
|
+
filename?: string | undefined;
|
|
988
|
+
})[];
|
|
724
989
|
callId: string;
|
|
725
990
|
providerData?: Record<string, any> | undefined;
|
|
726
991
|
id?: string | undefined;
|
|
@@ -3087,7 +3352,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
3087
3352
|
name: z.ZodString;
|
|
3088
3353
|
callId: z.ZodString;
|
|
3089
3354
|
status: z.ZodEnum<["in_progress", "completed", "incomplete"]>;
|
|
3090
|
-
output: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3355
|
+
output: z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3091
3356
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3092
3357
|
} & {
|
|
3093
3358
|
type: z.ZodLiteral<"text">;
|
|
@@ -3104,50 +3369,305 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
3104
3369
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3105
3370
|
} & {
|
|
3106
3371
|
type: z.ZodLiteral<"image">;
|
|
3107
|
-
|
|
3108
|
-
|
|
3372
|
+
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
3373
|
+
data: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>;
|
|
3374
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
3375
|
+
}, "strip", z.ZodTypeAny, {
|
|
3376
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3377
|
+
mediaType?: string | undefined;
|
|
3378
|
+
}, {
|
|
3379
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3380
|
+
mediaType?: string | undefined;
|
|
3381
|
+
}>, z.ZodObject<{
|
|
3382
|
+
url: z.ZodString;
|
|
3383
|
+
}, "strip", z.ZodTypeAny, {
|
|
3384
|
+
url: string;
|
|
3385
|
+
}, {
|
|
3386
|
+
url: string;
|
|
3387
|
+
}>, z.ZodObject<{
|
|
3388
|
+
fileId: z.ZodString;
|
|
3389
|
+
}, "strip", z.ZodTypeAny, {
|
|
3390
|
+
fileId: string;
|
|
3391
|
+
}, {
|
|
3392
|
+
fileId: string;
|
|
3393
|
+
}>]>]>>;
|
|
3394
|
+
detail: z.ZodOptional<z.ZodType<"low" | "high" | "auto" | (string & {}), z.ZodTypeDef, "low" | "high" | "auto" | (string & {})>>;
|
|
3109
3395
|
}, "strip", z.ZodTypeAny, {
|
|
3110
3396
|
type: "image";
|
|
3111
|
-
data: string;
|
|
3112
|
-
mediaType: string;
|
|
3113
3397
|
providerData?: Record<string, any> | undefined;
|
|
3398
|
+
image?: string | {
|
|
3399
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3400
|
+
mediaType?: string | undefined;
|
|
3401
|
+
} | {
|
|
3402
|
+
url: string;
|
|
3403
|
+
} | {
|
|
3404
|
+
fileId: string;
|
|
3405
|
+
} | undefined;
|
|
3406
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
3114
3407
|
}, {
|
|
3115
3408
|
type: "image";
|
|
3116
|
-
data: string;
|
|
3117
|
-
mediaType: string;
|
|
3118
|
-
providerData?: Record<string, any> | undefined;
|
|
3119
|
-
}>]>;
|
|
3120
|
-
}, "strip", z.ZodTypeAny, {
|
|
3121
|
-
type: "function_call_result";
|
|
3122
|
-
status: "in_progress" | "completed" | "incomplete";
|
|
3123
|
-
name: string;
|
|
3124
|
-
output: {
|
|
3125
|
-
type: "text";
|
|
3126
|
-
text: string;
|
|
3127
3409
|
providerData?: Record<string, any> | undefined;
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3410
|
+
image?: string | {
|
|
3411
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3412
|
+
mediaType?: string | undefined;
|
|
3413
|
+
} | {
|
|
3414
|
+
url: string;
|
|
3415
|
+
} | {
|
|
3416
|
+
fileId: string;
|
|
3417
|
+
} | undefined;
|
|
3418
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
3419
|
+
}>, z.ZodObject<{
|
|
3420
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3421
|
+
} & {
|
|
3422
|
+
type: z.ZodLiteral<"file">;
|
|
3423
|
+
file: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3424
|
+
data: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>;
|
|
3425
|
+
mediaType: z.ZodString;
|
|
3426
|
+
filename: z.ZodString;
|
|
3427
|
+
}, "strip", z.ZodTypeAny, {
|
|
3428
|
+
filename: string;
|
|
3429
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3430
|
+
mediaType: string;
|
|
3431
|
+
}, {
|
|
3432
|
+
filename: string;
|
|
3433
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3434
|
+
mediaType: string;
|
|
3435
|
+
}>, z.ZodObject<{
|
|
3436
|
+
url: z.ZodString;
|
|
3437
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
3438
|
+
}, "strip", z.ZodTypeAny, {
|
|
3439
|
+
url: string;
|
|
3440
|
+
filename?: string | undefined;
|
|
3441
|
+
}, {
|
|
3442
|
+
url: string;
|
|
3443
|
+
filename?: string | undefined;
|
|
3444
|
+
}>, z.ZodObject<{
|
|
3445
|
+
id: z.ZodString;
|
|
3446
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
3447
|
+
}, "strip", z.ZodTypeAny, {
|
|
3448
|
+
id: string;
|
|
3449
|
+
filename?: string | undefined;
|
|
3450
|
+
}, {
|
|
3451
|
+
id: string;
|
|
3452
|
+
filename?: string | undefined;
|
|
3453
|
+
}>]>;
|
|
3454
|
+
}, "strip", z.ZodTypeAny, {
|
|
3455
|
+
type: "file";
|
|
3456
|
+
file: string | {
|
|
3457
|
+
filename: string;
|
|
3458
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3459
|
+
mediaType: string;
|
|
3460
|
+
} | {
|
|
3461
|
+
url: string;
|
|
3462
|
+
filename?: string | undefined;
|
|
3463
|
+
} | {
|
|
3464
|
+
id: string;
|
|
3465
|
+
filename?: string | undefined;
|
|
3466
|
+
};
|
|
3132
3467
|
providerData?: Record<string, any> | undefined;
|
|
3133
|
-
}
|
|
3134
|
-
|
|
3468
|
+
}, {
|
|
3469
|
+
type: "file";
|
|
3470
|
+
file: string | {
|
|
3471
|
+
filename: string;
|
|
3472
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3473
|
+
mediaType: string;
|
|
3474
|
+
} | {
|
|
3475
|
+
url: string;
|
|
3476
|
+
filename?: string | undefined;
|
|
3477
|
+
} | {
|
|
3478
|
+
id: string;
|
|
3479
|
+
filename?: string | undefined;
|
|
3480
|
+
};
|
|
3481
|
+
providerData?: Record<string, any> | undefined;
|
|
3482
|
+
}>]>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3483
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3484
|
+
} & {
|
|
3485
|
+
type: z.ZodLiteral<"input_text">;
|
|
3486
|
+
text: z.ZodString;
|
|
3487
|
+
}, "strip", z.ZodTypeAny, {
|
|
3488
|
+
type: "input_text";
|
|
3489
|
+
text: string;
|
|
3490
|
+
providerData?: Record<string, any> | undefined;
|
|
3491
|
+
}, {
|
|
3492
|
+
type: "input_text";
|
|
3493
|
+
text: string;
|
|
3494
|
+
providerData?: Record<string, any> | undefined;
|
|
3495
|
+
}>, z.ZodObject<{
|
|
3496
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3497
|
+
} & {
|
|
3498
|
+
type: z.ZodLiteral<"input_image">;
|
|
3499
|
+
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3500
|
+
id: z.ZodString;
|
|
3501
|
+
}, "strip", z.ZodTypeAny, {
|
|
3502
|
+
id: string;
|
|
3503
|
+
}, {
|
|
3504
|
+
id: string;
|
|
3505
|
+
}>]>>;
|
|
3506
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3507
|
+
}, "strip", z.ZodTypeAny, {
|
|
3508
|
+
type: "input_image";
|
|
3509
|
+
providerData?: Record<string, any> | undefined;
|
|
3510
|
+
image?: string | {
|
|
3511
|
+
id: string;
|
|
3512
|
+
} | undefined;
|
|
3513
|
+
detail?: string | undefined;
|
|
3514
|
+
}, {
|
|
3515
|
+
type: "input_image";
|
|
3516
|
+
providerData?: Record<string, any> | undefined;
|
|
3517
|
+
image?: string | {
|
|
3518
|
+
id: string;
|
|
3519
|
+
} | undefined;
|
|
3520
|
+
detail?: string | undefined;
|
|
3521
|
+
}>, z.ZodObject<{
|
|
3522
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3523
|
+
} & {
|
|
3524
|
+
type: z.ZodLiteral<"input_file">;
|
|
3525
|
+
file: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3526
|
+
id: z.ZodString;
|
|
3527
|
+
}, "strip", z.ZodTypeAny, {
|
|
3528
|
+
id: string;
|
|
3529
|
+
}, {
|
|
3530
|
+
id: string;
|
|
3531
|
+
}>]>, z.ZodObject<{
|
|
3532
|
+
url: z.ZodString;
|
|
3533
|
+
}, "strip", z.ZodTypeAny, {
|
|
3534
|
+
url: string;
|
|
3535
|
+
}, {
|
|
3536
|
+
url: string;
|
|
3537
|
+
}>]>>;
|
|
3538
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
3539
|
+
}, "strip", z.ZodTypeAny, {
|
|
3540
|
+
type: "input_file";
|
|
3541
|
+
providerData?: Record<string, any> | undefined;
|
|
3542
|
+
file?: string | {
|
|
3543
|
+
id: string;
|
|
3544
|
+
} | {
|
|
3545
|
+
url: string;
|
|
3546
|
+
} | undefined;
|
|
3547
|
+
filename?: string | undefined;
|
|
3548
|
+
}, {
|
|
3549
|
+
type: "input_file";
|
|
3550
|
+
providerData?: Record<string, any> | undefined;
|
|
3551
|
+
file?: string | {
|
|
3552
|
+
id: string;
|
|
3553
|
+
} | {
|
|
3554
|
+
url: string;
|
|
3555
|
+
} | undefined;
|
|
3556
|
+
filename?: string | undefined;
|
|
3557
|
+
}>]>, "many">]>;
|
|
3558
|
+
}, "strip", z.ZodTypeAny, {
|
|
3559
|
+
type: "function_call_result";
|
|
3560
|
+
status: "in_progress" | "completed" | "incomplete";
|
|
3561
|
+
name: string;
|
|
3562
|
+
output: string | {
|
|
3563
|
+
type: "text";
|
|
3564
|
+
text: string;
|
|
3565
|
+
providerData?: Record<string, any> | undefined;
|
|
3566
|
+
} | {
|
|
3567
|
+
type: "image";
|
|
3568
|
+
providerData?: Record<string, any> | undefined;
|
|
3569
|
+
image?: string | {
|
|
3570
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3571
|
+
mediaType?: string | undefined;
|
|
3572
|
+
} | {
|
|
3573
|
+
url: string;
|
|
3574
|
+
} | {
|
|
3575
|
+
fileId: string;
|
|
3576
|
+
} | undefined;
|
|
3577
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
3578
|
+
} | {
|
|
3579
|
+
type: "file";
|
|
3580
|
+
file: string | {
|
|
3581
|
+
filename: string;
|
|
3582
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3583
|
+
mediaType: string;
|
|
3584
|
+
} | {
|
|
3585
|
+
url: string;
|
|
3586
|
+
filename?: string | undefined;
|
|
3587
|
+
} | {
|
|
3588
|
+
id: string;
|
|
3589
|
+
filename?: string | undefined;
|
|
3590
|
+
};
|
|
3591
|
+
providerData?: Record<string, any> | undefined;
|
|
3592
|
+
} | ({
|
|
3593
|
+
type: "input_text";
|
|
3594
|
+
text: string;
|
|
3595
|
+
providerData?: Record<string, any> | undefined;
|
|
3596
|
+
} | {
|
|
3597
|
+
type: "input_image";
|
|
3598
|
+
providerData?: Record<string, any> | undefined;
|
|
3599
|
+
image?: string | {
|
|
3600
|
+
id: string;
|
|
3601
|
+
} | undefined;
|
|
3602
|
+
detail?: string | undefined;
|
|
3603
|
+
} | {
|
|
3604
|
+
type: "input_file";
|
|
3605
|
+
providerData?: Record<string, any> | undefined;
|
|
3606
|
+
file?: string | {
|
|
3607
|
+
id: string;
|
|
3608
|
+
} | {
|
|
3609
|
+
url: string;
|
|
3610
|
+
} | undefined;
|
|
3611
|
+
filename?: string | undefined;
|
|
3612
|
+
})[];
|
|
3613
|
+
callId: string;
|
|
3135
3614
|
providerData?: Record<string, any> | undefined;
|
|
3136
3615
|
id?: string | undefined;
|
|
3137
3616
|
}, {
|
|
3138
3617
|
type: "function_call_result";
|
|
3139
3618
|
status: "in_progress" | "completed" | "incomplete";
|
|
3140
3619
|
name: string;
|
|
3141
|
-
output: {
|
|
3620
|
+
output: string | {
|
|
3142
3621
|
type: "text";
|
|
3143
3622
|
text: string;
|
|
3144
3623
|
providerData?: Record<string, any> | undefined;
|
|
3145
3624
|
} | {
|
|
3146
3625
|
type: "image";
|
|
3147
|
-
data: string;
|
|
3148
|
-
mediaType: string;
|
|
3149
3626
|
providerData?: Record<string, any> | undefined;
|
|
3150
|
-
|
|
3627
|
+
image?: string | {
|
|
3628
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3629
|
+
mediaType?: string | undefined;
|
|
3630
|
+
} | {
|
|
3631
|
+
url: string;
|
|
3632
|
+
} | {
|
|
3633
|
+
fileId: string;
|
|
3634
|
+
} | undefined;
|
|
3635
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
3636
|
+
} | {
|
|
3637
|
+
type: "file";
|
|
3638
|
+
file: string | {
|
|
3639
|
+
filename: string;
|
|
3640
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3641
|
+
mediaType: string;
|
|
3642
|
+
} | {
|
|
3643
|
+
url: string;
|
|
3644
|
+
filename?: string | undefined;
|
|
3645
|
+
} | {
|
|
3646
|
+
id: string;
|
|
3647
|
+
filename?: string | undefined;
|
|
3648
|
+
};
|
|
3649
|
+
providerData?: Record<string, any> | undefined;
|
|
3650
|
+
} | ({
|
|
3651
|
+
type: "input_text";
|
|
3652
|
+
text: string;
|
|
3653
|
+
providerData?: Record<string, any> | undefined;
|
|
3654
|
+
} | {
|
|
3655
|
+
type: "input_image";
|
|
3656
|
+
providerData?: Record<string, any> | undefined;
|
|
3657
|
+
image?: string | {
|
|
3658
|
+
id: string;
|
|
3659
|
+
} | undefined;
|
|
3660
|
+
detail?: string | undefined;
|
|
3661
|
+
} | {
|
|
3662
|
+
type: "input_file";
|
|
3663
|
+
providerData?: Record<string, any> | undefined;
|
|
3664
|
+
file?: string | {
|
|
3665
|
+
id: string;
|
|
3666
|
+
} | {
|
|
3667
|
+
url: string;
|
|
3668
|
+
} | undefined;
|
|
3669
|
+
filename?: string | undefined;
|
|
3670
|
+
})[];
|
|
3151
3671
|
callId: string;
|
|
3152
3672
|
providerData?: Record<string, any> | undefined;
|
|
3153
3673
|
id?: string | undefined;
|
|
@@ -3170,16 +3690,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
3170
3690
|
type: "function_call_result";
|
|
3171
3691
|
status: "in_progress" | "completed" | "incomplete";
|
|
3172
3692
|
name: string;
|
|
3173
|
-
output: {
|
|
3693
|
+
output: string | {
|
|
3174
3694
|
type: "text";
|
|
3175
3695
|
text: string;
|
|
3176
3696
|
providerData?: Record<string, any> | undefined;
|
|
3177
3697
|
} | {
|
|
3178
3698
|
type: "image";
|
|
3179
|
-
data: string;
|
|
3180
|
-
mediaType: string;
|
|
3181
3699
|
providerData?: Record<string, any> | undefined;
|
|
3182
|
-
|
|
3700
|
+
image?: string | {
|
|
3701
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3702
|
+
mediaType?: string | undefined;
|
|
3703
|
+
} | {
|
|
3704
|
+
url: string;
|
|
3705
|
+
} | {
|
|
3706
|
+
fileId: string;
|
|
3707
|
+
} | undefined;
|
|
3708
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
3709
|
+
} | {
|
|
3710
|
+
type: "file";
|
|
3711
|
+
file: string | {
|
|
3712
|
+
filename: string;
|
|
3713
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3714
|
+
mediaType: string;
|
|
3715
|
+
} | {
|
|
3716
|
+
url: string;
|
|
3717
|
+
filename?: string | undefined;
|
|
3718
|
+
} | {
|
|
3719
|
+
id: string;
|
|
3720
|
+
filename?: string | undefined;
|
|
3721
|
+
};
|
|
3722
|
+
providerData?: Record<string, any> | undefined;
|
|
3723
|
+
} | ({
|
|
3724
|
+
type: "input_text";
|
|
3725
|
+
text: string;
|
|
3726
|
+
providerData?: Record<string, any> | undefined;
|
|
3727
|
+
} | {
|
|
3728
|
+
type: "input_image";
|
|
3729
|
+
providerData?: Record<string, any> | undefined;
|
|
3730
|
+
image?: string | {
|
|
3731
|
+
id: string;
|
|
3732
|
+
} | undefined;
|
|
3733
|
+
detail?: string | undefined;
|
|
3734
|
+
} | {
|
|
3735
|
+
type: "input_file";
|
|
3736
|
+
providerData?: Record<string, any> | undefined;
|
|
3737
|
+
file?: string | {
|
|
3738
|
+
id: string;
|
|
3739
|
+
} | {
|
|
3740
|
+
url: string;
|
|
3741
|
+
} | undefined;
|
|
3742
|
+
filename?: string | undefined;
|
|
3743
|
+
})[];
|
|
3183
3744
|
callId: string;
|
|
3184
3745
|
providerData?: Record<string, any> | undefined;
|
|
3185
3746
|
id?: string | undefined;
|
|
@@ -3194,16 +3755,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
3194
3755
|
type: "function_call_result";
|
|
3195
3756
|
status: "in_progress" | "completed" | "incomplete";
|
|
3196
3757
|
name: string;
|
|
3197
|
-
output: {
|
|
3758
|
+
output: string | {
|
|
3198
3759
|
type: "text";
|
|
3199
3760
|
text: string;
|
|
3200
3761
|
providerData?: Record<string, any> | undefined;
|
|
3201
3762
|
} | {
|
|
3202
3763
|
type: "image";
|
|
3203
|
-
data: string;
|
|
3204
|
-
mediaType: string;
|
|
3205
3764
|
providerData?: Record<string, any> | undefined;
|
|
3206
|
-
|
|
3765
|
+
image?: string | {
|
|
3766
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3767
|
+
mediaType?: string | undefined;
|
|
3768
|
+
} | {
|
|
3769
|
+
url: string;
|
|
3770
|
+
} | {
|
|
3771
|
+
fileId: string;
|
|
3772
|
+
} | undefined;
|
|
3773
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
3774
|
+
} | {
|
|
3775
|
+
type: "file";
|
|
3776
|
+
file: string | {
|
|
3777
|
+
filename: string;
|
|
3778
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
3779
|
+
mediaType: string;
|
|
3780
|
+
} | {
|
|
3781
|
+
url: string;
|
|
3782
|
+
filename?: string | undefined;
|
|
3783
|
+
} | {
|
|
3784
|
+
id: string;
|
|
3785
|
+
filename?: string | undefined;
|
|
3786
|
+
};
|
|
3787
|
+
providerData?: Record<string, any> | undefined;
|
|
3788
|
+
} | ({
|
|
3789
|
+
type: "input_text";
|
|
3790
|
+
text: string;
|
|
3791
|
+
providerData?: Record<string, any> | undefined;
|
|
3792
|
+
} | {
|
|
3793
|
+
type: "input_image";
|
|
3794
|
+
providerData?: Record<string, any> | undefined;
|
|
3795
|
+
image?: string | {
|
|
3796
|
+
id: string;
|
|
3797
|
+
} | undefined;
|
|
3798
|
+
detail?: string | undefined;
|
|
3799
|
+
} | {
|
|
3800
|
+
type: "input_file";
|
|
3801
|
+
providerData?: Record<string, any> | undefined;
|
|
3802
|
+
file?: string | {
|
|
3803
|
+
id: string;
|
|
3804
|
+
} | {
|
|
3805
|
+
url: string;
|
|
3806
|
+
} | undefined;
|
|
3807
|
+
filename?: string | undefined;
|
|
3808
|
+
})[];
|
|
3207
3809
|
callId: string;
|
|
3208
3810
|
providerData?: Record<string, any> | undefined;
|
|
3209
3811
|
id?: string | undefined;
|
|
@@ -3394,7 +3996,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
3394
3996
|
name: z.ZodString;
|
|
3395
3997
|
callId: z.ZodString;
|
|
3396
3998
|
status: z.ZodEnum<["in_progress", "completed", "incomplete"]>;
|
|
3397
|
-
output: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3999
|
+
output: z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3398
4000
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3399
4001
|
} & {
|
|
3400
4002
|
type: z.ZodLiteral<"text">;
|
|
@@ -3411,33 +4013,247 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
3411
4013
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3412
4014
|
} & {
|
|
3413
4015
|
type: z.ZodLiteral<"image">;
|
|
3414
|
-
|
|
3415
|
-
|
|
4016
|
+
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
4017
|
+
data: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>;
|
|
4018
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
4019
|
+
}, "strip", z.ZodTypeAny, {
|
|
4020
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4021
|
+
mediaType?: string | undefined;
|
|
4022
|
+
}, {
|
|
4023
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4024
|
+
mediaType?: string | undefined;
|
|
4025
|
+
}>, z.ZodObject<{
|
|
4026
|
+
url: z.ZodString;
|
|
4027
|
+
}, "strip", z.ZodTypeAny, {
|
|
4028
|
+
url: string;
|
|
4029
|
+
}, {
|
|
4030
|
+
url: string;
|
|
4031
|
+
}>, z.ZodObject<{
|
|
4032
|
+
fileId: z.ZodString;
|
|
4033
|
+
}, "strip", z.ZodTypeAny, {
|
|
4034
|
+
fileId: string;
|
|
4035
|
+
}, {
|
|
4036
|
+
fileId: string;
|
|
4037
|
+
}>]>]>>;
|
|
4038
|
+
detail: z.ZodOptional<z.ZodType<"low" | "high" | "auto" | (string & {}), z.ZodTypeDef, "low" | "high" | "auto" | (string & {})>>;
|
|
3416
4039
|
}, "strip", z.ZodTypeAny, {
|
|
3417
4040
|
type: "image";
|
|
3418
|
-
data: string;
|
|
3419
|
-
mediaType: string;
|
|
3420
4041
|
providerData?: Record<string, any> | undefined;
|
|
4042
|
+
image?: string | {
|
|
4043
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4044
|
+
mediaType?: string | undefined;
|
|
4045
|
+
} | {
|
|
4046
|
+
url: string;
|
|
4047
|
+
} | {
|
|
4048
|
+
fileId: string;
|
|
4049
|
+
} | undefined;
|
|
4050
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
3421
4051
|
}, {
|
|
3422
4052
|
type: "image";
|
|
3423
|
-
data: string;
|
|
3424
|
-
mediaType: string;
|
|
3425
4053
|
providerData?: Record<string, any> | undefined;
|
|
3426
|
-
|
|
4054
|
+
image?: string | {
|
|
4055
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4056
|
+
mediaType?: string | undefined;
|
|
4057
|
+
} | {
|
|
4058
|
+
url: string;
|
|
4059
|
+
} | {
|
|
4060
|
+
fileId: string;
|
|
4061
|
+
} | undefined;
|
|
4062
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
4063
|
+
}>, z.ZodObject<{
|
|
4064
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4065
|
+
} & {
|
|
4066
|
+
type: z.ZodLiteral<"file">;
|
|
4067
|
+
file: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
4068
|
+
data: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>;
|
|
4069
|
+
mediaType: z.ZodString;
|
|
4070
|
+
filename: z.ZodString;
|
|
4071
|
+
}, "strip", z.ZodTypeAny, {
|
|
4072
|
+
filename: string;
|
|
4073
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4074
|
+
mediaType: string;
|
|
4075
|
+
}, {
|
|
4076
|
+
filename: string;
|
|
4077
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4078
|
+
mediaType: string;
|
|
4079
|
+
}>, z.ZodObject<{
|
|
4080
|
+
url: z.ZodString;
|
|
4081
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
4082
|
+
}, "strip", z.ZodTypeAny, {
|
|
4083
|
+
url: string;
|
|
4084
|
+
filename?: string | undefined;
|
|
4085
|
+
}, {
|
|
4086
|
+
url: string;
|
|
4087
|
+
filename?: string | undefined;
|
|
4088
|
+
}>, z.ZodObject<{
|
|
4089
|
+
id: z.ZodString;
|
|
4090
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
4091
|
+
}, "strip", z.ZodTypeAny, {
|
|
4092
|
+
id: string;
|
|
4093
|
+
filename?: string | undefined;
|
|
4094
|
+
}, {
|
|
4095
|
+
id: string;
|
|
4096
|
+
filename?: string | undefined;
|
|
4097
|
+
}>]>;
|
|
4098
|
+
}, "strip", z.ZodTypeAny, {
|
|
4099
|
+
type: "file";
|
|
4100
|
+
file: string | {
|
|
4101
|
+
filename: string;
|
|
4102
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4103
|
+
mediaType: string;
|
|
4104
|
+
} | {
|
|
4105
|
+
url: string;
|
|
4106
|
+
filename?: string | undefined;
|
|
4107
|
+
} | {
|
|
4108
|
+
id: string;
|
|
4109
|
+
filename?: string | undefined;
|
|
4110
|
+
};
|
|
4111
|
+
providerData?: Record<string, any> | undefined;
|
|
4112
|
+
}, {
|
|
4113
|
+
type: "file";
|
|
4114
|
+
file: string | {
|
|
4115
|
+
filename: string;
|
|
4116
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4117
|
+
mediaType: string;
|
|
4118
|
+
} | {
|
|
4119
|
+
url: string;
|
|
4120
|
+
filename?: string | undefined;
|
|
4121
|
+
} | {
|
|
4122
|
+
id: string;
|
|
4123
|
+
filename?: string | undefined;
|
|
4124
|
+
};
|
|
4125
|
+
providerData?: Record<string, any> | undefined;
|
|
4126
|
+
}>]>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4127
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4128
|
+
} & {
|
|
4129
|
+
type: z.ZodLiteral<"input_text">;
|
|
4130
|
+
text: z.ZodString;
|
|
4131
|
+
}, "strip", z.ZodTypeAny, {
|
|
4132
|
+
type: "input_text";
|
|
4133
|
+
text: string;
|
|
4134
|
+
providerData?: Record<string, any> | undefined;
|
|
4135
|
+
}, {
|
|
4136
|
+
type: "input_text";
|
|
4137
|
+
text: string;
|
|
4138
|
+
providerData?: Record<string, any> | undefined;
|
|
4139
|
+
}>, z.ZodObject<{
|
|
4140
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4141
|
+
} & {
|
|
4142
|
+
type: z.ZodLiteral<"input_image">;
|
|
4143
|
+
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
4144
|
+
id: z.ZodString;
|
|
4145
|
+
}, "strip", z.ZodTypeAny, {
|
|
4146
|
+
id: string;
|
|
4147
|
+
}, {
|
|
4148
|
+
id: string;
|
|
4149
|
+
}>]>>;
|
|
4150
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
4151
|
+
}, "strip", z.ZodTypeAny, {
|
|
4152
|
+
type: "input_image";
|
|
4153
|
+
providerData?: Record<string, any> | undefined;
|
|
4154
|
+
image?: string | {
|
|
4155
|
+
id: string;
|
|
4156
|
+
} | undefined;
|
|
4157
|
+
detail?: string | undefined;
|
|
4158
|
+
}, {
|
|
4159
|
+
type: "input_image";
|
|
4160
|
+
providerData?: Record<string, any> | undefined;
|
|
4161
|
+
image?: string | {
|
|
4162
|
+
id: string;
|
|
4163
|
+
} | undefined;
|
|
4164
|
+
detail?: string | undefined;
|
|
4165
|
+
}>, z.ZodObject<{
|
|
4166
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4167
|
+
} & {
|
|
4168
|
+
type: z.ZodLiteral<"input_file">;
|
|
4169
|
+
file: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
4170
|
+
id: z.ZodString;
|
|
4171
|
+
}, "strip", z.ZodTypeAny, {
|
|
4172
|
+
id: string;
|
|
4173
|
+
}, {
|
|
4174
|
+
id: string;
|
|
4175
|
+
}>]>, z.ZodObject<{
|
|
4176
|
+
url: z.ZodString;
|
|
4177
|
+
}, "strip", z.ZodTypeAny, {
|
|
4178
|
+
url: string;
|
|
4179
|
+
}, {
|
|
4180
|
+
url: string;
|
|
4181
|
+
}>]>>;
|
|
4182
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
4183
|
+
}, "strip", z.ZodTypeAny, {
|
|
4184
|
+
type: "input_file";
|
|
4185
|
+
providerData?: Record<string, any> | undefined;
|
|
4186
|
+
file?: string | {
|
|
4187
|
+
id: string;
|
|
4188
|
+
} | {
|
|
4189
|
+
url: string;
|
|
4190
|
+
} | undefined;
|
|
4191
|
+
filename?: string | undefined;
|
|
4192
|
+
}, {
|
|
4193
|
+
type: "input_file";
|
|
4194
|
+
providerData?: Record<string, any> | undefined;
|
|
4195
|
+
file?: string | {
|
|
4196
|
+
id: string;
|
|
4197
|
+
} | {
|
|
4198
|
+
url: string;
|
|
4199
|
+
} | undefined;
|
|
4200
|
+
filename?: string | undefined;
|
|
4201
|
+
}>]>, "many">]>;
|
|
3427
4202
|
}, "strip", z.ZodTypeAny, {
|
|
3428
4203
|
type: "function_call_result";
|
|
3429
4204
|
status: "in_progress" | "completed" | "incomplete";
|
|
3430
4205
|
name: string;
|
|
3431
|
-
output: {
|
|
4206
|
+
output: string | {
|
|
3432
4207
|
type: "text";
|
|
3433
4208
|
text: string;
|
|
3434
4209
|
providerData?: Record<string, any> | undefined;
|
|
3435
4210
|
} | {
|
|
3436
4211
|
type: "image";
|
|
3437
|
-
data: string;
|
|
3438
|
-
mediaType: string;
|
|
3439
4212
|
providerData?: Record<string, any> | undefined;
|
|
3440
|
-
|
|
4213
|
+
image?: string | {
|
|
4214
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4215
|
+
mediaType?: string | undefined;
|
|
4216
|
+
} | {
|
|
4217
|
+
url: string;
|
|
4218
|
+
} | {
|
|
4219
|
+
fileId: string;
|
|
4220
|
+
} | undefined;
|
|
4221
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
4222
|
+
} | {
|
|
4223
|
+
type: "file";
|
|
4224
|
+
file: string | {
|
|
4225
|
+
filename: string;
|
|
4226
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4227
|
+
mediaType: string;
|
|
4228
|
+
} | {
|
|
4229
|
+
url: string;
|
|
4230
|
+
filename?: string | undefined;
|
|
4231
|
+
} | {
|
|
4232
|
+
id: string;
|
|
4233
|
+
filename?: string | undefined;
|
|
4234
|
+
};
|
|
4235
|
+
providerData?: Record<string, any> | undefined;
|
|
4236
|
+
} | ({
|
|
4237
|
+
type: "input_text";
|
|
4238
|
+
text: string;
|
|
4239
|
+
providerData?: Record<string, any> | undefined;
|
|
4240
|
+
} | {
|
|
4241
|
+
type: "input_image";
|
|
4242
|
+
providerData?: Record<string, any> | undefined;
|
|
4243
|
+
image?: string | {
|
|
4244
|
+
id: string;
|
|
4245
|
+
} | undefined;
|
|
4246
|
+
detail?: string | undefined;
|
|
4247
|
+
} | {
|
|
4248
|
+
type: "input_file";
|
|
4249
|
+
providerData?: Record<string, any> | undefined;
|
|
4250
|
+
file?: string | {
|
|
4251
|
+
id: string;
|
|
4252
|
+
} | {
|
|
4253
|
+
url: string;
|
|
4254
|
+
} | undefined;
|
|
4255
|
+
filename?: string | undefined;
|
|
4256
|
+
})[];
|
|
3441
4257
|
callId: string;
|
|
3442
4258
|
providerData?: Record<string, any> | undefined;
|
|
3443
4259
|
id?: string | undefined;
|
|
@@ -3445,16 +4261,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
3445
4261
|
type: "function_call_result";
|
|
3446
4262
|
status: "in_progress" | "completed" | "incomplete";
|
|
3447
4263
|
name: string;
|
|
3448
|
-
output: {
|
|
4264
|
+
output: string | {
|
|
3449
4265
|
type: "text";
|
|
3450
4266
|
text: string;
|
|
3451
4267
|
providerData?: Record<string, any> | undefined;
|
|
3452
4268
|
} | {
|
|
3453
4269
|
type: "image";
|
|
3454
|
-
data: string;
|
|
3455
|
-
mediaType: string;
|
|
3456
4270
|
providerData?: Record<string, any> | undefined;
|
|
3457
|
-
|
|
4271
|
+
image?: string | {
|
|
4272
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4273
|
+
mediaType?: string | undefined;
|
|
4274
|
+
} | {
|
|
4275
|
+
url: string;
|
|
4276
|
+
} | {
|
|
4277
|
+
fileId: string;
|
|
4278
|
+
} | undefined;
|
|
4279
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
4280
|
+
} | {
|
|
4281
|
+
type: "file";
|
|
4282
|
+
file: string | {
|
|
4283
|
+
filename: string;
|
|
4284
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4285
|
+
mediaType: string;
|
|
4286
|
+
} | {
|
|
4287
|
+
url: string;
|
|
4288
|
+
filename?: string | undefined;
|
|
4289
|
+
} | {
|
|
4290
|
+
id: string;
|
|
4291
|
+
filename?: string | undefined;
|
|
4292
|
+
};
|
|
4293
|
+
providerData?: Record<string, any> | undefined;
|
|
4294
|
+
} | ({
|
|
4295
|
+
type: "input_text";
|
|
4296
|
+
text: string;
|
|
4297
|
+
providerData?: Record<string, any> | undefined;
|
|
4298
|
+
} | {
|
|
4299
|
+
type: "input_image";
|
|
4300
|
+
providerData?: Record<string, any> | undefined;
|
|
4301
|
+
image?: string | {
|
|
4302
|
+
id: string;
|
|
4303
|
+
} | undefined;
|
|
4304
|
+
detail?: string | undefined;
|
|
4305
|
+
} | {
|
|
4306
|
+
type: "input_file";
|
|
4307
|
+
providerData?: Record<string, any> | undefined;
|
|
4308
|
+
file?: string | {
|
|
4309
|
+
id: string;
|
|
4310
|
+
} | {
|
|
4311
|
+
url: string;
|
|
4312
|
+
} | undefined;
|
|
4313
|
+
filename?: string | undefined;
|
|
4314
|
+
})[];
|
|
3458
4315
|
callId: string;
|
|
3459
4316
|
providerData?: Record<string, any> | undefined;
|
|
3460
4317
|
id?: string | undefined;
|
|
@@ -3479,16 +4336,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
3479
4336
|
type: "function_call_result";
|
|
3480
4337
|
status: "in_progress" | "completed" | "incomplete";
|
|
3481
4338
|
name: string;
|
|
3482
|
-
output: {
|
|
4339
|
+
output: string | {
|
|
3483
4340
|
type: "text";
|
|
3484
4341
|
text: string;
|
|
3485
4342
|
providerData?: Record<string, any> | undefined;
|
|
3486
4343
|
} | {
|
|
3487
4344
|
type: "image";
|
|
3488
|
-
data: string;
|
|
3489
|
-
mediaType: string;
|
|
3490
4345
|
providerData?: Record<string, any> | undefined;
|
|
3491
|
-
|
|
4346
|
+
image?: string | {
|
|
4347
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4348
|
+
mediaType?: string | undefined;
|
|
4349
|
+
} | {
|
|
4350
|
+
url: string;
|
|
4351
|
+
} | {
|
|
4352
|
+
fileId: string;
|
|
4353
|
+
} | undefined;
|
|
4354
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
4355
|
+
} | {
|
|
4356
|
+
type: "file";
|
|
4357
|
+
file: string | {
|
|
4358
|
+
filename: string;
|
|
4359
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4360
|
+
mediaType: string;
|
|
4361
|
+
} | {
|
|
4362
|
+
url: string;
|
|
4363
|
+
filename?: string | undefined;
|
|
4364
|
+
} | {
|
|
4365
|
+
id: string;
|
|
4366
|
+
filename?: string | undefined;
|
|
4367
|
+
};
|
|
4368
|
+
providerData?: Record<string, any> | undefined;
|
|
4369
|
+
} | ({
|
|
4370
|
+
type: "input_text";
|
|
4371
|
+
text: string;
|
|
4372
|
+
providerData?: Record<string, any> | undefined;
|
|
4373
|
+
} | {
|
|
4374
|
+
type: "input_image";
|
|
4375
|
+
providerData?: Record<string, any> | undefined;
|
|
4376
|
+
image?: string | {
|
|
4377
|
+
id: string;
|
|
4378
|
+
} | undefined;
|
|
4379
|
+
detail?: string | undefined;
|
|
4380
|
+
} | {
|
|
4381
|
+
type: "input_file";
|
|
4382
|
+
providerData?: Record<string, any> | undefined;
|
|
4383
|
+
file?: string | {
|
|
4384
|
+
id: string;
|
|
4385
|
+
} | {
|
|
4386
|
+
url: string;
|
|
4387
|
+
} | undefined;
|
|
4388
|
+
filename?: string | undefined;
|
|
4389
|
+
})[];
|
|
3492
4390
|
callId: string;
|
|
3493
4391
|
providerData?: Record<string, any> | undefined;
|
|
3494
4392
|
id?: string | undefined;
|
|
@@ -3505,16 +4403,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
3505
4403
|
type: "function_call_result";
|
|
3506
4404
|
status: "in_progress" | "completed" | "incomplete";
|
|
3507
4405
|
name: string;
|
|
3508
|
-
output: {
|
|
4406
|
+
output: string | {
|
|
3509
4407
|
type: "text";
|
|
3510
4408
|
text: string;
|
|
3511
4409
|
providerData?: Record<string, any> | undefined;
|
|
3512
4410
|
} | {
|
|
3513
4411
|
type: "image";
|
|
3514
|
-
data: string;
|
|
3515
|
-
mediaType: string;
|
|
3516
4412
|
providerData?: Record<string, any> | undefined;
|
|
3517
|
-
|
|
4413
|
+
image?: string | {
|
|
4414
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4415
|
+
mediaType?: string | undefined;
|
|
4416
|
+
} | {
|
|
4417
|
+
url: string;
|
|
4418
|
+
} | {
|
|
4419
|
+
fileId: string;
|
|
4420
|
+
} | undefined;
|
|
4421
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
4422
|
+
} | {
|
|
4423
|
+
type: "file";
|
|
4424
|
+
file: string | {
|
|
4425
|
+
filename: string;
|
|
4426
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
4427
|
+
mediaType: string;
|
|
4428
|
+
} | {
|
|
4429
|
+
url: string;
|
|
4430
|
+
filename?: string | undefined;
|
|
4431
|
+
} | {
|
|
4432
|
+
id: string;
|
|
4433
|
+
filename?: string | undefined;
|
|
4434
|
+
};
|
|
4435
|
+
providerData?: Record<string, any> | undefined;
|
|
4436
|
+
} | ({
|
|
4437
|
+
type: "input_text";
|
|
4438
|
+
text: string;
|
|
4439
|
+
providerData?: Record<string, any> | undefined;
|
|
4440
|
+
} | {
|
|
4441
|
+
type: "input_image";
|
|
4442
|
+
providerData?: Record<string, any> | undefined;
|
|
4443
|
+
image?: string | {
|
|
4444
|
+
id: string;
|
|
4445
|
+
} | undefined;
|
|
4446
|
+
detail?: string | undefined;
|
|
4447
|
+
} | {
|
|
4448
|
+
type: "input_file";
|
|
4449
|
+
providerData?: Record<string, any> | undefined;
|
|
4450
|
+
file?: string | {
|
|
4451
|
+
id: string;
|
|
4452
|
+
} | {
|
|
4453
|
+
url: string;
|
|
4454
|
+
} | undefined;
|
|
4455
|
+
filename?: string | undefined;
|
|
4456
|
+
})[];
|
|
3518
4457
|
callId: string;
|
|
3519
4458
|
providerData?: Record<string, any> | undefined;
|
|
3520
4459
|
id?: string | undefined;
|
|
@@ -4272,50 +5211,264 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
4272
5211
|
name: z.ZodString;
|
|
4273
5212
|
callId: z.ZodString;
|
|
4274
5213
|
status: z.ZodEnum<["in_progress", "completed", "incomplete"]>;
|
|
4275
|
-
output: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5214
|
+
output: z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4276
5215
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4277
5216
|
} & {
|
|
4278
5217
|
type: z.ZodLiteral<"text">;
|
|
4279
5218
|
text: z.ZodString;
|
|
4280
5219
|
}, "strip", z.ZodTypeAny, {
|
|
4281
|
-
type: "text";
|
|
4282
|
-
text: string;
|
|
5220
|
+
type: "text";
|
|
5221
|
+
text: string;
|
|
5222
|
+
providerData?: Record<string, any> | undefined;
|
|
5223
|
+
}, {
|
|
5224
|
+
type: "text";
|
|
5225
|
+
text: string;
|
|
5226
|
+
providerData?: Record<string, any> | undefined;
|
|
5227
|
+
}>, z.ZodObject<{
|
|
5228
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5229
|
+
} & {
|
|
5230
|
+
type: z.ZodLiteral<"image">;
|
|
5231
|
+
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
5232
|
+
data: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>;
|
|
5233
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
5234
|
+
}, "strip", z.ZodTypeAny, {
|
|
5235
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5236
|
+
mediaType?: string | undefined;
|
|
5237
|
+
}, {
|
|
5238
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5239
|
+
mediaType?: string | undefined;
|
|
5240
|
+
}>, z.ZodObject<{
|
|
5241
|
+
url: z.ZodString;
|
|
5242
|
+
}, "strip", z.ZodTypeAny, {
|
|
5243
|
+
url: string;
|
|
5244
|
+
}, {
|
|
5245
|
+
url: string;
|
|
5246
|
+
}>, z.ZodObject<{
|
|
5247
|
+
fileId: z.ZodString;
|
|
5248
|
+
}, "strip", z.ZodTypeAny, {
|
|
5249
|
+
fileId: string;
|
|
5250
|
+
}, {
|
|
5251
|
+
fileId: string;
|
|
5252
|
+
}>]>]>>;
|
|
5253
|
+
detail: z.ZodOptional<z.ZodType<"low" | "high" | "auto" | (string & {}), z.ZodTypeDef, "low" | "high" | "auto" | (string & {})>>;
|
|
5254
|
+
}, "strip", z.ZodTypeAny, {
|
|
5255
|
+
type: "image";
|
|
5256
|
+
providerData?: Record<string, any> | undefined;
|
|
5257
|
+
image?: string | {
|
|
5258
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5259
|
+
mediaType?: string | undefined;
|
|
5260
|
+
} | {
|
|
5261
|
+
url: string;
|
|
5262
|
+
} | {
|
|
5263
|
+
fileId: string;
|
|
5264
|
+
} | undefined;
|
|
5265
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
5266
|
+
}, {
|
|
5267
|
+
type: "image";
|
|
5268
|
+
providerData?: Record<string, any> | undefined;
|
|
5269
|
+
image?: string | {
|
|
5270
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5271
|
+
mediaType?: string | undefined;
|
|
5272
|
+
} | {
|
|
5273
|
+
url: string;
|
|
5274
|
+
} | {
|
|
5275
|
+
fileId: string;
|
|
5276
|
+
} | undefined;
|
|
5277
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
5278
|
+
}>, z.ZodObject<{
|
|
5279
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5280
|
+
} & {
|
|
5281
|
+
type: z.ZodLiteral<"file">;
|
|
5282
|
+
file: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
5283
|
+
data: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>;
|
|
5284
|
+
mediaType: z.ZodString;
|
|
5285
|
+
filename: z.ZodString;
|
|
5286
|
+
}, "strip", z.ZodTypeAny, {
|
|
5287
|
+
filename: string;
|
|
5288
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5289
|
+
mediaType: string;
|
|
5290
|
+
}, {
|
|
5291
|
+
filename: string;
|
|
5292
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5293
|
+
mediaType: string;
|
|
5294
|
+
}>, z.ZodObject<{
|
|
5295
|
+
url: z.ZodString;
|
|
5296
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
5297
|
+
}, "strip", z.ZodTypeAny, {
|
|
5298
|
+
url: string;
|
|
5299
|
+
filename?: string | undefined;
|
|
5300
|
+
}, {
|
|
5301
|
+
url: string;
|
|
5302
|
+
filename?: string | undefined;
|
|
5303
|
+
}>, z.ZodObject<{
|
|
5304
|
+
id: z.ZodString;
|
|
5305
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
5306
|
+
}, "strip", z.ZodTypeAny, {
|
|
5307
|
+
id: string;
|
|
5308
|
+
filename?: string | undefined;
|
|
5309
|
+
}, {
|
|
5310
|
+
id: string;
|
|
5311
|
+
filename?: string | undefined;
|
|
5312
|
+
}>]>;
|
|
5313
|
+
}, "strip", z.ZodTypeAny, {
|
|
5314
|
+
type: "file";
|
|
5315
|
+
file: string | {
|
|
5316
|
+
filename: string;
|
|
5317
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5318
|
+
mediaType: string;
|
|
5319
|
+
} | {
|
|
5320
|
+
url: string;
|
|
5321
|
+
filename?: string | undefined;
|
|
5322
|
+
} | {
|
|
5323
|
+
id: string;
|
|
5324
|
+
filename?: string | undefined;
|
|
5325
|
+
};
|
|
5326
|
+
providerData?: Record<string, any> | undefined;
|
|
5327
|
+
}, {
|
|
5328
|
+
type: "file";
|
|
5329
|
+
file: string | {
|
|
5330
|
+
filename: string;
|
|
5331
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5332
|
+
mediaType: string;
|
|
5333
|
+
} | {
|
|
5334
|
+
url: string;
|
|
5335
|
+
filename?: string | undefined;
|
|
5336
|
+
} | {
|
|
5337
|
+
id: string;
|
|
5338
|
+
filename?: string | undefined;
|
|
5339
|
+
};
|
|
5340
|
+
providerData?: Record<string, any> | undefined;
|
|
5341
|
+
}>]>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5342
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5343
|
+
} & {
|
|
5344
|
+
type: z.ZodLiteral<"input_text">;
|
|
5345
|
+
text: z.ZodString;
|
|
5346
|
+
}, "strip", z.ZodTypeAny, {
|
|
5347
|
+
type: "input_text";
|
|
5348
|
+
text: string;
|
|
5349
|
+
providerData?: Record<string, any> | undefined;
|
|
5350
|
+
}, {
|
|
5351
|
+
type: "input_text";
|
|
5352
|
+
text: string;
|
|
5353
|
+
providerData?: Record<string, any> | undefined;
|
|
5354
|
+
}>, z.ZodObject<{
|
|
5355
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5356
|
+
} & {
|
|
5357
|
+
type: z.ZodLiteral<"input_image">;
|
|
5358
|
+
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
5359
|
+
id: z.ZodString;
|
|
5360
|
+
}, "strip", z.ZodTypeAny, {
|
|
5361
|
+
id: string;
|
|
5362
|
+
}, {
|
|
5363
|
+
id: string;
|
|
5364
|
+
}>]>>;
|
|
5365
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
5366
|
+
}, "strip", z.ZodTypeAny, {
|
|
5367
|
+
type: "input_image";
|
|
4283
5368
|
providerData?: Record<string, any> | undefined;
|
|
5369
|
+
image?: string | {
|
|
5370
|
+
id: string;
|
|
5371
|
+
} | undefined;
|
|
5372
|
+
detail?: string | undefined;
|
|
4284
5373
|
}, {
|
|
4285
|
-
type: "
|
|
4286
|
-
text: string;
|
|
5374
|
+
type: "input_image";
|
|
4287
5375
|
providerData?: Record<string, any> | undefined;
|
|
5376
|
+
image?: string | {
|
|
5377
|
+
id: string;
|
|
5378
|
+
} | undefined;
|
|
5379
|
+
detail?: string | undefined;
|
|
4288
5380
|
}>, z.ZodObject<{
|
|
4289
5381
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4290
5382
|
} & {
|
|
4291
|
-
type: z.ZodLiteral<"
|
|
4292
|
-
|
|
4293
|
-
|
|
5383
|
+
type: z.ZodLiteral<"input_file">;
|
|
5384
|
+
file: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
5385
|
+
id: z.ZodString;
|
|
5386
|
+
}, "strip", z.ZodTypeAny, {
|
|
5387
|
+
id: string;
|
|
5388
|
+
}, {
|
|
5389
|
+
id: string;
|
|
5390
|
+
}>]>, z.ZodObject<{
|
|
5391
|
+
url: z.ZodString;
|
|
5392
|
+
}, "strip", z.ZodTypeAny, {
|
|
5393
|
+
url: string;
|
|
5394
|
+
}, {
|
|
5395
|
+
url: string;
|
|
5396
|
+
}>]>>;
|
|
5397
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
4294
5398
|
}, "strip", z.ZodTypeAny, {
|
|
4295
|
-
type: "
|
|
4296
|
-
data: string;
|
|
4297
|
-
mediaType: string;
|
|
5399
|
+
type: "input_file";
|
|
4298
5400
|
providerData?: Record<string, any> | undefined;
|
|
5401
|
+
file?: string | {
|
|
5402
|
+
id: string;
|
|
5403
|
+
} | {
|
|
5404
|
+
url: string;
|
|
5405
|
+
} | undefined;
|
|
5406
|
+
filename?: string | undefined;
|
|
4299
5407
|
}, {
|
|
4300
|
-
type: "
|
|
4301
|
-
data: string;
|
|
4302
|
-
mediaType: string;
|
|
5408
|
+
type: "input_file";
|
|
4303
5409
|
providerData?: Record<string, any> | undefined;
|
|
4304
|
-
|
|
5410
|
+
file?: string | {
|
|
5411
|
+
id: string;
|
|
5412
|
+
} | {
|
|
5413
|
+
url: string;
|
|
5414
|
+
} | undefined;
|
|
5415
|
+
filename?: string | undefined;
|
|
5416
|
+
}>]>, "many">]>;
|
|
4305
5417
|
}, "strip", z.ZodTypeAny, {
|
|
4306
5418
|
type: "function_call_result";
|
|
4307
5419
|
status: "in_progress" | "completed" | "incomplete";
|
|
4308
5420
|
name: string;
|
|
4309
|
-
output: {
|
|
5421
|
+
output: string | {
|
|
4310
5422
|
type: "text";
|
|
4311
5423
|
text: string;
|
|
4312
5424
|
providerData?: Record<string, any> | undefined;
|
|
4313
5425
|
} | {
|
|
4314
5426
|
type: "image";
|
|
4315
|
-
data: string;
|
|
4316
|
-
mediaType: string;
|
|
4317
5427
|
providerData?: Record<string, any> | undefined;
|
|
4318
|
-
|
|
5428
|
+
image?: string | {
|
|
5429
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5430
|
+
mediaType?: string | undefined;
|
|
5431
|
+
} | {
|
|
5432
|
+
url: string;
|
|
5433
|
+
} | {
|
|
5434
|
+
fileId: string;
|
|
5435
|
+
} | undefined;
|
|
5436
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
5437
|
+
} | {
|
|
5438
|
+
type: "file";
|
|
5439
|
+
file: string | {
|
|
5440
|
+
filename: string;
|
|
5441
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5442
|
+
mediaType: string;
|
|
5443
|
+
} | {
|
|
5444
|
+
url: string;
|
|
5445
|
+
filename?: string | undefined;
|
|
5446
|
+
} | {
|
|
5447
|
+
id: string;
|
|
5448
|
+
filename?: string | undefined;
|
|
5449
|
+
};
|
|
5450
|
+
providerData?: Record<string, any> | undefined;
|
|
5451
|
+
} | ({
|
|
5452
|
+
type: "input_text";
|
|
5453
|
+
text: string;
|
|
5454
|
+
providerData?: Record<string, any> | undefined;
|
|
5455
|
+
} | {
|
|
5456
|
+
type: "input_image";
|
|
5457
|
+
providerData?: Record<string, any> | undefined;
|
|
5458
|
+
image?: string | {
|
|
5459
|
+
id: string;
|
|
5460
|
+
} | undefined;
|
|
5461
|
+
detail?: string | undefined;
|
|
5462
|
+
} | {
|
|
5463
|
+
type: "input_file";
|
|
5464
|
+
providerData?: Record<string, any> | undefined;
|
|
5465
|
+
file?: string | {
|
|
5466
|
+
id: string;
|
|
5467
|
+
} | {
|
|
5468
|
+
url: string;
|
|
5469
|
+
} | undefined;
|
|
5470
|
+
filename?: string | undefined;
|
|
5471
|
+
})[];
|
|
4319
5472
|
callId: string;
|
|
4320
5473
|
providerData?: Record<string, any> | undefined;
|
|
4321
5474
|
id?: string | undefined;
|
|
@@ -4323,16 +5476,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
4323
5476
|
type: "function_call_result";
|
|
4324
5477
|
status: "in_progress" | "completed" | "incomplete";
|
|
4325
5478
|
name: string;
|
|
4326
|
-
output: {
|
|
5479
|
+
output: string | {
|
|
4327
5480
|
type: "text";
|
|
4328
5481
|
text: string;
|
|
4329
5482
|
providerData?: Record<string, any> | undefined;
|
|
4330
5483
|
} | {
|
|
4331
5484
|
type: "image";
|
|
4332
|
-
data: string;
|
|
4333
|
-
mediaType: string;
|
|
4334
5485
|
providerData?: Record<string, any> | undefined;
|
|
4335
|
-
|
|
5486
|
+
image?: string | {
|
|
5487
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5488
|
+
mediaType?: string | undefined;
|
|
5489
|
+
} | {
|
|
5490
|
+
url: string;
|
|
5491
|
+
} | {
|
|
5492
|
+
fileId: string;
|
|
5493
|
+
} | undefined;
|
|
5494
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
5495
|
+
} | {
|
|
5496
|
+
type: "file";
|
|
5497
|
+
file: string | {
|
|
5498
|
+
filename: string;
|
|
5499
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5500
|
+
mediaType: string;
|
|
5501
|
+
} | {
|
|
5502
|
+
url: string;
|
|
5503
|
+
filename?: string | undefined;
|
|
5504
|
+
} | {
|
|
5505
|
+
id: string;
|
|
5506
|
+
filename?: string | undefined;
|
|
5507
|
+
};
|
|
5508
|
+
providerData?: Record<string, any> | undefined;
|
|
5509
|
+
} | ({
|
|
5510
|
+
type: "input_text";
|
|
5511
|
+
text: string;
|
|
5512
|
+
providerData?: Record<string, any> | undefined;
|
|
5513
|
+
} | {
|
|
5514
|
+
type: "input_image";
|
|
5515
|
+
providerData?: Record<string, any> | undefined;
|
|
5516
|
+
image?: string | {
|
|
5517
|
+
id: string;
|
|
5518
|
+
} | undefined;
|
|
5519
|
+
detail?: string | undefined;
|
|
5520
|
+
} | {
|
|
5521
|
+
type: "input_file";
|
|
5522
|
+
providerData?: Record<string, any> | undefined;
|
|
5523
|
+
file?: string | {
|
|
5524
|
+
id: string;
|
|
5525
|
+
} | {
|
|
5526
|
+
url: string;
|
|
5527
|
+
} | undefined;
|
|
5528
|
+
filename?: string | undefined;
|
|
5529
|
+
})[];
|
|
4336
5530
|
callId: string;
|
|
4337
5531
|
providerData?: Record<string, any> | undefined;
|
|
4338
5532
|
id?: string | undefined;
|
|
@@ -4355,16 +5549,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
4355
5549
|
type: "function_call_result";
|
|
4356
5550
|
status: "in_progress" | "completed" | "incomplete";
|
|
4357
5551
|
name: string;
|
|
4358
|
-
output: {
|
|
5552
|
+
output: string | {
|
|
4359
5553
|
type: "text";
|
|
4360
5554
|
text: string;
|
|
4361
5555
|
providerData?: Record<string, any> | undefined;
|
|
4362
5556
|
} | {
|
|
4363
5557
|
type: "image";
|
|
4364
|
-
data: string;
|
|
4365
|
-
mediaType: string;
|
|
4366
5558
|
providerData?: Record<string, any> | undefined;
|
|
4367
|
-
|
|
5559
|
+
image?: string | {
|
|
5560
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5561
|
+
mediaType?: string | undefined;
|
|
5562
|
+
} | {
|
|
5563
|
+
url: string;
|
|
5564
|
+
} | {
|
|
5565
|
+
fileId: string;
|
|
5566
|
+
} | undefined;
|
|
5567
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
5568
|
+
} | {
|
|
5569
|
+
type: "file";
|
|
5570
|
+
file: string | {
|
|
5571
|
+
filename: string;
|
|
5572
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5573
|
+
mediaType: string;
|
|
5574
|
+
} | {
|
|
5575
|
+
url: string;
|
|
5576
|
+
filename?: string | undefined;
|
|
5577
|
+
} | {
|
|
5578
|
+
id: string;
|
|
5579
|
+
filename?: string | undefined;
|
|
5580
|
+
};
|
|
5581
|
+
providerData?: Record<string, any> | undefined;
|
|
5582
|
+
} | ({
|
|
5583
|
+
type: "input_text";
|
|
5584
|
+
text: string;
|
|
5585
|
+
providerData?: Record<string, any> | undefined;
|
|
5586
|
+
} | {
|
|
5587
|
+
type: "input_image";
|
|
5588
|
+
providerData?: Record<string, any> | undefined;
|
|
5589
|
+
image?: string | {
|
|
5590
|
+
id: string;
|
|
5591
|
+
} | undefined;
|
|
5592
|
+
detail?: string | undefined;
|
|
5593
|
+
} | {
|
|
5594
|
+
type: "input_file";
|
|
5595
|
+
providerData?: Record<string, any> | undefined;
|
|
5596
|
+
file?: string | {
|
|
5597
|
+
id: string;
|
|
5598
|
+
} | {
|
|
5599
|
+
url: string;
|
|
5600
|
+
} | undefined;
|
|
5601
|
+
filename?: string | undefined;
|
|
5602
|
+
})[];
|
|
4368
5603
|
callId: string;
|
|
4369
5604
|
providerData?: Record<string, any> | undefined;
|
|
4370
5605
|
id?: string | undefined;
|
|
@@ -4379,16 +5614,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
4379
5614
|
type: "function_call_result";
|
|
4380
5615
|
status: "in_progress" | "completed" | "incomplete";
|
|
4381
5616
|
name: string;
|
|
4382
|
-
output: {
|
|
5617
|
+
output: string | {
|
|
4383
5618
|
type: "text";
|
|
4384
5619
|
text: string;
|
|
4385
5620
|
providerData?: Record<string, any> | undefined;
|
|
4386
5621
|
} | {
|
|
4387
5622
|
type: "image";
|
|
4388
|
-
data: string;
|
|
4389
|
-
mediaType: string;
|
|
4390
5623
|
providerData?: Record<string, any> | undefined;
|
|
4391
|
-
|
|
5624
|
+
image?: string | {
|
|
5625
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5626
|
+
mediaType?: string | undefined;
|
|
5627
|
+
} | {
|
|
5628
|
+
url: string;
|
|
5629
|
+
} | {
|
|
5630
|
+
fileId: string;
|
|
5631
|
+
} | undefined;
|
|
5632
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
5633
|
+
} | {
|
|
5634
|
+
type: "file";
|
|
5635
|
+
file: string | {
|
|
5636
|
+
filename: string;
|
|
5637
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5638
|
+
mediaType: string;
|
|
5639
|
+
} | {
|
|
5640
|
+
url: string;
|
|
5641
|
+
filename?: string | undefined;
|
|
5642
|
+
} | {
|
|
5643
|
+
id: string;
|
|
5644
|
+
filename?: string | undefined;
|
|
5645
|
+
};
|
|
5646
|
+
providerData?: Record<string, any> | undefined;
|
|
5647
|
+
} | ({
|
|
5648
|
+
type: "input_text";
|
|
5649
|
+
text: string;
|
|
5650
|
+
providerData?: Record<string, any> | undefined;
|
|
5651
|
+
} | {
|
|
5652
|
+
type: "input_image";
|
|
5653
|
+
providerData?: Record<string, any> | undefined;
|
|
5654
|
+
image?: string | {
|
|
5655
|
+
id: string;
|
|
5656
|
+
} | undefined;
|
|
5657
|
+
detail?: string | undefined;
|
|
5658
|
+
} | {
|
|
5659
|
+
type: "input_file";
|
|
5660
|
+
providerData?: Record<string, any> | undefined;
|
|
5661
|
+
file?: string | {
|
|
5662
|
+
id: string;
|
|
5663
|
+
} | {
|
|
5664
|
+
url: string;
|
|
5665
|
+
} | undefined;
|
|
5666
|
+
filename?: string | undefined;
|
|
5667
|
+
})[];
|
|
4392
5668
|
callId: string;
|
|
4393
5669
|
providerData?: Record<string, any> | undefined;
|
|
4394
5670
|
id?: string | undefined;
|
|
@@ -4579,7 +5855,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
4579
5855
|
name: z.ZodString;
|
|
4580
5856
|
callId: z.ZodString;
|
|
4581
5857
|
status: z.ZodEnum<["in_progress", "completed", "incomplete"]>;
|
|
4582
|
-
output: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5858
|
+
output: z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4583
5859
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4584
5860
|
} & {
|
|
4585
5861
|
type: z.ZodLiteral<"text">;
|
|
@@ -4596,33 +5872,247 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
4596
5872
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4597
5873
|
} & {
|
|
4598
5874
|
type: z.ZodLiteral<"image">;
|
|
4599
|
-
|
|
4600
|
-
|
|
5875
|
+
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
5876
|
+
data: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>;
|
|
5877
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
5878
|
+
}, "strip", z.ZodTypeAny, {
|
|
5879
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5880
|
+
mediaType?: string | undefined;
|
|
5881
|
+
}, {
|
|
5882
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5883
|
+
mediaType?: string | undefined;
|
|
5884
|
+
}>, z.ZodObject<{
|
|
5885
|
+
url: z.ZodString;
|
|
5886
|
+
}, "strip", z.ZodTypeAny, {
|
|
5887
|
+
url: string;
|
|
5888
|
+
}, {
|
|
5889
|
+
url: string;
|
|
5890
|
+
}>, z.ZodObject<{
|
|
5891
|
+
fileId: z.ZodString;
|
|
5892
|
+
}, "strip", z.ZodTypeAny, {
|
|
5893
|
+
fileId: string;
|
|
5894
|
+
}, {
|
|
5895
|
+
fileId: string;
|
|
5896
|
+
}>]>]>>;
|
|
5897
|
+
detail: z.ZodOptional<z.ZodType<"low" | "high" | "auto" | (string & {}), z.ZodTypeDef, "low" | "high" | "auto" | (string & {})>>;
|
|
4601
5898
|
}, "strip", z.ZodTypeAny, {
|
|
4602
5899
|
type: "image";
|
|
4603
|
-
data: string;
|
|
4604
|
-
mediaType: string;
|
|
4605
5900
|
providerData?: Record<string, any> | undefined;
|
|
5901
|
+
image?: string | {
|
|
5902
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5903
|
+
mediaType?: string | undefined;
|
|
5904
|
+
} | {
|
|
5905
|
+
url: string;
|
|
5906
|
+
} | {
|
|
5907
|
+
fileId: string;
|
|
5908
|
+
} | undefined;
|
|
5909
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
4606
5910
|
}, {
|
|
4607
5911
|
type: "image";
|
|
4608
|
-
data: string;
|
|
4609
|
-
mediaType: string;
|
|
4610
5912
|
providerData?: Record<string, any> | undefined;
|
|
4611
|
-
|
|
5913
|
+
image?: string | {
|
|
5914
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5915
|
+
mediaType?: string | undefined;
|
|
5916
|
+
} | {
|
|
5917
|
+
url: string;
|
|
5918
|
+
} | {
|
|
5919
|
+
fileId: string;
|
|
5920
|
+
} | undefined;
|
|
5921
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
5922
|
+
}>, z.ZodObject<{
|
|
5923
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5924
|
+
} & {
|
|
5925
|
+
type: z.ZodLiteral<"file">;
|
|
5926
|
+
file: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
5927
|
+
data: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>;
|
|
5928
|
+
mediaType: z.ZodString;
|
|
5929
|
+
filename: z.ZodString;
|
|
5930
|
+
}, "strip", z.ZodTypeAny, {
|
|
5931
|
+
filename: string;
|
|
5932
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5933
|
+
mediaType: string;
|
|
5934
|
+
}, {
|
|
5935
|
+
filename: string;
|
|
5936
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5937
|
+
mediaType: string;
|
|
5938
|
+
}>, z.ZodObject<{
|
|
5939
|
+
url: z.ZodString;
|
|
5940
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
5941
|
+
}, "strip", z.ZodTypeAny, {
|
|
5942
|
+
url: string;
|
|
5943
|
+
filename?: string | undefined;
|
|
5944
|
+
}, {
|
|
5945
|
+
url: string;
|
|
5946
|
+
filename?: string | undefined;
|
|
5947
|
+
}>, z.ZodObject<{
|
|
5948
|
+
id: z.ZodString;
|
|
5949
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
5950
|
+
}, "strip", z.ZodTypeAny, {
|
|
5951
|
+
id: string;
|
|
5952
|
+
filename?: string | undefined;
|
|
5953
|
+
}, {
|
|
5954
|
+
id: string;
|
|
5955
|
+
filename?: string | undefined;
|
|
5956
|
+
}>]>;
|
|
5957
|
+
}, "strip", z.ZodTypeAny, {
|
|
5958
|
+
type: "file";
|
|
5959
|
+
file: string | {
|
|
5960
|
+
filename: string;
|
|
5961
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5962
|
+
mediaType: string;
|
|
5963
|
+
} | {
|
|
5964
|
+
url: string;
|
|
5965
|
+
filename?: string | undefined;
|
|
5966
|
+
} | {
|
|
5967
|
+
id: string;
|
|
5968
|
+
filename?: string | undefined;
|
|
5969
|
+
};
|
|
5970
|
+
providerData?: Record<string, any> | undefined;
|
|
5971
|
+
}, {
|
|
5972
|
+
type: "file";
|
|
5973
|
+
file: string | {
|
|
5974
|
+
filename: string;
|
|
5975
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
5976
|
+
mediaType: string;
|
|
5977
|
+
} | {
|
|
5978
|
+
url: string;
|
|
5979
|
+
filename?: string | undefined;
|
|
5980
|
+
} | {
|
|
5981
|
+
id: string;
|
|
5982
|
+
filename?: string | undefined;
|
|
5983
|
+
};
|
|
5984
|
+
providerData?: Record<string, any> | undefined;
|
|
5985
|
+
}>]>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5986
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5987
|
+
} & {
|
|
5988
|
+
type: z.ZodLiteral<"input_text">;
|
|
5989
|
+
text: z.ZodString;
|
|
5990
|
+
}, "strip", z.ZodTypeAny, {
|
|
5991
|
+
type: "input_text";
|
|
5992
|
+
text: string;
|
|
5993
|
+
providerData?: Record<string, any> | undefined;
|
|
5994
|
+
}, {
|
|
5995
|
+
type: "input_text";
|
|
5996
|
+
text: string;
|
|
5997
|
+
providerData?: Record<string, any> | undefined;
|
|
5998
|
+
}>, z.ZodObject<{
|
|
5999
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
6000
|
+
} & {
|
|
6001
|
+
type: z.ZodLiteral<"input_image">;
|
|
6002
|
+
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
6003
|
+
id: z.ZodString;
|
|
6004
|
+
}, "strip", z.ZodTypeAny, {
|
|
6005
|
+
id: string;
|
|
6006
|
+
}, {
|
|
6007
|
+
id: string;
|
|
6008
|
+
}>]>>;
|
|
6009
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
6010
|
+
}, "strip", z.ZodTypeAny, {
|
|
6011
|
+
type: "input_image";
|
|
6012
|
+
providerData?: Record<string, any> | undefined;
|
|
6013
|
+
image?: string | {
|
|
6014
|
+
id: string;
|
|
6015
|
+
} | undefined;
|
|
6016
|
+
detail?: string | undefined;
|
|
6017
|
+
}, {
|
|
6018
|
+
type: "input_image";
|
|
6019
|
+
providerData?: Record<string, any> | undefined;
|
|
6020
|
+
image?: string | {
|
|
6021
|
+
id: string;
|
|
6022
|
+
} | undefined;
|
|
6023
|
+
detail?: string | undefined;
|
|
6024
|
+
}>, z.ZodObject<{
|
|
6025
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
6026
|
+
} & {
|
|
6027
|
+
type: z.ZodLiteral<"input_file">;
|
|
6028
|
+
file: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
6029
|
+
id: z.ZodString;
|
|
6030
|
+
}, "strip", z.ZodTypeAny, {
|
|
6031
|
+
id: string;
|
|
6032
|
+
}, {
|
|
6033
|
+
id: string;
|
|
6034
|
+
}>]>, z.ZodObject<{
|
|
6035
|
+
url: z.ZodString;
|
|
6036
|
+
}, "strip", z.ZodTypeAny, {
|
|
6037
|
+
url: string;
|
|
6038
|
+
}, {
|
|
6039
|
+
url: string;
|
|
6040
|
+
}>]>>;
|
|
6041
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
6042
|
+
}, "strip", z.ZodTypeAny, {
|
|
6043
|
+
type: "input_file";
|
|
6044
|
+
providerData?: Record<string, any> | undefined;
|
|
6045
|
+
file?: string | {
|
|
6046
|
+
id: string;
|
|
6047
|
+
} | {
|
|
6048
|
+
url: string;
|
|
6049
|
+
} | undefined;
|
|
6050
|
+
filename?: string | undefined;
|
|
6051
|
+
}, {
|
|
6052
|
+
type: "input_file";
|
|
6053
|
+
providerData?: Record<string, any> | undefined;
|
|
6054
|
+
file?: string | {
|
|
6055
|
+
id: string;
|
|
6056
|
+
} | {
|
|
6057
|
+
url: string;
|
|
6058
|
+
} | undefined;
|
|
6059
|
+
filename?: string | undefined;
|
|
6060
|
+
}>]>, "many">]>;
|
|
4612
6061
|
}, "strip", z.ZodTypeAny, {
|
|
4613
6062
|
type: "function_call_result";
|
|
4614
6063
|
status: "in_progress" | "completed" | "incomplete";
|
|
4615
6064
|
name: string;
|
|
4616
|
-
output: {
|
|
6065
|
+
output: string | {
|
|
4617
6066
|
type: "text";
|
|
4618
6067
|
text: string;
|
|
4619
6068
|
providerData?: Record<string, any> | undefined;
|
|
4620
6069
|
} | {
|
|
4621
6070
|
type: "image";
|
|
4622
|
-
data: string;
|
|
4623
|
-
mediaType: string;
|
|
4624
6071
|
providerData?: Record<string, any> | undefined;
|
|
4625
|
-
|
|
6072
|
+
image?: string | {
|
|
6073
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
6074
|
+
mediaType?: string | undefined;
|
|
6075
|
+
} | {
|
|
6076
|
+
url: string;
|
|
6077
|
+
} | {
|
|
6078
|
+
fileId: string;
|
|
6079
|
+
} | undefined;
|
|
6080
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
6081
|
+
} | {
|
|
6082
|
+
type: "file";
|
|
6083
|
+
file: string | {
|
|
6084
|
+
filename: string;
|
|
6085
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
6086
|
+
mediaType: string;
|
|
6087
|
+
} | {
|
|
6088
|
+
url: string;
|
|
6089
|
+
filename?: string | undefined;
|
|
6090
|
+
} | {
|
|
6091
|
+
id: string;
|
|
6092
|
+
filename?: string | undefined;
|
|
6093
|
+
};
|
|
6094
|
+
providerData?: Record<string, any> | undefined;
|
|
6095
|
+
} | ({
|
|
6096
|
+
type: "input_text";
|
|
6097
|
+
text: string;
|
|
6098
|
+
providerData?: Record<string, any> | undefined;
|
|
6099
|
+
} | {
|
|
6100
|
+
type: "input_image";
|
|
6101
|
+
providerData?: Record<string, any> | undefined;
|
|
6102
|
+
image?: string | {
|
|
6103
|
+
id: string;
|
|
6104
|
+
} | undefined;
|
|
6105
|
+
detail?: string | undefined;
|
|
6106
|
+
} | {
|
|
6107
|
+
type: "input_file";
|
|
6108
|
+
providerData?: Record<string, any> | undefined;
|
|
6109
|
+
file?: string | {
|
|
6110
|
+
id: string;
|
|
6111
|
+
} | {
|
|
6112
|
+
url: string;
|
|
6113
|
+
} | undefined;
|
|
6114
|
+
filename?: string | undefined;
|
|
6115
|
+
})[];
|
|
4626
6116
|
callId: string;
|
|
4627
6117
|
providerData?: Record<string, any> | undefined;
|
|
4628
6118
|
id?: string | undefined;
|
|
@@ -4630,16 +6120,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
4630
6120
|
type: "function_call_result";
|
|
4631
6121
|
status: "in_progress" | "completed" | "incomplete";
|
|
4632
6122
|
name: string;
|
|
4633
|
-
output: {
|
|
6123
|
+
output: string | {
|
|
4634
6124
|
type: "text";
|
|
4635
6125
|
text: string;
|
|
4636
6126
|
providerData?: Record<string, any> | undefined;
|
|
4637
6127
|
} | {
|
|
4638
6128
|
type: "image";
|
|
4639
|
-
data: string;
|
|
4640
|
-
mediaType: string;
|
|
4641
6129
|
providerData?: Record<string, any> | undefined;
|
|
4642
|
-
|
|
6130
|
+
image?: string | {
|
|
6131
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
6132
|
+
mediaType?: string | undefined;
|
|
6133
|
+
} | {
|
|
6134
|
+
url: string;
|
|
6135
|
+
} | {
|
|
6136
|
+
fileId: string;
|
|
6137
|
+
} | undefined;
|
|
6138
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
6139
|
+
} | {
|
|
6140
|
+
type: "file";
|
|
6141
|
+
file: string | {
|
|
6142
|
+
filename: string;
|
|
6143
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
6144
|
+
mediaType: string;
|
|
6145
|
+
} | {
|
|
6146
|
+
url: string;
|
|
6147
|
+
filename?: string | undefined;
|
|
6148
|
+
} | {
|
|
6149
|
+
id: string;
|
|
6150
|
+
filename?: string | undefined;
|
|
6151
|
+
};
|
|
6152
|
+
providerData?: Record<string, any> | undefined;
|
|
6153
|
+
} | ({
|
|
6154
|
+
type: "input_text";
|
|
6155
|
+
text: string;
|
|
6156
|
+
providerData?: Record<string, any> | undefined;
|
|
6157
|
+
} | {
|
|
6158
|
+
type: "input_image";
|
|
6159
|
+
providerData?: Record<string, any> | undefined;
|
|
6160
|
+
image?: string | {
|
|
6161
|
+
id: string;
|
|
6162
|
+
} | undefined;
|
|
6163
|
+
detail?: string | undefined;
|
|
6164
|
+
} | {
|
|
6165
|
+
type: "input_file";
|
|
6166
|
+
providerData?: Record<string, any> | undefined;
|
|
6167
|
+
file?: string | {
|
|
6168
|
+
id: string;
|
|
6169
|
+
} | {
|
|
6170
|
+
url: string;
|
|
6171
|
+
} | undefined;
|
|
6172
|
+
filename?: string | undefined;
|
|
6173
|
+
})[];
|
|
4643
6174
|
callId: string;
|
|
4644
6175
|
providerData?: Record<string, any> | undefined;
|
|
4645
6176
|
id?: string | undefined;
|
|
@@ -4664,16 +6195,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
4664
6195
|
type: "function_call_result";
|
|
4665
6196
|
status: "in_progress" | "completed" | "incomplete";
|
|
4666
6197
|
name: string;
|
|
4667
|
-
output: {
|
|
6198
|
+
output: string | {
|
|
4668
6199
|
type: "text";
|
|
4669
6200
|
text: string;
|
|
4670
6201
|
providerData?: Record<string, any> | undefined;
|
|
4671
6202
|
} | {
|
|
4672
6203
|
type: "image";
|
|
4673
|
-
data: string;
|
|
4674
|
-
mediaType: string;
|
|
4675
6204
|
providerData?: Record<string, any> | undefined;
|
|
4676
|
-
|
|
6205
|
+
image?: string | {
|
|
6206
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
6207
|
+
mediaType?: string | undefined;
|
|
6208
|
+
} | {
|
|
6209
|
+
url: string;
|
|
6210
|
+
} | {
|
|
6211
|
+
fileId: string;
|
|
6212
|
+
} | undefined;
|
|
6213
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
6214
|
+
} | {
|
|
6215
|
+
type: "file";
|
|
6216
|
+
file: string | {
|
|
6217
|
+
filename: string;
|
|
6218
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
6219
|
+
mediaType: string;
|
|
6220
|
+
} | {
|
|
6221
|
+
url: string;
|
|
6222
|
+
filename?: string | undefined;
|
|
6223
|
+
} | {
|
|
6224
|
+
id: string;
|
|
6225
|
+
filename?: string | undefined;
|
|
6226
|
+
};
|
|
6227
|
+
providerData?: Record<string, any> | undefined;
|
|
6228
|
+
} | ({
|
|
6229
|
+
type: "input_text";
|
|
6230
|
+
text: string;
|
|
6231
|
+
providerData?: Record<string, any> | undefined;
|
|
6232
|
+
} | {
|
|
6233
|
+
type: "input_image";
|
|
6234
|
+
providerData?: Record<string, any> | undefined;
|
|
6235
|
+
image?: string | {
|
|
6236
|
+
id: string;
|
|
6237
|
+
} | undefined;
|
|
6238
|
+
detail?: string | undefined;
|
|
6239
|
+
} | {
|
|
6240
|
+
type: "input_file";
|
|
6241
|
+
providerData?: Record<string, any> | undefined;
|
|
6242
|
+
file?: string | {
|
|
6243
|
+
id: string;
|
|
6244
|
+
} | {
|
|
6245
|
+
url: string;
|
|
6246
|
+
} | undefined;
|
|
6247
|
+
filename?: string | undefined;
|
|
6248
|
+
})[];
|
|
4677
6249
|
callId: string;
|
|
4678
6250
|
providerData?: Record<string, any> | undefined;
|
|
4679
6251
|
id?: string | undefined;
|
|
@@ -4690,16 +6262,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
4690
6262
|
type: "function_call_result";
|
|
4691
6263
|
status: "in_progress" | "completed" | "incomplete";
|
|
4692
6264
|
name: string;
|
|
4693
|
-
output: {
|
|
6265
|
+
output: string | {
|
|
4694
6266
|
type: "text";
|
|
4695
6267
|
text: string;
|
|
4696
6268
|
providerData?: Record<string, any> | undefined;
|
|
4697
6269
|
} | {
|
|
4698
6270
|
type: "image";
|
|
4699
|
-
data: string;
|
|
4700
|
-
mediaType: string;
|
|
4701
6271
|
providerData?: Record<string, any> | undefined;
|
|
4702
|
-
|
|
6272
|
+
image?: string | {
|
|
6273
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
6274
|
+
mediaType?: string | undefined;
|
|
6275
|
+
} | {
|
|
6276
|
+
url: string;
|
|
6277
|
+
} | {
|
|
6278
|
+
fileId: string;
|
|
6279
|
+
} | undefined;
|
|
6280
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
6281
|
+
} | {
|
|
6282
|
+
type: "file";
|
|
6283
|
+
file: string | {
|
|
6284
|
+
filename: string;
|
|
6285
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
6286
|
+
mediaType: string;
|
|
6287
|
+
} | {
|
|
6288
|
+
url: string;
|
|
6289
|
+
filename?: string | undefined;
|
|
6290
|
+
} | {
|
|
6291
|
+
id: string;
|
|
6292
|
+
filename?: string | undefined;
|
|
6293
|
+
};
|
|
6294
|
+
providerData?: Record<string, any> | undefined;
|
|
6295
|
+
} | ({
|
|
6296
|
+
type: "input_text";
|
|
6297
|
+
text: string;
|
|
6298
|
+
providerData?: Record<string, any> | undefined;
|
|
6299
|
+
} | {
|
|
6300
|
+
type: "input_image";
|
|
6301
|
+
providerData?: Record<string, any> | undefined;
|
|
6302
|
+
image?: string | {
|
|
6303
|
+
id: string;
|
|
6304
|
+
} | undefined;
|
|
6305
|
+
detail?: string | undefined;
|
|
6306
|
+
} | {
|
|
6307
|
+
type: "input_file";
|
|
6308
|
+
providerData?: Record<string, any> | undefined;
|
|
6309
|
+
file?: string | {
|
|
6310
|
+
id: string;
|
|
6311
|
+
} | {
|
|
6312
|
+
url: string;
|
|
6313
|
+
} | undefined;
|
|
6314
|
+
filename?: string | undefined;
|
|
6315
|
+
})[];
|
|
4703
6316
|
callId: string;
|
|
4704
6317
|
providerData?: Record<string, any> | undefined;
|
|
4705
6318
|
id?: string | undefined;
|
|
@@ -5049,16 +6662,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
5049
6662
|
type: "function_call_result";
|
|
5050
6663
|
status: "in_progress" | "completed" | "incomplete";
|
|
5051
6664
|
name: string;
|
|
5052
|
-
output: {
|
|
6665
|
+
output: string | {
|
|
5053
6666
|
type: "text";
|
|
5054
6667
|
text: string;
|
|
5055
6668
|
providerData?: Record<string, any> | undefined;
|
|
5056
6669
|
} | {
|
|
5057
6670
|
type: "image";
|
|
5058
|
-
data: string;
|
|
5059
|
-
mediaType: string;
|
|
5060
6671
|
providerData?: Record<string, any> | undefined;
|
|
5061
|
-
|
|
6672
|
+
image?: string | {
|
|
6673
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
6674
|
+
mediaType?: string | undefined;
|
|
6675
|
+
} | {
|
|
6676
|
+
url: string;
|
|
6677
|
+
} | {
|
|
6678
|
+
fileId: string;
|
|
6679
|
+
} | undefined;
|
|
6680
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
6681
|
+
} | {
|
|
6682
|
+
type: "file";
|
|
6683
|
+
file: string | {
|
|
6684
|
+
filename: string;
|
|
6685
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
6686
|
+
mediaType: string;
|
|
6687
|
+
} | {
|
|
6688
|
+
url: string;
|
|
6689
|
+
filename?: string | undefined;
|
|
6690
|
+
} | {
|
|
6691
|
+
id: string;
|
|
6692
|
+
filename?: string | undefined;
|
|
6693
|
+
};
|
|
6694
|
+
providerData?: Record<string, any> | undefined;
|
|
6695
|
+
} | ({
|
|
6696
|
+
type: "input_text";
|
|
6697
|
+
text: string;
|
|
6698
|
+
providerData?: Record<string, any> | undefined;
|
|
6699
|
+
} | {
|
|
6700
|
+
type: "input_image";
|
|
6701
|
+
providerData?: Record<string, any> | undefined;
|
|
6702
|
+
image?: string | {
|
|
6703
|
+
id: string;
|
|
6704
|
+
} | undefined;
|
|
6705
|
+
detail?: string | undefined;
|
|
6706
|
+
} | {
|
|
6707
|
+
type: "input_file";
|
|
6708
|
+
providerData?: Record<string, any> | undefined;
|
|
6709
|
+
file?: string | {
|
|
6710
|
+
id: string;
|
|
6711
|
+
} | {
|
|
6712
|
+
url: string;
|
|
6713
|
+
} | undefined;
|
|
6714
|
+
filename?: string | undefined;
|
|
6715
|
+
})[];
|
|
5062
6716
|
callId: string;
|
|
5063
6717
|
providerData?: Record<string, any> | undefined;
|
|
5064
6718
|
id?: string | undefined;
|
|
@@ -5103,16 +6757,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
5103
6757
|
type: "function_call_result";
|
|
5104
6758
|
status: "in_progress" | "completed" | "incomplete";
|
|
5105
6759
|
name: string;
|
|
5106
|
-
output: {
|
|
6760
|
+
output: string | {
|
|
5107
6761
|
type: "text";
|
|
5108
6762
|
text: string;
|
|
5109
6763
|
providerData?: Record<string, any> | undefined;
|
|
5110
6764
|
} | {
|
|
5111
6765
|
type: "image";
|
|
5112
|
-
data: string;
|
|
5113
|
-
mediaType: string;
|
|
5114
6766
|
providerData?: Record<string, any> | undefined;
|
|
5115
|
-
|
|
6767
|
+
image?: string | {
|
|
6768
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
6769
|
+
mediaType?: string | undefined;
|
|
6770
|
+
} | {
|
|
6771
|
+
url: string;
|
|
6772
|
+
} | {
|
|
6773
|
+
fileId: string;
|
|
6774
|
+
} | undefined;
|
|
6775
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
6776
|
+
} | {
|
|
6777
|
+
type: "file";
|
|
6778
|
+
file: string | {
|
|
6779
|
+
filename: string;
|
|
6780
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
6781
|
+
mediaType: string;
|
|
6782
|
+
} | {
|
|
6783
|
+
url: string;
|
|
6784
|
+
filename?: string | undefined;
|
|
6785
|
+
} | {
|
|
6786
|
+
id: string;
|
|
6787
|
+
filename?: string | undefined;
|
|
6788
|
+
};
|
|
6789
|
+
providerData?: Record<string, any> | undefined;
|
|
6790
|
+
} | ({
|
|
6791
|
+
type: "input_text";
|
|
6792
|
+
text: string;
|
|
6793
|
+
providerData?: Record<string, any> | undefined;
|
|
6794
|
+
} | {
|
|
6795
|
+
type: "input_image";
|
|
6796
|
+
providerData?: Record<string, any> | undefined;
|
|
6797
|
+
image?: string | {
|
|
6798
|
+
id: string;
|
|
6799
|
+
} | undefined;
|
|
6800
|
+
detail?: string | undefined;
|
|
6801
|
+
} | {
|
|
6802
|
+
type: "input_file";
|
|
6803
|
+
providerData?: Record<string, any> | undefined;
|
|
6804
|
+
file?: string | {
|
|
6805
|
+
id: string;
|
|
6806
|
+
} | {
|
|
6807
|
+
url: string;
|
|
6808
|
+
} | undefined;
|
|
6809
|
+
filename?: string | undefined;
|
|
6810
|
+
})[];
|
|
5116
6811
|
callId: string;
|
|
5117
6812
|
providerData?: Record<string, any> | undefined;
|
|
5118
6813
|
id?: string | undefined;
|
|
@@ -5284,16 +6979,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
5284
6979
|
type: "function_call_result";
|
|
5285
6980
|
status: "in_progress" | "completed" | "incomplete";
|
|
5286
6981
|
name: string;
|
|
5287
|
-
output: {
|
|
6982
|
+
output: string | {
|
|
5288
6983
|
type: "text";
|
|
5289
6984
|
text: string;
|
|
5290
6985
|
providerData?: Record<string, any> | undefined;
|
|
5291
6986
|
} | {
|
|
5292
6987
|
type: "image";
|
|
5293
|
-
data: string;
|
|
5294
|
-
mediaType: string;
|
|
5295
6988
|
providerData?: Record<string, any> | undefined;
|
|
5296
|
-
|
|
6989
|
+
image?: string | {
|
|
6990
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
6991
|
+
mediaType?: string | undefined;
|
|
6992
|
+
} | {
|
|
6993
|
+
url: string;
|
|
6994
|
+
} | {
|
|
6995
|
+
fileId: string;
|
|
6996
|
+
} | undefined;
|
|
6997
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
6998
|
+
} | {
|
|
6999
|
+
type: "file";
|
|
7000
|
+
file: string | {
|
|
7001
|
+
filename: string;
|
|
7002
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
7003
|
+
mediaType: string;
|
|
7004
|
+
} | {
|
|
7005
|
+
url: string;
|
|
7006
|
+
filename?: string | undefined;
|
|
7007
|
+
} | {
|
|
7008
|
+
id: string;
|
|
7009
|
+
filename?: string | undefined;
|
|
7010
|
+
};
|
|
7011
|
+
providerData?: Record<string, any> | undefined;
|
|
7012
|
+
} | ({
|
|
7013
|
+
type: "input_text";
|
|
7014
|
+
text: string;
|
|
7015
|
+
providerData?: Record<string, any> | undefined;
|
|
7016
|
+
} | {
|
|
7017
|
+
type: "input_image";
|
|
7018
|
+
providerData?: Record<string, any> | undefined;
|
|
7019
|
+
image?: string | {
|
|
7020
|
+
id: string;
|
|
7021
|
+
} | undefined;
|
|
7022
|
+
detail?: string | undefined;
|
|
7023
|
+
} | {
|
|
7024
|
+
type: "input_file";
|
|
7025
|
+
providerData?: Record<string, any> | undefined;
|
|
7026
|
+
file?: string | {
|
|
7027
|
+
id: string;
|
|
7028
|
+
} | {
|
|
7029
|
+
url: string;
|
|
7030
|
+
} | undefined;
|
|
7031
|
+
filename?: string | undefined;
|
|
7032
|
+
})[];
|
|
5297
7033
|
callId: string;
|
|
5298
7034
|
providerData?: Record<string, any> | undefined;
|
|
5299
7035
|
id?: string | undefined;
|
|
@@ -5338,16 +7074,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
5338
7074
|
type: "function_call_result";
|
|
5339
7075
|
status: "in_progress" | "completed" | "incomplete";
|
|
5340
7076
|
name: string;
|
|
5341
|
-
output: {
|
|
7077
|
+
output: string | {
|
|
5342
7078
|
type: "text";
|
|
5343
7079
|
text: string;
|
|
5344
7080
|
providerData?: Record<string, any> | undefined;
|
|
5345
7081
|
} | {
|
|
5346
7082
|
type: "image";
|
|
5347
|
-
data: string;
|
|
5348
|
-
mediaType: string;
|
|
5349
7083
|
providerData?: Record<string, any> | undefined;
|
|
5350
|
-
|
|
7084
|
+
image?: string | {
|
|
7085
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
7086
|
+
mediaType?: string | undefined;
|
|
7087
|
+
} | {
|
|
7088
|
+
url: string;
|
|
7089
|
+
} | {
|
|
7090
|
+
fileId: string;
|
|
7091
|
+
} | undefined;
|
|
7092
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
7093
|
+
} | {
|
|
7094
|
+
type: "file";
|
|
7095
|
+
file: string | {
|
|
7096
|
+
filename: string;
|
|
7097
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
7098
|
+
mediaType: string;
|
|
7099
|
+
} | {
|
|
7100
|
+
url: string;
|
|
7101
|
+
filename?: string | undefined;
|
|
7102
|
+
} | {
|
|
7103
|
+
id: string;
|
|
7104
|
+
filename?: string | undefined;
|
|
7105
|
+
};
|
|
7106
|
+
providerData?: Record<string, any> | undefined;
|
|
7107
|
+
} | ({
|
|
7108
|
+
type: "input_text";
|
|
7109
|
+
text: string;
|
|
7110
|
+
providerData?: Record<string, any> | undefined;
|
|
7111
|
+
} | {
|
|
7112
|
+
type: "input_image";
|
|
7113
|
+
providerData?: Record<string, any> | undefined;
|
|
7114
|
+
image?: string | {
|
|
7115
|
+
id: string;
|
|
7116
|
+
} | undefined;
|
|
7117
|
+
detail?: string | undefined;
|
|
7118
|
+
} | {
|
|
7119
|
+
type: "input_file";
|
|
7120
|
+
providerData?: Record<string, any> | undefined;
|
|
7121
|
+
file?: string | {
|
|
7122
|
+
id: string;
|
|
7123
|
+
} | {
|
|
7124
|
+
url: string;
|
|
7125
|
+
} | undefined;
|
|
7126
|
+
filename?: string | undefined;
|
|
7127
|
+
})[];
|
|
5351
7128
|
callId: string;
|
|
5352
7129
|
providerData?: Record<string, any> | undefined;
|
|
5353
7130
|
id?: string | undefined;
|
|
@@ -5468,18 +7245,20 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
5468
7245
|
providerData?: Record<string, any> | undefined;
|
|
5469
7246
|
} | {
|
|
5470
7247
|
type: "input_image";
|
|
5471
|
-
image: string | {
|
|
5472
|
-
id: string;
|
|
5473
|
-
};
|
|
5474
7248
|
providerData?: Record<string, any> | undefined;
|
|
7249
|
+
image?: string | {
|
|
7250
|
+
id: string;
|
|
7251
|
+
} | undefined;
|
|
7252
|
+
detail?: string | undefined;
|
|
5475
7253
|
} | {
|
|
5476
7254
|
type: "input_file";
|
|
5477
|
-
|
|
7255
|
+
providerData?: Record<string, any> | undefined;
|
|
7256
|
+
file?: string | {
|
|
5478
7257
|
id: string;
|
|
5479
7258
|
} | {
|
|
5480
7259
|
url: string;
|
|
5481
|
-
};
|
|
5482
|
-
|
|
7260
|
+
} | undefined;
|
|
7261
|
+
filename?: string | undefined;
|
|
5483
7262
|
} | {
|
|
5484
7263
|
type: "audio";
|
|
5485
7264
|
audio: string | {
|
|
@@ -5518,16 +7297,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
5518
7297
|
type: "function_call_result";
|
|
5519
7298
|
status: "in_progress" | "completed" | "incomplete";
|
|
5520
7299
|
name: string;
|
|
5521
|
-
output: {
|
|
7300
|
+
output: string | {
|
|
5522
7301
|
type: "text";
|
|
5523
7302
|
text: string;
|
|
5524
7303
|
providerData?: Record<string, any> | undefined;
|
|
5525
7304
|
} | {
|
|
5526
7305
|
type: "image";
|
|
5527
|
-
data: string;
|
|
5528
|
-
mediaType: string;
|
|
5529
7306
|
providerData?: Record<string, any> | undefined;
|
|
5530
|
-
|
|
7307
|
+
image?: string | {
|
|
7308
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
7309
|
+
mediaType?: string | undefined;
|
|
7310
|
+
} | {
|
|
7311
|
+
url: string;
|
|
7312
|
+
} | {
|
|
7313
|
+
fileId: string;
|
|
7314
|
+
} | undefined;
|
|
7315
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
7316
|
+
} | {
|
|
7317
|
+
type: "file";
|
|
7318
|
+
file: string | {
|
|
7319
|
+
filename: string;
|
|
7320
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
7321
|
+
mediaType: string;
|
|
7322
|
+
} | {
|
|
7323
|
+
url: string;
|
|
7324
|
+
filename?: string | undefined;
|
|
7325
|
+
} | {
|
|
7326
|
+
id: string;
|
|
7327
|
+
filename?: string | undefined;
|
|
7328
|
+
};
|
|
7329
|
+
providerData?: Record<string, any> | undefined;
|
|
7330
|
+
} | ({
|
|
7331
|
+
type: "input_text";
|
|
7332
|
+
text: string;
|
|
7333
|
+
providerData?: Record<string, any> | undefined;
|
|
7334
|
+
} | {
|
|
7335
|
+
type: "input_image";
|
|
7336
|
+
providerData?: Record<string, any> | undefined;
|
|
7337
|
+
image?: string | {
|
|
7338
|
+
id: string;
|
|
7339
|
+
} | undefined;
|
|
7340
|
+
detail?: string | undefined;
|
|
7341
|
+
} | {
|
|
7342
|
+
type: "input_file";
|
|
7343
|
+
providerData?: Record<string, any> | undefined;
|
|
7344
|
+
file?: string | {
|
|
7345
|
+
id: string;
|
|
7346
|
+
} | {
|
|
7347
|
+
url: string;
|
|
7348
|
+
} | undefined;
|
|
7349
|
+
filename?: string | undefined;
|
|
7350
|
+
})[];
|
|
5531
7351
|
callId: string;
|
|
5532
7352
|
providerData?: Record<string, any> | undefined;
|
|
5533
7353
|
id?: string | undefined;
|
|
@@ -5863,16 +7683,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
5863
7683
|
type: "function_call_result";
|
|
5864
7684
|
status: "in_progress" | "completed" | "incomplete";
|
|
5865
7685
|
name: string;
|
|
5866
|
-
output: {
|
|
7686
|
+
output: string | {
|
|
5867
7687
|
type: "text";
|
|
5868
7688
|
text: string;
|
|
5869
7689
|
providerData?: Record<string, any> | undefined;
|
|
5870
7690
|
} | {
|
|
5871
7691
|
type: "image";
|
|
5872
|
-
data: string;
|
|
5873
|
-
mediaType: string;
|
|
5874
7692
|
providerData?: Record<string, any> | undefined;
|
|
5875
|
-
|
|
7693
|
+
image?: string | {
|
|
7694
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
7695
|
+
mediaType?: string | undefined;
|
|
7696
|
+
} | {
|
|
7697
|
+
url: string;
|
|
7698
|
+
} | {
|
|
7699
|
+
fileId: string;
|
|
7700
|
+
} | undefined;
|
|
7701
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
7702
|
+
} | {
|
|
7703
|
+
type: "file";
|
|
7704
|
+
file: string | {
|
|
7705
|
+
filename: string;
|
|
7706
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
7707
|
+
mediaType: string;
|
|
7708
|
+
} | {
|
|
7709
|
+
url: string;
|
|
7710
|
+
filename?: string | undefined;
|
|
7711
|
+
} | {
|
|
7712
|
+
id: string;
|
|
7713
|
+
filename?: string | undefined;
|
|
7714
|
+
};
|
|
7715
|
+
providerData?: Record<string, any> | undefined;
|
|
7716
|
+
} | ({
|
|
7717
|
+
type: "input_text";
|
|
7718
|
+
text: string;
|
|
7719
|
+
providerData?: Record<string, any> | undefined;
|
|
7720
|
+
} | {
|
|
7721
|
+
type: "input_image";
|
|
7722
|
+
providerData?: Record<string, any> | undefined;
|
|
7723
|
+
image?: string | {
|
|
7724
|
+
id: string;
|
|
7725
|
+
} | undefined;
|
|
7726
|
+
detail?: string | undefined;
|
|
7727
|
+
} | {
|
|
7728
|
+
type: "input_file";
|
|
7729
|
+
providerData?: Record<string, any> | undefined;
|
|
7730
|
+
file?: string | {
|
|
7731
|
+
id: string;
|
|
7732
|
+
} | {
|
|
7733
|
+
url: string;
|
|
7734
|
+
} | undefined;
|
|
7735
|
+
filename?: string | undefined;
|
|
7736
|
+
})[];
|
|
5876
7737
|
callId: string;
|
|
5877
7738
|
providerData?: Record<string, any> | undefined;
|
|
5878
7739
|
id?: string | undefined;
|
|
@@ -5917,16 +7778,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
5917
7778
|
type: "function_call_result";
|
|
5918
7779
|
status: "in_progress" | "completed" | "incomplete";
|
|
5919
7780
|
name: string;
|
|
5920
|
-
output: {
|
|
7781
|
+
output: string | {
|
|
5921
7782
|
type: "text";
|
|
5922
7783
|
text: string;
|
|
5923
7784
|
providerData?: Record<string, any> | undefined;
|
|
5924
7785
|
} | {
|
|
5925
7786
|
type: "image";
|
|
5926
|
-
data: string;
|
|
5927
|
-
mediaType: string;
|
|
5928
7787
|
providerData?: Record<string, any> | undefined;
|
|
5929
|
-
|
|
7788
|
+
image?: string | {
|
|
7789
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
7790
|
+
mediaType?: string | undefined;
|
|
7791
|
+
} | {
|
|
7792
|
+
url: string;
|
|
7793
|
+
} | {
|
|
7794
|
+
fileId: string;
|
|
7795
|
+
} | undefined;
|
|
7796
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
7797
|
+
} | {
|
|
7798
|
+
type: "file";
|
|
7799
|
+
file: string | {
|
|
7800
|
+
filename: string;
|
|
7801
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
7802
|
+
mediaType: string;
|
|
7803
|
+
} | {
|
|
7804
|
+
url: string;
|
|
7805
|
+
filename?: string | undefined;
|
|
7806
|
+
} | {
|
|
7807
|
+
id: string;
|
|
7808
|
+
filename?: string | undefined;
|
|
7809
|
+
};
|
|
7810
|
+
providerData?: Record<string, any> | undefined;
|
|
7811
|
+
} | ({
|
|
7812
|
+
type: "input_text";
|
|
7813
|
+
text: string;
|
|
7814
|
+
providerData?: Record<string, any> | undefined;
|
|
7815
|
+
} | {
|
|
7816
|
+
type: "input_image";
|
|
7817
|
+
providerData?: Record<string, any> | undefined;
|
|
7818
|
+
image?: string | {
|
|
7819
|
+
id: string;
|
|
7820
|
+
} | undefined;
|
|
7821
|
+
detail?: string | undefined;
|
|
7822
|
+
} | {
|
|
7823
|
+
type: "input_file";
|
|
7824
|
+
providerData?: Record<string, any> | undefined;
|
|
7825
|
+
file?: string | {
|
|
7826
|
+
id: string;
|
|
7827
|
+
} | {
|
|
7828
|
+
url: string;
|
|
7829
|
+
} | undefined;
|
|
7830
|
+
filename?: string | undefined;
|
|
7831
|
+
})[];
|
|
5930
7832
|
callId: string;
|
|
5931
7833
|
providerData?: Record<string, any> | undefined;
|
|
5932
7834
|
id?: string | undefined;
|
|
@@ -6206,16 +8108,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
6206
8108
|
type: "function_call_result";
|
|
6207
8109
|
status: "in_progress" | "completed" | "incomplete";
|
|
6208
8110
|
name: string;
|
|
6209
|
-
output: {
|
|
8111
|
+
output: string | {
|
|
6210
8112
|
type: "text";
|
|
6211
8113
|
text: string;
|
|
6212
8114
|
providerData?: Record<string, any> | undefined;
|
|
6213
8115
|
} | {
|
|
6214
8116
|
type: "image";
|
|
6215
|
-
data: string;
|
|
6216
|
-
mediaType: string;
|
|
6217
8117
|
providerData?: Record<string, any> | undefined;
|
|
6218
|
-
|
|
8118
|
+
image?: string | {
|
|
8119
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
8120
|
+
mediaType?: string | undefined;
|
|
8121
|
+
} | {
|
|
8122
|
+
url: string;
|
|
8123
|
+
} | {
|
|
8124
|
+
fileId: string;
|
|
8125
|
+
} | undefined;
|
|
8126
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
8127
|
+
} | {
|
|
8128
|
+
type: "file";
|
|
8129
|
+
file: string | {
|
|
8130
|
+
filename: string;
|
|
8131
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
8132
|
+
mediaType: string;
|
|
8133
|
+
} | {
|
|
8134
|
+
url: string;
|
|
8135
|
+
filename?: string | undefined;
|
|
8136
|
+
} | {
|
|
8137
|
+
id: string;
|
|
8138
|
+
filename?: string | undefined;
|
|
8139
|
+
};
|
|
8140
|
+
providerData?: Record<string, any> | undefined;
|
|
8141
|
+
} | ({
|
|
8142
|
+
type: "input_text";
|
|
8143
|
+
text: string;
|
|
8144
|
+
providerData?: Record<string, any> | undefined;
|
|
8145
|
+
} | {
|
|
8146
|
+
type: "input_image";
|
|
8147
|
+
providerData?: Record<string, any> | undefined;
|
|
8148
|
+
image?: string | {
|
|
8149
|
+
id: string;
|
|
8150
|
+
} | undefined;
|
|
8151
|
+
detail?: string | undefined;
|
|
8152
|
+
} | {
|
|
8153
|
+
type: "input_file";
|
|
8154
|
+
providerData?: Record<string, any> | undefined;
|
|
8155
|
+
file?: string | {
|
|
8156
|
+
id: string;
|
|
8157
|
+
} | {
|
|
8158
|
+
url: string;
|
|
8159
|
+
} | undefined;
|
|
8160
|
+
filename?: string | undefined;
|
|
8161
|
+
})[];
|
|
6219
8162
|
callId: string;
|
|
6220
8163
|
providerData?: Record<string, any> | undefined;
|
|
6221
8164
|
id?: string | undefined;
|
|
@@ -6260,16 +8203,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
6260
8203
|
type: "function_call_result";
|
|
6261
8204
|
status: "in_progress" | "completed" | "incomplete";
|
|
6262
8205
|
name: string;
|
|
6263
|
-
output: {
|
|
8206
|
+
output: string | {
|
|
6264
8207
|
type: "text";
|
|
6265
8208
|
text: string;
|
|
6266
8209
|
providerData?: Record<string, any> | undefined;
|
|
6267
8210
|
} | {
|
|
6268
8211
|
type: "image";
|
|
6269
|
-
data: string;
|
|
6270
|
-
mediaType: string;
|
|
6271
8212
|
providerData?: Record<string, any> | undefined;
|
|
6272
|
-
|
|
8213
|
+
image?: string | {
|
|
8214
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
8215
|
+
mediaType?: string | undefined;
|
|
8216
|
+
} | {
|
|
8217
|
+
url: string;
|
|
8218
|
+
} | {
|
|
8219
|
+
fileId: string;
|
|
8220
|
+
} | undefined;
|
|
8221
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
8222
|
+
} | {
|
|
8223
|
+
type: "file";
|
|
8224
|
+
file: string | {
|
|
8225
|
+
filename: string;
|
|
8226
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
8227
|
+
mediaType: string;
|
|
8228
|
+
} | {
|
|
8229
|
+
url: string;
|
|
8230
|
+
filename?: string | undefined;
|
|
8231
|
+
} | {
|
|
8232
|
+
id: string;
|
|
8233
|
+
filename?: string | undefined;
|
|
8234
|
+
};
|
|
8235
|
+
providerData?: Record<string, any> | undefined;
|
|
8236
|
+
} | ({
|
|
8237
|
+
type: "input_text";
|
|
8238
|
+
text: string;
|
|
8239
|
+
providerData?: Record<string, any> | undefined;
|
|
8240
|
+
} | {
|
|
8241
|
+
type: "input_image";
|
|
8242
|
+
providerData?: Record<string, any> | undefined;
|
|
8243
|
+
image?: string | {
|
|
8244
|
+
id: string;
|
|
8245
|
+
} | undefined;
|
|
8246
|
+
detail?: string | undefined;
|
|
8247
|
+
} | {
|
|
8248
|
+
type: "input_file";
|
|
8249
|
+
providerData?: Record<string, any> | undefined;
|
|
8250
|
+
file?: string | {
|
|
8251
|
+
id: string;
|
|
8252
|
+
} | {
|
|
8253
|
+
url: string;
|
|
8254
|
+
} | undefined;
|
|
8255
|
+
filename?: string | undefined;
|
|
8256
|
+
})[];
|
|
6273
8257
|
callId: string;
|
|
6274
8258
|
providerData?: Record<string, any> | undefined;
|
|
6275
8259
|
id?: string | undefined;
|
|
@@ -6371,18 +8355,20 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
6371
8355
|
providerData?: Record<string, any> | undefined;
|
|
6372
8356
|
} | {
|
|
6373
8357
|
type: "input_image";
|
|
6374
|
-
image: string | {
|
|
6375
|
-
id: string;
|
|
6376
|
-
};
|
|
6377
8358
|
providerData?: Record<string, any> | undefined;
|
|
8359
|
+
image?: string | {
|
|
8360
|
+
id: string;
|
|
8361
|
+
} | undefined;
|
|
8362
|
+
detail?: string | undefined;
|
|
6378
8363
|
} | {
|
|
6379
8364
|
type: "input_file";
|
|
6380
|
-
|
|
8365
|
+
providerData?: Record<string, any> | undefined;
|
|
8366
|
+
file?: string | {
|
|
6381
8367
|
id: string;
|
|
6382
8368
|
} | {
|
|
6383
8369
|
url: string;
|
|
6384
|
-
};
|
|
6385
|
-
|
|
8370
|
+
} | undefined;
|
|
8371
|
+
filename?: string | undefined;
|
|
6386
8372
|
} | {
|
|
6387
8373
|
type: "audio";
|
|
6388
8374
|
audio: string | {
|
|
@@ -6421,16 +8407,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
6421
8407
|
type: "function_call_result";
|
|
6422
8408
|
status: "in_progress" | "completed" | "incomplete";
|
|
6423
8409
|
name: string;
|
|
6424
|
-
output: {
|
|
8410
|
+
output: string | {
|
|
6425
8411
|
type: "text";
|
|
6426
8412
|
text: string;
|
|
6427
8413
|
providerData?: Record<string, any> | undefined;
|
|
6428
8414
|
} | {
|
|
6429
8415
|
type: "image";
|
|
6430
|
-
data: string;
|
|
6431
|
-
mediaType: string;
|
|
6432
8416
|
providerData?: Record<string, any> | undefined;
|
|
6433
|
-
|
|
8417
|
+
image?: string | {
|
|
8418
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
8419
|
+
mediaType?: string | undefined;
|
|
8420
|
+
} | {
|
|
8421
|
+
url: string;
|
|
8422
|
+
} | {
|
|
8423
|
+
fileId: string;
|
|
8424
|
+
} | undefined;
|
|
8425
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
8426
|
+
} | {
|
|
8427
|
+
type: "file";
|
|
8428
|
+
file: string | {
|
|
8429
|
+
filename: string;
|
|
8430
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
8431
|
+
mediaType: string;
|
|
8432
|
+
} | {
|
|
8433
|
+
url: string;
|
|
8434
|
+
filename?: string | undefined;
|
|
8435
|
+
} | {
|
|
8436
|
+
id: string;
|
|
8437
|
+
filename?: string | undefined;
|
|
8438
|
+
};
|
|
8439
|
+
providerData?: Record<string, any> | undefined;
|
|
8440
|
+
} | ({
|
|
8441
|
+
type: "input_text";
|
|
8442
|
+
text: string;
|
|
8443
|
+
providerData?: Record<string, any> | undefined;
|
|
8444
|
+
} | {
|
|
8445
|
+
type: "input_image";
|
|
8446
|
+
providerData?: Record<string, any> | undefined;
|
|
8447
|
+
image?: string | {
|
|
8448
|
+
id: string;
|
|
8449
|
+
} | undefined;
|
|
8450
|
+
detail?: string | undefined;
|
|
8451
|
+
} | {
|
|
8452
|
+
type: "input_file";
|
|
8453
|
+
providerData?: Record<string, any> | undefined;
|
|
8454
|
+
file?: string | {
|
|
8455
|
+
id: string;
|
|
8456
|
+
} | {
|
|
8457
|
+
url: string;
|
|
8458
|
+
} | undefined;
|
|
8459
|
+
filename?: string | undefined;
|
|
8460
|
+
})[];
|
|
6434
8461
|
callId: string;
|
|
6435
8462
|
providerData?: Record<string, any> | undefined;
|
|
6436
8463
|
id?: string | undefined;
|
|
@@ -6766,16 +8793,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
6766
8793
|
type: "function_call_result";
|
|
6767
8794
|
status: "in_progress" | "completed" | "incomplete";
|
|
6768
8795
|
name: string;
|
|
6769
|
-
output: {
|
|
8796
|
+
output: string | {
|
|
6770
8797
|
type: "text";
|
|
6771
8798
|
text: string;
|
|
6772
8799
|
providerData?: Record<string, any> | undefined;
|
|
6773
8800
|
} | {
|
|
6774
8801
|
type: "image";
|
|
6775
|
-
data: string;
|
|
6776
|
-
mediaType: string;
|
|
6777
8802
|
providerData?: Record<string, any> | undefined;
|
|
6778
|
-
|
|
8803
|
+
image?: string | {
|
|
8804
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
8805
|
+
mediaType?: string | undefined;
|
|
8806
|
+
} | {
|
|
8807
|
+
url: string;
|
|
8808
|
+
} | {
|
|
8809
|
+
fileId: string;
|
|
8810
|
+
} | undefined;
|
|
8811
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
8812
|
+
} | {
|
|
8813
|
+
type: "file";
|
|
8814
|
+
file: string | {
|
|
8815
|
+
filename: string;
|
|
8816
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
8817
|
+
mediaType: string;
|
|
8818
|
+
} | {
|
|
8819
|
+
url: string;
|
|
8820
|
+
filename?: string | undefined;
|
|
8821
|
+
} | {
|
|
8822
|
+
id: string;
|
|
8823
|
+
filename?: string | undefined;
|
|
8824
|
+
};
|
|
8825
|
+
providerData?: Record<string, any> | undefined;
|
|
8826
|
+
} | ({
|
|
8827
|
+
type: "input_text";
|
|
8828
|
+
text: string;
|
|
8829
|
+
providerData?: Record<string, any> | undefined;
|
|
8830
|
+
} | {
|
|
8831
|
+
type: "input_image";
|
|
8832
|
+
providerData?: Record<string, any> | undefined;
|
|
8833
|
+
image?: string | {
|
|
8834
|
+
id: string;
|
|
8835
|
+
} | undefined;
|
|
8836
|
+
detail?: string | undefined;
|
|
8837
|
+
} | {
|
|
8838
|
+
type: "input_file";
|
|
8839
|
+
providerData?: Record<string, any> | undefined;
|
|
8840
|
+
file?: string | {
|
|
8841
|
+
id: string;
|
|
8842
|
+
} | {
|
|
8843
|
+
url: string;
|
|
8844
|
+
} | undefined;
|
|
8845
|
+
filename?: string | undefined;
|
|
8846
|
+
})[];
|
|
6779
8847
|
callId: string;
|
|
6780
8848
|
providerData?: Record<string, any> | undefined;
|
|
6781
8849
|
id?: string | undefined;
|
|
@@ -6820,16 +8888,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
6820
8888
|
type: "function_call_result";
|
|
6821
8889
|
status: "in_progress" | "completed" | "incomplete";
|
|
6822
8890
|
name: string;
|
|
6823
|
-
output: {
|
|
8891
|
+
output: string | {
|
|
6824
8892
|
type: "text";
|
|
6825
8893
|
text: string;
|
|
6826
8894
|
providerData?: Record<string, any> | undefined;
|
|
6827
8895
|
} | {
|
|
6828
8896
|
type: "image";
|
|
6829
|
-
data: string;
|
|
6830
|
-
mediaType: string;
|
|
6831
8897
|
providerData?: Record<string, any> | undefined;
|
|
6832
|
-
|
|
8898
|
+
image?: string | {
|
|
8899
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
8900
|
+
mediaType?: string | undefined;
|
|
8901
|
+
} | {
|
|
8902
|
+
url: string;
|
|
8903
|
+
} | {
|
|
8904
|
+
fileId: string;
|
|
8905
|
+
} | undefined;
|
|
8906
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
8907
|
+
} | {
|
|
8908
|
+
type: "file";
|
|
8909
|
+
file: string | {
|
|
8910
|
+
filename: string;
|
|
8911
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
8912
|
+
mediaType: string;
|
|
8913
|
+
} | {
|
|
8914
|
+
url: string;
|
|
8915
|
+
filename?: string | undefined;
|
|
8916
|
+
} | {
|
|
8917
|
+
id: string;
|
|
8918
|
+
filename?: string | undefined;
|
|
8919
|
+
};
|
|
8920
|
+
providerData?: Record<string, any> | undefined;
|
|
8921
|
+
} | ({
|
|
8922
|
+
type: "input_text";
|
|
8923
|
+
text: string;
|
|
8924
|
+
providerData?: Record<string, any> | undefined;
|
|
8925
|
+
} | {
|
|
8926
|
+
type: "input_image";
|
|
8927
|
+
providerData?: Record<string, any> | undefined;
|
|
8928
|
+
image?: string | {
|
|
8929
|
+
id: string;
|
|
8930
|
+
} | undefined;
|
|
8931
|
+
detail?: string | undefined;
|
|
8932
|
+
} | {
|
|
8933
|
+
type: "input_file";
|
|
8934
|
+
providerData?: Record<string, any> | undefined;
|
|
8935
|
+
file?: string | {
|
|
8936
|
+
id: string;
|
|
8937
|
+
} | {
|
|
8938
|
+
url: string;
|
|
8939
|
+
} | undefined;
|
|
8940
|
+
filename?: string | undefined;
|
|
8941
|
+
})[];
|
|
6833
8942
|
callId: string;
|
|
6834
8943
|
providerData?: Record<string, any> | undefined;
|
|
6835
8944
|
id?: string | undefined;
|
|
@@ -7109,16 +9218,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
7109
9218
|
type: "function_call_result";
|
|
7110
9219
|
status: "in_progress" | "completed" | "incomplete";
|
|
7111
9220
|
name: string;
|
|
7112
|
-
output: {
|
|
9221
|
+
output: string | {
|
|
7113
9222
|
type: "text";
|
|
7114
9223
|
text: string;
|
|
7115
9224
|
providerData?: Record<string, any> | undefined;
|
|
7116
9225
|
} | {
|
|
7117
9226
|
type: "image";
|
|
7118
|
-
data: string;
|
|
7119
|
-
mediaType: string;
|
|
7120
9227
|
providerData?: Record<string, any> | undefined;
|
|
7121
|
-
|
|
9228
|
+
image?: string | {
|
|
9229
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
9230
|
+
mediaType?: string | undefined;
|
|
9231
|
+
} | {
|
|
9232
|
+
url: string;
|
|
9233
|
+
} | {
|
|
9234
|
+
fileId: string;
|
|
9235
|
+
} | undefined;
|
|
9236
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
9237
|
+
} | {
|
|
9238
|
+
type: "file";
|
|
9239
|
+
file: string | {
|
|
9240
|
+
filename: string;
|
|
9241
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
9242
|
+
mediaType: string;
|
|
9243
|
+
} | {
|
|
9244
|
+
url: string;
|
|
9245
|
+
filename?: string | undefined;
|
|
9246
|
+
} | {
|
|
9247
|
+
id: string;
|
|
9248
|
+
filename?: string | undefined;
|
|
9249
|
+
};
|
|
9250
|
+
providerData?: Record<string, any> | undefined;
|
|
9251
|
+
} | ({
|
|
9252
|
+
type: "input_text";
|
|
9253
|
+
text: string;
|
|
9254
|
+
providerData?: Record<string, any> | undefined;
|
|
9255
|
+
} | {
|
|
9256
|
+
type: "input_image";
|
|
9257
|
+
providerData?: Record<string, any> | undefined;
|
|
9258
|
+
image?: string | {
|
|
9259
|
+
id: string;
|
|
9260
|
+
} | undefined;
|
|
9261
|
+
detail?: string | undefined;
|
|
9262
|
+
} | {
|
|
9263
|
+
type: "input_file";
|
|
9264
|
+
providerData?: Record<string, any> | undefined;
|
|
9265
|
+
file?: string | {
|
|
9266
|
+
id: string;
|
|
9267
|
+
} | {
|
|
9268
|
+
url: string;
|
|
9269
|
+
} | undefined;
|
|
9270
|
+
filename?: string | undefined;
|
|
9271
|
+
})[];
|
|
7122
9272
|
callId: string;
|
|
7123
9273
|
providerData?: Record<string, any> | undefined;
|
|
7124
9274
|
id?: string | undefined;
|
|
@@ -7163,16 +9313,57 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
7163
9313
|
type: "function_call_result";
|
|
7164
9314
|
status: "in_progress" | "completed" | "incomplete";
|
|
7165
9315
|
name: string;
|
|
7166
|
-
output: {
|
|
9316
|
+
output: string | {
|
|
7167
9317
|
type: "text";
|
|
7168
9318
|
text: string;
|
|
7169
9319
|
providerData?: Record<string, any> | undefined;
|
|
7170
9320
|
} | {
|
|
7171
9321
|
type: "image";
|
|
7172
|
-
data: string;
|
|
7173
|
-
mediaType: string;
|
|
7174
9322
|
providerData?: Record<string, any> | undefined;
|
|
7175
|
-
|
|
9323
|
+
image?: string | {
|
|
9324
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
9325
|
+
mediaType?: string | undefined;
|
|
9326
|
+
} | {
|
|
9327
|
+
url: string;
|
|
9328
|
+
} | {
|
|
9329
|
+
fileId: string;
|
|
9330
|
+
} | undefined;
|
|
9331
|
+
detail?: "low" | "high" | "auto" | (string & {}) | undefined;
|
|
9332
|
+
} | {
|
|
9333
|
+
type: "file";
|
|
9334
|
+
file: string | {
|
|
9335
|
+
filename: string;
|
|
9336
|
+
data: string | Uint8Array<ArrayBuffer>;
|
|
9337
|
+
mediaType: string;
|
|
9338
|
+
} | {
|
|
9339
|
+
url: string;
|
|
9340
|
+
filename?: string | undefined;
|
|
9341
|
+
} | {
|
|
9342
|
+
id: string;
|
|
9343
|
+
filename?: string | undefined;
|
|
9344
|
+
};
|
|
9345
|
+
providerData?: Record<string, any> | undefined;
|
|
9346
|
+
} | ({
|
|
9347
|
+
type: "input_text";
|
|
9348
|
+
text: string;
|
|
9349
|
+
providerData?: Record<string, any> | undefined;
|
|
9350
|
+
} | {
|
|
9351
|
+
type: "input_image";
|
|
9352
|
+
providerData?: Record<string, any> | undefined;
|
|
9353
|
+
image?: string | {
|
|
9354
|
+
id: string;
|
|
9355
|
+
} | undefined;
|
|
9356
|
+
detail?: string | undefined;
|
|
9357
|
+
} | {
|
|
9358
|
+
type: "input_file";
|
|
9359
|
+
providerData?: Record<string, any> | undefined;
|
|
9360
|
+
file?: string | {
|
|
9361
|
+
id: string;
|
|
9362
|
+
} | {
|
|
9363
|
+
url: string;
|
|
9364
|
+
} | undefined;
|
|
9365
|
+
filename?: string | undefined;
|
|
9366
|
+
})[];
|
|
7176
9367
|
callId: string;
|
|
7177
9368
|
providerData?: Record<string, any> | undefined;
|
|
7178
9369
|
id?: string | undefined;
|