@arizeai/phoenix-client 5.5.4 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/__generated__/api/v1.d.ts +5 -5
- package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
- package/dist/esm/config.d.ts.map +1 -1
- package/dist/esm/config.js +5 -23
- package/dist/esm/config.js.map +1 -1
- package/dist/esm/schemas/llm/anthropic/converters.d.ts +82 -82
- package/dist/esm/schemas/llm/anthropic/messagePartSchemas.d.ts +28 -28
- package/dist/esm/schemas/llm/anthropic/messageSchemas.d.ts +84 -84
- package/dist/esm/schemas/llm/anthropic/toolCallSchemas.d.ts +4 -4
- package/dist/esm/schemas/llm/anthropic/toolChoiceSchemas.d.ts +2 -2
- package/dist/esm/schemas/llm/constants.d.ts +46 -46
- package/dist/esm/schemas/llm/converters.d.ts +184 -184
- package/dist/esm/schemas/llm/openai/converters.d.ts +32 -32
- package/dist/esm/schemas/llm/openai/messageSchemas.d.ts +6 -6
- package/dist/esm/schemas/llm/openai/toolCallSchemas.d.ts +2 -2
- package/dist/esm/schemas/llm/phoenixPrompt/converters.d.ts +19 -19
- package/dist/esm/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts +8 -8
- package/dist/esm/schemas/llm/phoenixPrompt/messageSchemas.d.ts +12 -12
- package/dist/esm/schemas/llm/phoenixPrompt/toolCallSchemas.d.ts +4 -4
- package/dist/esm/schemas/llm/schemas.d.ts +79 -79
- package/dist/esm/schemas/llm/vercel/messagePartSchemas.d.ts +8 -8
- package/dist/esm/schemas/llm/vercel/messageSchemas.d.ts +8 -8
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/src/__generated__/api/v1.d.ts +5 -5
- package/dist/src/__generated__/api/v1.d.ts.map +1 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +5 -27
- package/dist/src/config.js.map +1 -1
- package/dist/src/schemas/llm/anthropic/converters.d.ts +82 -82
- package/dist/src/schemas/llm/anthropic/messagePartSchemas.d.ts +28 -28
- package/dist/src/schemas/llm/anthropic/messageSchemas.d.ts +84 -84
- package/dist/src/schemas/llm/anthropic/toolCallSchemas.d.ts +4 -4
- package/dist/src/schemas/llm/anthropic/toolChoiceSchemas.d.ts +2 -2
- package/dist/src/schemas/llm/constants.d.ts +46 -46
- package/dist/src/schemas/llm/converters.d.ts +184 -184
- package/dist/src/schemas/llm/openai/converters.d.ts +32 -32
- package/dist/src/schemas/llm/openai/messageSchemas.d.ts +6 -6
- package/dist/src/schemas/llm/openai/toolCallSchemas.d.ts +2 -2
- package/dist/src/schemas/llm/phoenixPrompt/converters.d.ts +19 -19
- package/dist/src/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts +8 -8
- package/dist/src/schemas/llm/phoenixPrompt/messageSchemas.d.ts +12 -12
- package/dist/src/schemas/llm/phoenixPrompt/toolCallSchemas.d.ts +4 -4
- package/dist/src/schemas/llm/schemas.d.ts +79 -79
- package/dist/src/schemas/llm/vercel/messagePartSchemas.d.ts +8 -8
- package/dist/src/schemas/llm/vercel/messageSchemas.d.ts +8 -8
- package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -4
- package/src/__generated__/api/v1.ts +5 -5
- package/src/config.ts +11 -28
|
@@ -27,26 +27,26 @@ export declare const anthropicMessageSchema: z.ZodObject<{
|
|
|
27
27
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
28
28
|
type: z.ZodLiteral<"base64">;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
type: "base64";
|
|
31
30
|
data: string;
|
|
31
|
+
type: "base64";
|
|
32
32
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
33
33
|
}, {
|
|
34
|
-
type: "base64";
|
|
35
34
|
data: string;
|
|
35
|
+
type: "base64";
|
|
36
36
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
37
37
|
}>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
type: "image";
|
|
40
40
|
source: {
|
|
41
|
-
type: "base64";
|
|
42
41
|
data: string;
|
|
42
|
+
type: "base64";
|
|
43
43
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
44
44
|
};
|
|
45
45
|
}, {
|
|
46
46
|
type: "image";
|
|
47
47
|
source: {
|
|
48
|
-
type: "base64";
|
|
49
48
|
data: string;
|
|
49
|
+
type: "base64";
|
|
50
50
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
51
51
|
};
|
|
52
52
|
}>, z.ZodObject<{
|
|
@@ -55,15 +55,15 @@ export declare const anthropicMessageSchema: z.ZodObject<{
|
|
|
55
55
|
name: z.ZodString;
|
|
56
56
|
input: z.ZodType<import("../../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema").JSONLiteral>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
type: "tool_use";
|
|
59
58
|
name: string;
|
|
60
59
|
id: string;
|
|
61
60
|
input: import("../../jsonLiteralSchema").JSONLiteral;
|
|
62
|
-
}, {
|
|
63
61
|
type: "tool_use";
|
|
62
|
+
}, {
|
|
64
63
|
name: string;
|
|
65
64
|
id: string;
|
|
66
65
|
input: import("../../jsonLiteralSchema").JSONLiteral;
|
|
66
|
+
type: "tool_use";
|
|
67
67
|
}>, z.ZodObject<{
|
|
68
68
|
type: z.ZodLiteral<"tool_result">;
|
|
69
69
|
tool_use_id: z.ZodString;
|
|
@@ -83,58 +83,58 @@ export declare const anthropicMessageSchema: z.ZodObject<{
|
|
|
83
83
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
84
84
|
type: z.ZodLiteral<"base64">;
|
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
|
86
|
-
type: "base64";
|
|
87
86
|
data: string;
|
|
87
|
+
type: "base64";
|
|
88
88
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
89
89
|
}, {
|
|
90
|
-
type: "base64";
|
|
91
90
|
data: string;
|
|
91
|
+
type: "base64";
|
|
92
92
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
93
93
|
}>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
95
|
type: "image";
|
|
96
96
|
source: {
|
|
97
|
-
type: "base64";
|
|
98
97
|
data: string;
|
|
98
|
+
type: "base64";
|
|
99
99
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
100
100
|
};
|
|
101
101
|
}, {
|
|
102
102
|
type: "image";
|
|
103
103
|
source: {
|
|
104
|
-
type: "base64";
|
|
105
104
|
data: string;
|
|
105
|
+
type: "base64";
|
|
106
106
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
107
107
|
};
|
|
108
108
|
}>]>, "many">]>;
|
|
109
109
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
type: "tool_result";
|
|
112
111
|
content: string | ({
|
|
113
112
|
text: string;
|
|
114
113
|
type: "text";
|
|
115
114
|
} | {
|
|
116
115
|
type: "image";
|
|
117
116
|
source: {
|
|
118
|
-
type: "base64";
|
|
119
117
|
data: string;
|
|
118
|
+
type: "base64";
|
|
120
119
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
121
120
|
};
|
|
122
121
|
})[];
|
|
122
|
+
type: "tool_result";
|
|
123
123
|
tool_use_id: string;
|
|
124
124
|
is_error?: boolean | undefined;
|
|
125
125
|
}, {
|
|
126
|
-
type: "tool_result";
|
|
127
126
|
content: string | ({
|
|
128
127
|
text: string;
|
|
129
128
|
type: "text";
|
|
130
129
|
} | {
|
|
131
130
|
type: "image";
|
|
132
131
|
source: {
|
|
133
|
-
type: "base64";
|
|
134
132
|
data: string;
|
|
133
|
+
type: "base64";
|
|
135
134
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
136
135
|
};
|
|
137
136
|
})[];
|
|
137
|
+
type: "tool_result";
|
|
138
138
|
tool_use_id: string;
|
|
139
139
|
is_error?: boolean | undefined;
|
|
140
140
|
}>]>, "many">]>;
|
|
@@ -156,26 +156,26 @@ export declare const anthropicMessageSchema: z.ZodObject<{
|
|
|
156
156
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
157
157
|
type: z.ZodLiteral<"base64">;
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
|
-
type: "base64";
|
|
160
159
|
data: string;
|
|
160
|
+
type: "base64";
|
|
161
161
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
162
162
|
}, {
|
|
163
|
-
type: "base64";
|
|
164
163
|
data: string;
|
|
164
|
+
type: "base64";
|
|
165
165
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
166
166
|
}>;
|
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
|
168
168
|
type: "image";
|
|
169
169
|
source: {
|
|
170
|
-
type: "base64";
|
|
171
170
|
data: string;
|
|
171
|
+
type: "base64";
|
|
172
172
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
173
173
|
};
|
|
174
174
|
}, {
|
|
175
175
|
type: "image";
|
|
176
176
|
source: {
|
|
177
|
-
type: "base64";
|
|
178
177
|
data: string;
|
|
178
|
+
type: "base64";
|
|
179
179
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
180
180
|
};
|
|
181
181
|
}>, z.ZodObject<{
|
|
@@ -184,15 +184,15 @@ export declare const anthropicMessageSchema: z.ZodObject<{
|
|
|
184
184
|
name: z.ZodString;
|
|
185
185
|
input: z.ZodType<import("../../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema").JSONLiteral>;
|
|
186
186
|
}, "strip", z.ZodTypeAny, {
|
|
187
|
-
type: "tool_use";
|
|
188
187
|
name: string;
|
|
189
188
|
id: string;
|
|
190
189
|
input: import("../../jsonLiteralSchema").JSONLiteral;
|
|
191
|
-
}, {
|
|
192
190
|
type: "tool_use";
|
|
191
|
+
}, {
|
|
193
192
|
name: string;
|
|
194
193
|
id: string;
|
|
195
194
|
input: import("../../jsonLiteralSchema").JSONLiteral;
|
|
195
|
+
type: "tool_use";
|
|
196
196
|
}>, z.ZodObject<{
|
|
197
197
|
type: z.ZodLiteral<"tool_result">;
|
|
198
198
|
tool_use_id: z.ZodString;
|
|
@@ -212,58 +212,58 @@ export declare const anthropicMessageSchema: z.ZodObject<{
|
|
|
212
212
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
213
213
|
type: z.ZodLiteral<"base64">;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
type: "base64";
|
|
216
215
|
data: string;
|
|
216
|
+
type: "base64";
|
|
217
217
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
218
218
|
}, {
|
|
219
|
-
type: "base64";
|
|
220
219
|
data: string;
|
|
220
|
+
type: "base64";
|
|
221
221
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
222
222
|
}>;
|
|
223
223
|
}, "strip", z.ZodTypeAny, {
|
|
224
224
|
type: "image";
|
|
225
225
|
source: {
|
|
226
|
-
type: "base64";
|
|
227
226
|
data: string;
|
|
227
|
+
type: "base64";
|
|
228
228
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
229
229
|
};
|
|
230
230
|
}, {
|
|
231
231
|
type: "image";
|
|
232
232
|
source: {
|
|
233
|
-
type: "base64";
|
|
234
233
|
data: string;
|
|
234
|
+
type: "base64";
|
|
235
235
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
236
236
|
};
|
|
237
237
|
}>]>, "many">]>;
|
|
238
238
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
239
239
|
}, "strip", z.ZodTypeAny, {
|
|
240
|
-
type: "tool_result";
|
|
241
240
|
content: string | ({
|
|
242
241
|
text: string;
|
|
243
242
|
type: "text";
|
|
244
243
|
} | {
|
|
245
244
|
type: "image";
|
|
246
245
|
source: {
|
|
247
|
-
type: "base64";
|
|
248
246
|
data: string;
|
|
247
|
+
type: "base64";
|
|
249
248
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
250
249
|
};
|
|
251
250
|
})[];
|
|
251
|
+
type: "tool_result";
|
|
252
252
|
tool_use_id: string;
|
|
253
253
|
is_error?: boolean | undefined;
|
|
254
254
|
}, {
|
|
255
|
-
type: "tool_result";
|
|
256
255
|
content: string | ({
|
|
257
256
|
text: string;
|
|
258
257
|
type: "text";
|
|
259
258
|
} | {
|
|
260
259
|
type: "image";
|
|
261
260
|
source: {
|
|
262
|
-
type: "base64";
|
|
263
261
|
data: string;
|
|
262
|
+
type: "base64";
|
|
264
263
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
265
264
|
};
|
|
266
265
|
})[];
|
|
266
|
+
type: "tool_result";
|
|
267
267
|
tool_use_id: string;
|
|
268
268
|
is_error?: boolean | undefined;
|
|
269
269
|
}>]>, "many">]>;
|
|
@@ -285,26 +285,26 @@ export declare const anthropicMessageSchema: z.ZodObject<{
|
|
|
285
285
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
286
286
|
type: z.ZodLiteral<"base64">;
|
|
287
287
|
}, "strip", z.ZodTypeAny, {
|
|
288
|
-
type: "base64";
|
|
289
288
|
data: string;
|
|
289
|
+
type: "base64";
|
|
290
290
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
291
291
|
}, {
|
|
292
|
-
type: "base64";
|
|
293
292
|
data: string;
|
|
293
|
+
type: "base64";
|
|
294
294
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
295
295
|
}>;
|
|
296
296
|
}, "strip", z.ZodTypeAny, {
|
|
297
297
|
type: "image";
|
|
298
298
|
source: {
|
|
299
|
-
type: "base64";
|
|
300
299
|
data: string;
|
|
300
|
+
type: "base64";
|
|
301
301
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
302
302
|
};
|
|
303
303
|
}, {
|
|
304
304
|
type: "image";
|
|
305
305
|
source: {
|
|
306
|
-
type: "base64";
|
|
307
306
|
data: string;
|
|
307
|
+
type: "base64";
|
|
308
308
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
309
309
|
};
|
|
310
310
|
}>, z.ZodObject<{
|
|
@@ -313,15 +313,15 @@ export declare const anthropicMessageSchema: z.ZodObject<{
|
|
|
313
313
|
name: z.ZodString;
|
|
314
314
|
input: z.ZodType<import("../../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema").JSONLiteral>;
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
|
-
type: "tool_use";
|
|
317
316
|
name: string;
|
|
318
317
|
id: string;
|
|
319
318
|
input: import("../../jsonLiteralSchema").JSONLiteral;
|
|
320
|
-
}, {
|
|
321
319
|
type: "tool_use";
|
|
320
|
+
}, {
|
|
322
321
|
name: string;
|
|
323
322
|
id: string;
|
|
324
323
|
input: import("../../jsonLiteralSchema").JSONLiteral;
|
|
324
|
+
type: "tool_use";
|
|
325
325
|
}>, z.ZodObject<{
|
|
326
326
|
type: z.ZodLiteral<"tool_result">;
|
|
327
327
|
tool_use_id: z.ZodString;
|
|
@@ -341,58 +341,58 @@ export declare const anthropicMessageSchema: z.ZodObject<{
|
|
|
341
341
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
342
342
|
type: z.ZodLiteral<"base64">;
|
|
343
343
|
}, "strip", z.ZodTypeAny, {
|
|
344
|
-
type: "base64";
|
|
345
344
|
data: string;
|
|
345
|
+
type: "base64";
|
|
346
346
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
347
347
|
}, {
|
|
348
|
-
type: "base64";
|
|
349
348
|
data: string;
|
|
349
|
+
type: "base64";
|
|
350
350
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
351
351
|
}>;
|
|
352
352
|
}, "strip", z.ZodTypeAny, {
|
|
353
353
|
type: "image";
|
|
354
354
|
source: {
|
|
355
|
-
type: "base64";
|
|
356
355
|
data: string;
|
|
356
|
+
type: "base64";
|
|
357
357
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
358
358
|
};
|
|
359
359
|
}, {
|
|
360
360
|
type: "image";
|
|
361
361
|
source: {
|
|
362
|
-
type: "base64";
|
|
363
362
|
data: string;
|
|
363
|
+
type: "base64";
|
|
364
364
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
365
365
|
};
|
|
366
366
|
}>]>, "many">]>;
|
|
367
367
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
368
368
|
}, "strip", z.ZodTypeAny, {
|
|
369
|
-
type: "tool_result";
|
|
370
369
|
content: string | ({
|
|
371
370
|
text: string;
|
|
372
371
|
type: "text";
|
|
373
372
|
} | {
|
|
374
373
|
type: "image";
|
|
375
374
|
source: {
|
|
376
|
-
type: "base64";
|
|
377
375
|
data: string;
|
|
376
|
+
type: "base64";
|
|
378
377
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
379
378
|
};
|
|
380
379
|
})[];
|
|
380
|
+
type: "tool_result";
|
|
381
381
|
tool_use_id: string;
|
|
382
382
|
is_error?: boolean | undefined;
|
|
383
383
|
}, {
|
|
384
|
-
type: "tool_result";
|
|
385
384
|
content: string | ({
|
|
386
385
|
text: string;
|
|
387
386
|
type: "text";
|
|
388
387
|
} | {
|
|
389
388
|
type: "image";
|
|
390
389
|
source: {
|
|
391
|
-
type: "base64";
|
|
392
390
|
data: string;
|
|
391
|
+
type: "base64";
|
|
393
392
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
394
393
|
};
|
|
395
394
|
})[];
|
|
395
|
+
type: "tool_result";
|
|
396
396
|
tool_use_id: string;
|
|
397
397
|
is_error?: boolean | undefined;
|
|
398
398
|
}>]>, "many">]>;
|
|
@@ -416,26 +416,26 @@ export declare const anthropicMessagesSchema: z.ZodArray<z.ZodObject<{
|
|
|
416
416
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
417
417
|
type: z.ZodLiteral<"base64">;
|
|
418
418
|
}, "strip", z.ZodTypeAny, {
|
|
419
|
-
type: "base64";
|
|
420
419
|
data: string;
|
|
420
|
+
type: "base64";
|
|
421
421
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
422
422
|
}, {
|
|
423
|
-
type: "base64";
|
|
424
423
|
data: string;
|
|
424
|
+
type: "base64";
|
|
425
425
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
426
426
|
}>;
|
|
427
427
|
}, "strip", z.ZodTypeAny, {
|
|
428
428
|
type: "image";
|
|
429
429
|
source: {
|
|
430
|
-
type: "base64";
|
|
431
430
|
data: string;
|
|
431
|
+
type: "base64";
|
|
432
432
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
433
433
|
};
|
|
434
434
|
}, {
|
|
435
435
|
type: "image";
|
|
436
436
|
source: {
|
|
437
|
-
type: "base64";
|
|
438
437
|
data: string;
|
|
438
|
+
type: "base64";
|
|
439
439
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
440
440
|
};
|
|
441
441
|
}>, z.ZodObject<{
|
|
@@ -444,15 +444,15 @@ export declare const anthropicMessagesSchema: z.ZodArray<z.ZodObject<{
|
|
|
444
444
|
name: z.ZodString;
|
|
445
445
|
input: z.ZodType<import("../../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema").JSONLiteral>;
|
|
446
446
|
}, "strip", z.ZodTypeAny, {
|
|
447
|
-
type: "tool_use";
|
|
448
447
|
name: string;
|
|
449
448
|
id: string;
|
|
450
449
|
input: import("../../jsonLiteralSchema").JSONLiteral;
|
|
451
|
-
}, {
|
|
452
450
|
type: "tool_use";
|
|
451
|
+
}, {
|
|
453
452
|
name: string;
|
|
454
453
|
id: string;
|
|
455
454
|
input: import("../../jsonLiteralSchema").JSONLiteral;
|
|
455
|
+
type: "tool_use";
|
|
456
456
|
}>, z.ZodObject<{
|
|
457
457
|
type: z.ZodLiteral<"tool_result">;
|
|
458
458
|
tool_use_id: z.ZodString;
|
|
@@ -472,58 +472,58 @@ export declare const anthropicMessagesSchema: z.ZodArray<z.ZodObject<{
|
|
|
472
472
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
473
473
|
type: z.ZodLiteral<"base64">;
|
|
474
474
|
}, "strip", z.ZodTypeAny, {
|
|
475
|
-
type: "base64";
|
|
476
475
|
data: string;
|
|
476
|
+
type: "base64";
|
|
477
477
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
478
478
|
}, {
|
|
479
|
-
type: "base64";
|
|
480
479
|
data: string;
|
|
480
|
+
type: "base64";
|
|
481
481
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
482
482
|
}>;
|
|
483
483
|
}, "strip", z.ZodTypeAny, {
|
|
484
484
|
type: "image";
|
|
485
485
|
source: {
|
|
486
|
-
type: "base64";
|
|
487
486
|
data: string;
|
|
487
|
+
type: "base64";
|
|
488
488
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
489
489
|
};
|
|
490
490
|
}, {
|
|
491
491
|
type: "image";
|
|
492
492
|
source: {
|
|
493
|
-
type: "base64";
|
|
494
493
|
data: string;
|
|
494
|
+
type: "base64";
|
|
495
495
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
496
496
|
};
|
|
497
497
|
}>]>, "many">]>;
|
|
498
498
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
499
499
|
}, "strip", z.ZodTypeAny, {
|
|
500
|
-
type: "tool_result";
|
|
501
500
|
content: string | ({
|
|
502
501
|
text: string;
|
|
503
502
|
type: "text";
|
|
504
503
|
} | {
|
|
505
504
|
type: "image";
|
|
506
505
|
source: {
|
|
507
|
-
type: "base64";
|
|
508
506
|
data: string;
|
|
507
|
+
type: "base64";
|
|
509
508
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
510
509
|
};
|
|
511
510
|
})[];
|
|
511
|
+
type: "tool_result";
|
|
512
512
|
tool_use_id: string;
|
|
513
513
|
is_error?: boolean | undefined;
|
|
514
514
|
}, {
|
|
515
|
-
type: "tool_result";
|
|
516
515
|
content: string | ({
|
|
517
516
|
text: string;
|
|
518
517
|
type: "text";
|
|
519
518
|
} | {
|
|
520
519
|
type: "image";
|
|
521
520
|
source: {
|
|
522
|
-
type: "base64";
|
|
523
521
|
data: string;
|
|
522
|
+
type: "base64";
|
|
524
523
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
525
524
|
};
|
|
526
525
|
})[];
|
|
526
|
+
type: "tool_result";
|
|
527
527
|
tool_use_id: string;
|
|
528
528
|
is_error?: boolean | undefined;
|
|
529
529
|
}>]>, "many">]>;
|
|
@@ -545,26 +545,26 @@ export declare const anthropicMessagesSchema: z.ZodArray<z.ZodObject<{
|
|
|
545
545
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
546
546
|
type: z.ZodLiteral<"base64">;
|
|
547
547
|
}, "strip", z.ZodTypeAny, {
|
|
548
|
-
type: "base64";
|
|
549
548
|
data: string;
|
|
549
|
+
type: "base64";
|
|
550
550
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
551
551
|
}, {
|
|
552
|
-
type: "base64";
|
|
553
552
|
data: string;
|
|
553
|
+
type: "base64";
|
|
554
554
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
555
555
|
}>;
|
|
556
556
|
}, "strip", z.ZodTypeAny, {
|
|
557
557
|
type: "image";
|
|
558
558
|
source: {
|
|
559
|
-
type: "base64";
|
|
560
559
|
data: string;
|
|
560
|
+
type: "base64";
|
|
561
561
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
562
562
|
};
|
|
563
563
|
}, {
|
|
564
564
|
type: "image";
|
|
565
565
|
source: {
|
|
566
|
-
type: "base64";
|
|
567
566
|
data: string;
|
|
567
|
+
type: "base64";
|
|
568
568
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
569
569
|
};
|
|
570
570
|
}>, z.ZodObject<{
|
|
@@ -573,15 +573,15 @@ export declare const anthropicMessagesSchema: z.ZodArray<z.ZodObject<{
|
|
|
573
573
|
name: z.ZodString;
|
|
574
574
|
input: z.ZodType<import("../../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema").JSONLiteral>;
|
|
575
575
|
}, "strip", z.ZodTypeAny, {
|
|
576
|
-
type: "tool_use";
|
|
577
576
|
name: string;
|
|
578
577
|
id: string;
|
|
579
578
|
input: import("../../jsonLiteralSchema").JSONLiteral;
|
|
580
|
-
}, {
|
|
581
579
|
type: "tool_use";
|
|
580
|
+
}, {
|
|
582
581
|
name: string;
|
|
583
582
|
id: string;
|
|
584
583
|
input: import("../../jsonLiteralSchema").JSONLiteral;
|
|
584
|
+
type: "tool_use";
|
|
585
585
|
}>, z.ZodObject<{
|
|
586
586
|
type: z.ZodLiteral<"tool_result">;
|
|
587
587
|
tool_use_id: z.ZodString;
|
|
@@ -601,58 +601,58 @@ export declare const anthropicMessagesSchema: z.ZodArray<z.ZodObject<{
|
|
|
601
601
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
602
602
|
type: z.ZodLiteral<"base64">;
|
|
603
603
|
}, "strip", z.ZodTypeAny, {
|
|
604
|
-
type: "base64";
|
|
605
604
|
data: string;
|
|
605
|
+
type: "base64";
|
|
606
606
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
607
607
|
}, {
|
|
608
|
-
type: "base64";
|
|
609
608
|
data: string;
|
|
609
|
+
type: "base64";
|
|
610
610
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
611
611
|
}>;
|
|
612
612
|
}, "strip", z.ZodTypeAny, {
|
|
613
613
|
type: "image";
|
|
614
614
|
source: {
|
|
615
|
-
type: "base64";
|
|
616
615
|
data: string;
|
|
616
|
+
type: "base64";
|
|
617
617
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
618
618
|
};
|
|
619
619
|
}, {
|
|
620
620
|
type: "image";
|
|
621
621
|
source: {
|
|
622
|
-
type: "base64";
|
|
623
622
|
data: string;
|
|
623
|
+
type: "base64";
|
|
624
624
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
625
625
|
};
|
|
626
626
|
}>]>, "many">]>;
|
|
627
627
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
628
628
|
}, "strip", z.ZodTypeAny, {
|
|
629
|
-
type: "tool_result";
|
|
630
629
|
content: string | ({
|
|
631
630
|
text: string;
|
|
632
631
|
type: "text";
|
|
633
632
|
} | {
|
|
634
633
|
type: "image";
|
|
635
634
|
source: {
|
|
636
|
-
type: "base64";
|
|
637
635
|
data: string;
|
|
636
|
+
type: "base64";
|
|
638
637
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
639
638
|
};
|
|
640
639
|
})[];
|
|
640
|
+
type: "tool_result";
|
|
641
641
|
tool_use_id: string;
|
|
642
642
|
is_error?: boolean | undefined;
|
|
643
643
|
}, {
|
|
644
|
-
type: "tool_result";
|
|
645
644
|
content: string | ({
|
|
646
645
|
text: string;
|
|
647
646
|
type: "text";
|
|
648
647
|
} | {
|
|
649
648
|
type: "image";
|
|
650
649
|
source: {
|
|
651
|
-
type: "base64";
|
|
652
650
|
data: string;
|
|
651
|
+
type: "base64";
|
|
653
652
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
654
653
|
};
|
|
655
654
|
})[];
|
|
655
|
+
type: "tool_result";
|
|
656
656
|
tool_use_id: string;
|
|
657
657
|
is_error?: boolean | undefined;
|
|
658
658
|
}>]>, "many">]>;
|
|
@@ -674,26 +674,26 @@ export declare const anthropicMessagesSchema: z.ZodArray<z.ZodObject<{
|
|
|
674
674
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
675
675
|
type: z.ZodLiteral<"base64">;
|
|
676
676
|
}, "strip", z.ZodTypeAny, {
|
|
677
|
-
type: "base64";
|
|
678
677
|
data: string;
|
|
678
|
+
type: "base64";
|
|
679
679
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
680
680
|
}, {
|
|
681
|
-
type: "base64";
|
|
682
681
|
data: string;
|
|
682
|
+
type: "base64";
|
|
683
683
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
684
684
|
}>;
|
|
685
685
|
}, "strip", z.ZodTypeAny, {
|
|
686
686
|
type: "image";
|
|
687
687
|
source: {
|
|
688
|
-
type: "base64";
|
|
689
688
|
data: string;
|
|
689
|
+
type: "base64";
|
|
690
690
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
691
691
|
};
|
|
692
692
|
}, {
|
|
693
693
|
type: "image";
|
|
694
694
|
source: {
|
|
695
|
-
type: "base64";
|
|
696
695
|
data: string;
|
|
696
|
+
type: "base64";
|
|
697
697
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
698
698
|
};
|
|
699
699
|
}>, z.ZodObject<{
|
|
@@ -702,15 +702,15 @@ export declare const anthropicMessagesSchema: z.ZodArray<z.ZodObject<{
|
|
|
702
702
|
name: z.ZodString;
|
|
703
703
|
input: z.ZodType<import("../../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema").JSONLiteral>;
|
|
704
704
|
}, "strip", z.ZodTypeAny, {
|
|
705
|
-
type: "tool_use";
|
|
706
705
|
name: string;
|
|
707
706
|
id: string;
|
|
708
707
|
input: import("../../jsonLiteralSchema").JSONLiteral;
|
|
709
|
-
}, {
|
|
710
708
|
type: "tool_use";
|
|
709
|
+
}, {
|
|
711
710
|
name: string;
|
|
712
711
|
id: string;
|
|
713
712
|
input: import("../../jsonLiteralSchema").JSONLiteral;
|
|
713
|
+
type: "tool_use";
|
|
714
714
|
}>, z.ZodObject<{
|
|
715
715
|
type: z.ZodLiteral<"tool_result">;
|
|
716
716
|
tool_use_id: z.ZodString;
|
|
@@ -730,58 +730,58 @@ export declare const anthropicMessagesSchema: z.ZodArray<z.ZodObject<{
|
|
|
730
730
|
media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
731
731
|
type: z.ZodLiteral<"base64">;
|
|
732
732
|
}, "strip", z.ZodTypeAny, {
|
|
733
|
-
type: "base64";
|
|
734
733
|
data: string;
|
|
734
|
+
type: "base64";
|
|
735
735
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
736
736
|
}, {
|
|
737
|
-
type: "base64";
|
|
738
737
|
data: string;
|
|
738
|
+
type: "base64";
|
|
739
739
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
740
740
|
}>;
|
|
741
741
|
}, "strip", z.ZodTypeAny, {
|
|
742
742
|
type: "image";
|
|
743
743
|
source: {
|
|
744
|
-
type: "base64";
|
|
745
744
|
data: string;
|
|
745
|
+
type: "base64";
|
|
746
746
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
747
747
|
};
|
|
748
748
|
}, {
|
|
749
749
|
type: "image";
|
|
750
750
|
source: {
|
|
751
|
-
type: "base64";
|
|
752
751
|
data: string;
|
|
752
|
+
type: "base64";
|
|
753
753
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
754
754
|
};
|
|
755
755
|
}>]>, "many">]>;
|
|
756
756
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
757
757
|
}, "strip", z.ZodTypeAny, {
|
|
758
|
-
type: "tool_result";
|
|
759
758
|
content: string | ({
|
|
760
759
|
text: string;
|
|
761
760
|
type: "text";
|
|
762
761
|
} | {
|
|
763
762
|
type: "image";
|
|
764
763
|
source: {
|
|
765
|
-
type: "base64";
|
|
766
764
|
data: string;
|
|
765
|
+
type: "base64";
|
|
767
766
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
768
767
|
};
|
|
769
768
|
})[];
|
|
769
|
+
type: "tool_result";
|
|
770
770
|
tool_use_id: string;
|
|
771
771
|
is_error?: boolean | undefined;
|
|
772
772
|
}, {
|
|
773
|
-
type: "tool_result";
|
|
774
773
|
content: string | ({
|
|
775
774
|
text: string;
|
|
776
775
|
type: "text";
|
|
777
776
|
} | {
|
|
778
777
|
type: "image";
|
|
779
778
|
source: {
|
|
780
|
-
type: "base64";
|
|
781
779
|
data: string;
|
|
780
|
+
type: "base64";
|
|
782
781
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
783
782
|
};
|
|
784
783
|
})[];
|
|
784
|
+
type: "tool_result";
|
|
785
785
|
tool_use_id: string;
|
|
786
786
|
is_error?: boolean | undefined;
|
|
787
787
|
}>]>, "many">]>;
|