@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
|
@@ -14,26 +14,26 @@ export declare const anthropicMessagePartToOpenAI: import("zod").ZodEffects<impo
|
|
|
14
14
|
media_type: import("zod").ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
15
15
|
type: import("zod").ZodLiteral<"base64">;
|
|
16
16
|
}, "strip", import("zod").ZodTypeAny, {
|
|
17
|
-
type: "base64";
|
|
18
17
|
data: string;
|
|
18
|
+
type: "base64";
|
|
19
19
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
20
20
|
}, {
|
|
21
|
-
type: "base64";
|
|
22
21
|
data: string;
|
|
22
|
+
type: "base64";
|
|
23
23
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
24
24
|
}>;
|
|
25
25
|
}, "strip", import("zod").ZodTypeAny, {
|
|
26
26
|
type: "image";
|
|
27
27
|
source: {
|
|
28
|
-
type: "base64";
|
|
29
28
|
data: string;
|
|
29
|
+
type: "base64";
|
|
30
30
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
31
31
|
};
|
|
32
32
|
}, {
|
|
33
33
|
type: "image";
|
|
34
34
|
source: {
|
|
35
|
-
type: "base64";
|
|
36
35
|
data: string;
|
|
36
|
+
type: "base64";
|
|
37
37
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
38
38
|
};
|
|
39
39
|
}>, import("zod").ZodObject<{
|
|
@@ -42,15 +42,15 @@ export declare const anthropicMessagePartToOpenAI: import("zod").ZodEffects<impo
|
|
|
42
42
|
name: import("zod").ZodString;
|
|
43
43
|
input: import("zod").ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, import("zod").ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
44
44
|
}, "strip", import("zod").ZodTypeAny, {
|
|
45
|
-
type: "tool_use";
|
|
46
45
|
name: string;
|
|
47
46
|
id: string;
|
|
48
47
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
49
|
-
}, {
|
|
50
48
|
type: "tool_use";
|
|
49
|
+
}, {
|
|
51
50
|
name: string;
|
|
52
51
|
id: string;
|
|
53
52
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
53
|
+
type: "tool_use";
|
|
54
54
|
}>, import("zod").ZodObject<{
|
|
55
55
|
type: import("zod").ZodLiteral<"tool_result">;
|
|
56
56
|
tool_use_id: import("zod").ZodString;
|
|
@@ -70,58 +70,58 @@ export declare const anthropicMessagePartToOpenAI: import("zod").ZodEffects<impo
|
|
|
70
70
|
media_type: import("zod").ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
71
71
|
type: import("zod").ZodLiteral<"base64">;
|
|
72
72
|
}, "strip", import("zod").ZodTypeAny, {
|
|
73
|
-
type: "base64";
|
|
74
73
|
data: string;
|
|
74
|
+
type: "base64";
|
|
75
75
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
76
76
|
}, {
|
|
77
|
-
type: "base64";
|
|
78
77
|
data: string;
|
|
78
|
+
type: "base64";
|
|
79
79
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
80
80
|
}>;
|
|
81
81
|
}, "strip", import("zod").ZodTypeAny, {
|
|
82
82
|
type: "image";
|
|
83
83
|
source: {
|
|
84
|
-
type: "base64";
|
|
85
84
|
data: string;
|
|
85
|
+
type: "base64";
|
|
86
86
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
87
87
|
};
|
|
88
88
|
}, {
|
|
89
89
|
type: "image";
|
|
90
90
|
source: {
|
|
91
|
-
type: "base64";
|
|
92
91
|
data: string;
|
|
92
|
+
type: "base64";
|
|
93
93
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
94
94
|
};
|
|
95
95
|
}>]>, "many">]>;
|
|
96
96
|
is_error: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
97
97
|
}, "strip", import("zod").ZodTypeAny, {
|
|
98
|
-
type: "tool_result";
|
|
99
98
|
content: string | ({
|
|
100
99
|
text: string;
|
|
101
100
|
type: "text";
|
|
102
101
|
} | {
|
|
103
102
|
type: "image";
|
|
104
103
|
source: {
|
|
105
|
-
type: "base64";
|
|
106
104
|
data: string;
|
|
105
|
+
type: "base64";
|
|
107
106
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
108
107
|
};
|
|
109
108
|
})[];
|
|
109
|
+
type: "tool_result";
|
|
110
110
|
tool_use_id: string;
|
|
111
111
|
is_error?: boolean | undefined;
|
|
112
112
|
}, {
|
|
113
|
-
type: "tool_result";
|
|
114
113
|
content: string | ({
|
|
115
114
|
text: string;
|
|
116
115
|
type: "text";
|
|
117
116
|
} | {
|
|
118
117
|
type: "image";
|
|
119
118
|
source: {
|
|
120
|
-
type: "base64";
|
|
121
119
|
data: string;
|
|
120
|
+
type: "base64";
|
|
122
121
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
123
122
|
};
|
|
124
123
|
})[];
|
|
124
|
+
type: "tool_result";
|
|
125
125
|
tool_use_id: string;
|
|
126
126
|
is_error?: boolean | undefined;
|
|
127
127
|
}>]>, {
|
|
@@ -133,33 +133,33 @@ export declare const anthropicMessagePartToOpenAI: import("zod").ZodEffects<impo
|
|
|
133
133
|
url: string;
|
|
134
134
|
};
|
|
135
135
|
} | null, {
|
|
136
|
-
type: "tool_use";
|
|
137
136
|
name: string;
|
|
138
137
|
id: string;
|
|
139
138
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
139
|
+
type: "tool_use";
|
|
140
140
|
} | {
|
|
141
141
|
text: string;
|
|
142
142
|
type: "text";
|
|
143
143
|
} | {
|
|
144
144
|
type: "image";
|
|
145
145
|
source: {
|
|
146
|
-
type: "base64";
|
|
147
146
|
data: string;
|
|
147
|
+
type: "base64";
|
|
148
148
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
149
149
|
};
|
|
150
150
|
} | {
|
|
151
|
-
type: "tool_result";
|
|
152
151
|
content: string | ({
|
|
153
152
|
text: string;
|
|
154
153
|
type: "text";
|
|
155
154
|
} | {
|
|
156
155
|
type: "image";
|
|
157
156
|
source: {
|
|
158
|
-
type: "base64";
|
|
159
157
|
data: string;
|
|
158
|
+
type: "base64";
|
|
160
159
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
161
160
|
};
|
|
162
161
|
})[];
|
|
162
|
+
type: "tool_result";
|
|
163
163
|
tool_use_id: string;
|
|
164
164
|
is_error?: boolean | undefined;
|
|
165
165
|
}>;
|
|
@@ -184,26 +184,26 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
|
|
|
184
184
|
media_type: import("zod").ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
185
185
|
type: import("zod").ZodLiteral<"base64">;
|
|
186
186
|
}, "strip", import("zod").ZodTypeAny, {
|
|
187
|
-
type: "base64";
|
|
188
187
|
data: string;
|
|
188
|
+
type: "base64";
|
|
189
189
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
190
190
|
}, {
|
|
191
|
-
type: "base64";
|
|
192
191
|
data: string;
|
|
192
|
+
type: "base64";
|
|
193
193
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
194
194
|
}>;
|
|
195
195
|
}, "strip", import("zod").ZodTypeAny, {
|
|
196
196
|
type: "image";
|
|
197
197
|
source: {
|
|
198
|
-
type: "base64";
|
|
199
198
|
data: string;
|
|
199
|
+
type: "base64";
|
|
200
200
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
201
201
|
};
|
|
202
202
|
}, {
|
|
203
203
|
type: "image";
|
|
204
204
|
source: {
|
|
205
|
-
type: "base64";
|
|
206
205
|
data: string;
|
|
206
|
+
type: "base64";
|
|
207
207
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
208
208
|
};
|
|
209
209
|
}>, import("zod").ZodObject<{
|
|
@@ -212,15 +212,15 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
|
|
|
212
212
|
name: import("zod").ZodString;
|
|
213
213
|
input: import("zod").ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, import("zod").ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
214
214
|
}, "strip", import("zod").ZodTypeAny, {
|
|
215
|
-
type: "tool_use";
|
|
216
215
|
name: string;
|
|
217
216
|
id: string;
|
|
218
217
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
219
|
-
}, {
|
|
220
218
|
type: "tool_use";
|
|
219
|
+
}, {
|
|
221
220
|
name: string;
|
|
222
221
|
id: string;
|
|
223
222
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
223
|
+
type: "tool_use";
|
|
224
224
|
}>, import("zod").ZodObject<{
|
|
225
225
|
type: import("zod").ZodLiteral<"tool_result">;
|
|
226
226
|
tool_use_id: import("zod").ZodString;
|
|
@@ -240,58 +240,58 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
|
|
|
240
240
|
media_type: import("zod").ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
241
241
|
type: import("zod").ZodLiteral<"base64">;
|
|
242
242
|
}, "strip", import("zod").ZodTypeAny, {
|
|
243
|
-
type: "base64";
|
|
244
243
|
data: string;
|
|
244
|
+
type: "base64";
|
|
245
245
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
246
246
|
}, {
|
|
247
|
-
type: "base64";
|
|
248
247
|
data: string;
|
|
248
|
+
type: "base64";
|
|
249
249
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
250
250
|
}>;
|
|
251
251
|
}, "strip", import("zod").ZodTypeAny, {
|
|
252
252
|
type: "image";
|
|
253
253
|
source: {
|
|
254
|
-
type: "base64";
|
|
255
254
|
data: string;
|
|
255
|
+
type: "base64";
|
|
256
256
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
257
257
|
};
|
|
258
258
|
}, {
|
|
259
259
|
type: "image";
|
|
260
260
|
source: {
|
|
261
|
-
type: "base64";
|
|
262
261
|
data: string;
|
|
262
|
+
type: "base64";
|
|
263
263
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
264
264
|
};
|
|
265
265
|
}>]>, "many">]>;
|
|
266
266
|
is_error: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
267
267
|
}, "strip", import("zod").ZodTypeAny, {
|
|
268
|
-
type: "tool_result";
|
|
269
268
|
content: string | ({
|
|
270
269
|
text: string;
|
|
271
270
|
type: "text";
|
|
272
271
|
} | {
|
|
273
272
|
type: "image";
|
|
274
273
|
source: {
|
|
275
|
-
type: "base64";
|
|
276
274
|
data: string;
|
|
275
|
+
type: "base64";
|
|
277
276
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
278
277
|
};
|
|
279
278
|
})[];
|
|
279
|
+
type: "tool_result";
|
|
280
280
|
tool_use_id: string;
|
|
281
281
|
is_error?: boolean | undefined;
|
|
282
282
|
}, {
|
|
283
|
-
type: "tool_result";
|
|
284
283
|
content: string | ({
|
|
285
284
|
text: string;
|
|
286
285
|
type: "text";
|
|
287
286
|
} | {
|
|
288
287
|
type: "image";
|
|
289
288
|
source: {
|
|
290
|
-
type: "base64";
|
|
291
289
|
data: string;
|
|
290
|
+
type: "base64";
|
|
292
291
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
293
292
|
};
|
|
294
293
|
})[];
|
|
294
|
+
type: "tool_result";
|
|
295
295
|
tool_use_id: string;
|
|
296
296
|
is_error?: boolean | undefined;
|
|
297
297
|
}>]>, "many">]>;
|
|
@@ -313,26 +313,26 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
|
|
|
313
313
|
media_type: import("zod").ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
314
314
|
type: import("zod").ZodLiteral<"base64">;
|
|
315
315
|
}, "strip", import("zod").ZodTypeAny, {
|
|
316
|
-
type: "base64";
|
|
317
316
|
data: string;
|
|
317
|
+
type: "base64";
|
|
318
318
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
319
319
|
}, {
|
|
320
|
-
type: "base64";
|
|
321
320
|
data: string;
|
|
321
|
+
type: "base64";
|
|
322
322
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
323
323
|
}>;
|
|
324
324
|
}, "strip", import("zod").ZodTypeAny, {
|
|
325
325
|
type: "image";
|
|
326
326
|
source: {
|
|
327
|
-
type: "base64";
|
|
328
327
|
data: string;
|
|
328
|
+
type: "base64";
|
|
329
329
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
330
330
|
};
|
|
331
331
|
}, {
|
|
332
332
|
type: "image";
|
|
333
333
|
source: {
|
|
334
|
-
type: "base64";
|
|
335
334
|
data: string;
|
|
335
|
+
type: "base64";
|
|
336
336
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
337
337
|
};
|
|
338
338
|
}>, import("zod").ZodObject<{
|
|
@@ -341,15 +341,15 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
|
|
|
341
341
|
name: import("zod").ZodString;
|
|
342
342
|
input: import("zod").ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, import("zod").ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
343
343
|
}, "strip", import("zod").ZodTypeAny, {
|
|
344
|
-
type: "tool_use";
|
|
345
344
|
name: string;
|
|
346
345
|
id: string;
|
|
347
346
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
348
|
-
}, {
|
|
349
347
|
type: "tool_use";
|
|
348
|
+
}, {
|
|
350
349
|
name: string;
|
|
351
350
|
id: string;
|
|
352
351
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
352
|
+
type: "tool_use";
|
|
353
353
|
}>, import("zod").ZodObject<{
|
|
354
354
|
type: import("zod").ZodLiteral<"tool_result">;
|
|
355
355
|
tool_use_id: import("zod").ZodString;
|
|
@@ -369,58 +369,58 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
|
|
|
369
369
|
media_type: import("zod").ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
370
370
|
type: import("zod").ZodLiteral<"base64">;
|
|
371
371
|
}, "strip", import("zod").ZodTypeAny, {
|
|
372
|
-
type: "base64";
|
|
373
372
|
data: string;
|
|
373
|
+
type: "base64";
|
|
374
374
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
375
375
|
}, {
|
|
376
|
-
type: "base64";
|
|
377
376
|
data: string;
|
|
377
|
+
type: "base64";
|
|
378
378
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
379
379
|
}>;
|
|
380
380
|
}, "strip", import("zod").ZodTypeAny, {
|
|
381
381
|
type: "image";
|
|
382
382
|
source: {
|
|
383
|
-
type: "base64";
|
|
384
383
|
data: string;
|
|
384
|
+
type: "base64";
|
|
385
385
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
386
386
|
};
|
|
387
387
|
}, {
|
|
388
388
|
type: "image";
|
|
389
389
|
source: {
|
|
390
|
-
type: "base64";
|
|
391
390
|
data: string;
|
|
391
|
+
type: "base64";
|
|
392
392
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
393
393
|
};
|
|
394
394
|
}>]>, "many">]>;
|
|
395
395
|
is_error: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
396
396
|
}, "strip", import("zod").ZodTypeAny, {
|
|
397
|
-
type: "tool_result";
|
|
398
397
|
content: string | ({
|
|
399
398
|
text: string;
|
|
400
399
|
type: "text";
|
|
401
400
|
} | {
|
|
402
401
|
type: "image";
|
|
403
402
|
source: {
|
|
404
|
-
type: "base64";
|
|
405
403
|
data: string;
|
|
404
|
+
type: "base64";
|
|
406
405
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
407
406
|
};
|
|
408
407
|
})[];
|
|
408
|
+
type: "tool_result";
|
|
409
409
|
tool_use_id: string;
|
|
410
410
|
is_error?: boolean | undefined;
|
|
411
411
|
}, {
|
|
412
|
-
type: "tool_result";
|
|
413
412
|
content: string | ({
|
|
414
413
|
text: string;
|
|
415
414
|
type: "text";
|
|
416
415
|
} | {
|
|
417
416
|
type: "image";
|
|
418
417
|
source: {
|
|
419
|
-
type: "base64";
|
|
420
418
|
data: string;
|
|
419
|
+
type: "base64";
|
|
421
420
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
422
421
|
};
|
|
423
422
|
})[];
|
|
423
|
+
type: "tool_result";
|
|
424
424
|
tool_use_id: string;
|
|
425
425
|
is_error?: boolean | undefined;
|
|
426
426
|
}>]>, "many">]>;
|
|
@@ -442,26 +442,26 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
|
|
|
442
442
|
media_type: import("zod").ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
443
443
|
type: import("zod").ZodLiteral<"base64">;
|
|
444
444
|
}, "strip", import("zod").ZodTypeAny, {
|
|
445
|
-
type: "base64";
|
|
446
445
|
data: string;
|
|
446
|
+
type: "base64";
|
|
447
447
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
448
448
|
}, {
|
|
449
|
-
type: "base64";
|
|
450
449
|
data: string;
|
|
450
|
+
type: "base64";
|
|
451
451
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
452
452
|
}>;
|
|
453
453
|
}, "strip", import("zod").ZodTypeAny, {
|
|
454
454
|
type: "image";
|
|
455
455
|
source: {
|
|
456
|
-
type: "base64";
|
|
457
456
|
data: string;
|
|
457
|
+
type: "base64";
|
|
458
458
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
459
459
|
};
|
|
460
460
|
}, {
|
|
461
461
|
type: "image";
|
|
462
462
|
source: {
|
|
463
|
-
type: "base64";
|
|
464
463
|
data: string;
|
|
464
|
+
type: "base64";
|
|
465
465
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
466
466
|
};
|
|
467
467
|
}>, import("zod").ZodObject<{
|
|
@@ -470,15 +470,15 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
|
|
|
470
470
|
name: import("zod").ZodString;
|
|
471
471
|
input: import("zod").ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, import("zod").ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
472
472
|
}, "strip", import("zod").ZodTypeAny, {
|
|
473
|
-
type: "tool_use";
|
|
474
473
|
name: string;
|
|
475
474
|
id: string;
|
|
476
475
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
477
|
-
}, {
|
|
478
476
|
type: "tool_use";
|
|
477
|
+
}, {
|
|
479
478
|
name: string;
|
|
480
479
|
id: string;
|
|
481
480
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
481
|
+
type: "tool_use";
|
|
482
482
|
}>, import("zod").ZodObject<{
|
|
483
483
|
type: import("zod").ZodLiteral<"tool_result">;
|
|
484
484
|
tool_use_id: import("zod").ZodString;
|
|
@@ -498,58 +498,58 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
|
|
|
498
498
|
media_type: import("zod").ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
499
499
|
type: import("zod").ZodLiteral<"base64">;
|
|
500
500
|
}, "strip", import("zod").ZodTypeAny, {
|
|
501
|
-
type: "base64";
|
|
502
501
|
data: string;
|
|
502
|
+
type: "base64";
|
|
503
503
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
504
504
|
}, {
|
|
505
|
-
type: "base64";
|
|
506
505
|
data: string;
|
|
506
|
+
type: "base64";
|
|
507
507
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
508
508
|
}>;
|
|
509
509
|
}, "strip", import("zod").ZodTypeAny, {
|
|
510
510
|
type: "image";
|
|
511
511
|
source: {
|
|
512
|
-
type: "base64";
|
|
513
512
|
data: string;
|
|
513
|
+
type: "base64";
|
|
514
514
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
515
515
|
};
|
|
516
516
|
}, {
|
|
517
517
|
type: "image";
|
|
518
518
|
source: {
|
|
519
|
-
type: "base64";
|
|
520
519
|
data: string;
|
|
520
|
+
type: "base64";
|
|
521
521
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
522
522
|
};
|
|
523
523
|
}>]>, "many">]>;
|
|
524
524
|
is_error: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
525
525
|
}, "strip", import("zod").ZodTypeAny, {
|
|
526
|
-
type: "tool_result";
|
|
527
526
|
content: string | ({
|
|
528
527
|
text: string;
|
|
529
528
|
type: "text";
|
|
530
529
|
} | {
|
|
531
530
|
type: "image";
|
|
532
531
|
source: {
|
|
533
|
-
type: "base64";
|
|
534
532
|
data: string;
|
|
533
|
+
type: "base64";
|
|
535
534
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
536
535
|
};
|
|
537
536
|
})[];
|
|
537
|
+
type: "tool_result";
|
|
538
538
|
tool_use_id: string;
|
|
539
539
|
is_error?: boolean | undefined;
|
|
540
540
|
}, {
|
|
541
|
-
type: "tool_result";
|
|
542
541
|
content: string | ({
|
|
543
542
|
text: string;
|
|
544
543
|
type: "text";
|
|
545
544
|
} | {
|
|
546
545
|
type: "image";
|
|
547
546
|
source: {
|
|
548
|
-
type: "base64";
|
|
549
547
|
data: string;
|
|
548
|
+
type: "base64";
|
|
550
549
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
551
550
|
};
|
|
552
551
|
})[];
|
|
552
|
+
type: "tool_result";
|
|
553
553
|
tool_use_id: string;
|
|
554
554
|
is_error?: boolean | undefined;
|
|
555
555
|
}>]>, "many">]>;
|
|
@@ -587,8 +587,8 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
|
|
|
587
587
|
} & {
|
|
588
588
|
[k: string]: unknown;
|
|
589
589
|
};
|
|
590
|
-
type: "function";
|
|
591
590
|
id: string;
|
|
591
|
+
type: "function";
|
|
592
592
|
}, {
|
|
593
593
|
function: {
|
|
594
594
|
name: string;
|
|
@@ -692,26 +692,26 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
|
|
|
692
692
|
media_type: import("zod").ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
693
693
|
type: import("zod").ZodLiteral<"base64">;
|
|
694
694
|
}, "strip", import("zod").ZodTypeAny, {
|
|
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
|
-
type: "base64";
|
|
700
699
|
data: string;
|
|
700
|
+
type: "base64";
|
|
701
701
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
702
702
|
}>;
|
|
703
703
|
}, "strip", import("zod").ZodTypeAny, {
|
|
704
704
|
type: "image";
|
|
705
705
|
source: {
|
|
706
|
-
type: "base64";
|
|
707
706
|
data: string;
|
|
707
|
+
type: "base64";
|
|
708
708
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
709
709
|
};
|
|
710
710
|
}, {
|
|
711
711
|
type: "image";
|
|
712
712
|
source: {
|
|
713
|
-
type: "base64";
|
|
714
713
|
data: string;
|
|
714
|
+
type: "base64";
|
|
715
715
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
716
716
|
};
|
|
717
717
|
}>, import("zod").ZodObject<{
|
|
@@ -720,15 +720,15 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
|
|
|
720
720
|
name: import("zod").ZodString;
|
|
721
721
|
input: import("zod").ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, import("zod").ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
722
722
|
}, "strip", import("zod").ZodTypeAny, {
|
|
723
|
-
type: "tool_use";
|
|
724
723
|
name: string;
|
|
725
724
|
id: string;
|
|
726
725
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
727
|
-
}, {
|
|
728
726
|
type: "tool_use";
|
|
727
|
+
}, {
|
|
729
728
|
name: string;
|
|
730
729
|
id: string;
|
|
731
730
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
731
|
+
type: "tool_use";
|
|
732
732
|
}>, import("zod").ZodObject<{
|
|
733
733
|
type: import("zod").ZodLiteral<"tool_result">;
|
|
734
734
|
tool_use_id: import("zod").ZodString;
|
|
@@ -748,58 +748,58 @@ export declare const anthropicMessageToOpenAI: import("zod").ZodEffects<import("
|
|
|
748
748
|
media_type: import("zod").ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
|
|
749
749
|
type: import("zod").ZodLiteral<"base64">;
|
|
750
750
|
}, "strip", import("zod").ZodTypeAny, {
|
|
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
|
-
type: "base64";
|
|
756
755
|
data: string;
|
|
756
|
+
type: "base64";
|
|
757
757
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
758
758
|
}>;
|
|
759
759
|
}, "strip", import("zod").ZodTypeAny, {
|
|
760
760
|
type: "image";
|
|
761
761
|
source: {
|
|
762
|
-
type: "base64";
|
|
763
762
|
data: string;
|
|
763
|
+
type: "base64";
|
|
764
764
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
765
765
|
};
|
|
766
766
|
}, {
|
|
767
767
|
type: "image";
|
|
768
768
|
source: {
|
|
769
|
-
type: "base64";
|
|
770
769
|
data: string;
|
|
770
|
+
type: "base64";
|
|
771
771
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
772
772
|
};
|
|
773
773
|
}>]>, "many">]>;
|
|
774
774
|
is_error: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
775
775
|
}, "strip", import("zod").ZodTypeAny, {
|
|
776
|
-
type: "tool_result";
|
|
777
776
|
content: string | ({
|
|
778
777
|
text: string;
|
|
779
778
|
type: "text";
|
|
780
779
|
} | {
|
|
781
780
|
type: "image";
|
|
782
781
|
source: {
|
|
783
|
-
type: "base64";
|
|
784
782
|
data: string;
|
|
783
|
+
type: "base64";
|
|
785
784
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
786
785
|
};
|
|
787
786
|
})[];
|
|
787
|
+
type: "tool_result";
|
|
788
788
|
tool_use_id: string;
|
|
789
789
|
is_error?: boolean | undefined;
|
|
790
790
|
}, {
|
|
791
|
-
type: "tool_result";
|
|
792
791
|
content: string | ({
|
|
793
792
|
text: string;
|
|
794
793
|
type: "text";
|
|
795
794
|
} | {
|
|
796
795
|
type: "image";
|
|
797
796
|
source: {
|
|
798
|
-
type: "base64";
|
|
799
797
|
data: string;
|
|
798
|
+
type: "base64";
|
|
800
799
|
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
801
800
|
};
|
|
802
801
|
})[];
|
|
802
|
+
type: "tool_result";
|
|
803
803
|
tool_use_id: string;
|
|
804
804
|
is_error?: boolean | undefined;
|
|
805
805
|
}>]>, "many">]>;
|
|
@@ -813,15 +813,15 @@ export declare const anthropicToolCallToOpenAI: import("zod").ZodEffects<import(
|
|
|
813
813
|
name: import("zod").ZodString;
|
|
814
814
|
input: import("zod").ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, import("zod").ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
|
|
815
815
|
}, "strip", import("zod").ZodTypeAny, {
|
|
816
|
-
type: "tool_use";
|
|
817
816
|
name: string;
|
|
818
817
|
id: string;
|
|
819
818
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
820
|
-
}, {
|
|
821
819
|
type: "tool_use";
|
|
820
|
+
}, {
|
|
822
821
|
name: string;
|
|
823
822
|
id: string;
|
|
824
823
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
824
|
+
type: "tool_use";
|
|
825
825
|
}>, {
|
|
826
826
|
function: {
|
|
827
827
|
name: string;
|
|
@@ -829,13 +829,13 @@ export declare const anthropicToolCallToOpenAI: import("zod").ZodEffects<import(
|
|
|
829
829
|
} & {
|
|
830
830
|
[k: string]: unknown;
|
|
831
831
|
};
|
|
832
|
-
type: "function";
|
|
833
832
|
id: string;
|
|
833
|
+
type: "function";
|
|
834
834
|
}, {
|
|
835
|
-
type: "tool_use";
|
|
836
835
|
name: string;
|
|
837
836
|
id: string;
|
|
838
837
|
input: import("../../jsonLiteralSchema.js").JSONLiteral;
|
|
838
|
+
type: "tool_use";
|
|
839
839
|
}>;
|
|
840
840
|
/**
|
|
841
841
|
* Parse incoming object as an Anthropic tool choice and immediately convert to OpenAI format
|
|
@@ -844,11 +844,11 @@ export declare const anthropicToolChoiceToOpenAI: import("zod").ZodEffects<impor
|
|
|
844
844
|
type: import("zod").ZodLiteral<"tool">;
|
|
845
845
|
name: import("zod").ZodString;
|
|
846
846
|
}, "strip", import("zod").ZodTypeAny, {
|
|
847
|
-
type: "tool";
|
|
848
847
|
name: string;
|
|
849
|
-
}, {
|
|
850
848
|
type: "tool";
|
|
849
|
+
}, {
|
|
851
850
|
name: string;
|
|
851
|
+
type: "tool";
|
|
852
852
|
}>, import("zod").ZodObject<{
|
|
853
853
|
type: import("zod").ZodLiteral<"auto">;
|
|
854
854
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -867,8 +867,8 @@ export declare const anthropicToolChoiceToOpenAI: import("zod").ZodEffects<impor
|
|
|
867
867
|
};
|
|
868
868
|
type: "function";
|
|
869
869
|
}, {
|
|
870
|
-
type: "tool";
|
|
871
870
|
name: string;
|
|
871
|
+
type: "tool";
|
|
872
872
|
} | {
|
|
873
873
|
type: "auto";
|
|
874
874
|
} | {
|