@respan/respan-sdk 1.0.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.
Files changed (69) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +1 -0
  3. package/dist/constants/datasetConstants.d.ts +16 -0
  4. package/dist/constants/datasetConstants.js +17 -0
  5. package/dist/constants/datasetConstants.js.map +1 -0
  6. package/dist/constants/evluatorConstants.d.ts +0 -0
  7. package/dist/constants/evluatorConstants.js +2 -0
  8. package/dist/constants/evluatorConstants.js.map +1 -0
  9. package/dist/constants/experimentConstants.d.ts +0 -0
  10. package/dist/constants/experimentConstants.js +2 -0
  11. package/dist/constants/experimentConstants.js.map +1 -0
  12. package/dist/constants/index.d.ts +3 -0
  13. package/dist/constants/index.js +4 -0
  14. package/dist/constants/index.js.map +1 -0
  15. package/dist/constants/log.d.ts +17 -0
  16. package/dist/constants/log.js +21 -0
  17. package/dist/constants/log.js.map +1 -0
  18. package/dist/constants/logConstants.d.ts +17 -0
  19. package/dist/constants/logConstants.js +21 -0
  20. package/dist/constants/logConstants.js.map +1 -0
  21. package/dist/constants/promptConstants.d.ts +10 -0
  22. package/dist/constants/promptConstants.js +8 -0
  23. package/dist/constants/promptConstants.js.map +1 -0
  24. package/dist/exporters/index.d.ts +1 -0
  25. package/dist/exporters/index.js +2 -0
  26. package/dist/exporters/index.js.map +1 -0
  27. package/dist/exporters/vercelExporter.d.ts +42 -0
  28. package/dist/exporters/vercelExporter.js +548 -0
  29. package/dist/exporters/vercelExporter.js.map +1 -0
  30. package/dist/index.d.ts +2 -0
  31. package/dist/index.js +4 -0
  32. package/dist/index.js.map +1 -0
  33. package/dist/types/baseTypes.d.ts +10 -0
  34. package/dist/types/baseTypes.js +2 -0
  35. package/dist/types/baseTypes.js.map +1 -0
  36. package/dist/types/clientTypes.d.ts +65 -0
  37. package/dist/types/clientTypes.js +22 -0
  38. package/dist/types/clientTypes.js.map +1 -0
  39. package/dist/types/datasetTypes.d.ts +65 -0
  40. package/dist/types/datasetTypes.js +2 -0
  41. package/dist/types/datasetTypes.js.map +1 -0
  42. package/dist/types/decoratorTypes.d.ts +3 -0
  43. package/dist/types/decoratorTypes.js +4 -0
  44. package/dist/types/decoratorTypes.js.map +1 -0
  45. package/dist/types/evaluatorTypes.d.ts +10 -0
  46. package/dist/types/evaluatorTypes.js +2 -0
  47. package/dist/types/evaluatorTypes.js.map +1 -0
  48. package/dist/types/experimentTypes.d.ts +158 -0
  49. package/dist/types/experimentTypes.js +10 -0
  50. package/dist/types/experimentTypes.js.map +1 -0
  51. package/dist/types/genericTypes.d.ts +18 -0
  52. package/dist/types/genericTypes.js +2 -0
  53. package/dist/types/genericTypes.js.map +1 -0
  54. package/dist/types/index.d.ts +11 -0
  55. package/dist/types/index.js +12 -0
  56. package/dist/types/index.js.map +1 -0
  57. package/dist/types/logTypes.d.ts +2792 -0
  58. package/dist/types/logTypes.js +503 -0
  59. package/dist/types/logTypes.js.map +1 -0
  60. package/dist/types/promptTypes.d.ts +59 -0
  61. package/dist/types/promptTypes.js +2 -0
  62. package/dist/types/promptTypes.js.map +1 -0
  63. package/dist/types/spanTypes.d.ts +14 -0
  64. package/dist/types/spanTypes.js +28 -0
  65. package/dist/types/spanTypes.js.map +1 -0
  66. package/dist/types/tracingTypes.d.ts +59 -0
  67. package/dist/types/tracingTypes.js +2 -0
  68. package/dist/types/tracingTypes.js.map +1 -0
  69. package/package.json +35 -0
@@ -0,0 +1,2792 @@
1
+ import { z } from "zod";
2
+ export declare const LOG_TYPE_VALUES: readonly ["text", "chat", "completion", "response", "embedding", "transcription", "speech", "workflow", "task", "tool", "agent", "handoff", "guardrail", "function", "custom", "generation", "unknown"];
3
+ export type LogType = (typeof LOG_TYPE_VALUES)[number];
4
+ export declare const LOG_METHOD_VALUES: readonly ["inference", "logging_api", "batch", "python_tracing", "ts_tracing"];
5
+ export type LogMethod = (typeof LOG_METHOD_VALUES)[number];
6
+ declare const ToolCallSchema: z.ZodPipe<z.ZodObject<{
7
+ type: z.ZodDefault<z.ZodString>;
8
+ id: z.ZodOptional<z.ZodString>;
9
+ function: z.ZodOptional<z.ZodObject<{
10
+ name: z.ZodOptional<z.ZodString>;
11
+ arguments: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
12
+ }, z.core.$catchall<z.ZodAny>>>;
13
+ }, z.core.$catchall<z.ZodAny>>, z.ZodTransform<Record<string, any>, {
14
+ [x: string]: any;
15
+ type: string;
16
+ id?: string | undefined;
17
+ function?: {
18
+ [x: string]: any;
19
+ name?: string | undefined;
20
+ arguments?: string | Record<string, any> | undefined;
21
+ } | undefined;
22
+ }>>;
23
+ declare const ToolChoiceSchema: z.ZodOptional<z.ZodObject<{
24
+ type: z.ZodString;
25
+ function: z.ZodOptional<z.ZodObject<{
26
+ name: z.ZodString;
27
+ }, z.core.$strip>>;
28
+ }, z.core.$strip>>;
29
+ declare const FunctionToolSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
30
+ type: z.ZodLiteral<"function">;
31
+ function: z.ZodObject<{
32
+ name: z.ZodString;
33
+ description: z.ZodOptional<z.ZodString>;
34
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
35
+ }, z.core.$strip>;
36
+ }, z.core.$strip>, z.ZodObject<{
37
+ type: z.ZodLiteral<"function">;
38
+ name: z.ZodString;
39
+ description: z.ZodOptional<z.ZodString>;
40
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
41
+ }, z.core.$strip>]>, z.ZodTransform<any, {
42
+ type: "function";
43
+ function: {
44
+ name: string;
45
+ description?: string | undefined;
46
+ parameters?: Record<string, any> | undefined;
47
+ };
48
+ } | {
49
+ type: "function";
50
+ name: string;
51
+ description?: string | undefined;
52
+ parameters?: Record<string, any> | undefined;
53
+ }>>;
54
+ declare const MessageSchema: z.ZodPipe<z.ZodObject<{
55
+ role: z.ZodString;
56
+ content: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
57
+ type: z.ZodString;
58
+ text: z.ZodString;
59
+ cache_control: z.ZodOptional<z.ZodObject<{
60
+ type: z.ZodString;
61
+ }, z.core.$strip>>;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ type: z.ZodString;
64
+ image_url: z.ZodUnion<readonly [z.ZodObject<{
65
+ url: z.ZodString;
66
+ detail: z.ZodOptional<z.ZodString>;
67
+ }, z.core.$strip>, z.ZodString]>;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ type: z.ZodString;
70
+ file: z.ZodString;
71
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ type: z.ZodString;
74
+ id: z.ZodOptional<z.ZodString>;
75
+ name: z.ZodOptional<z.ZodString>;
76
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
77
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
78
+ type: z.ZodString;
79
+ tool_use_id: z.ZodAny;
80
+ content: z.ZodString;
81
+ }, z.core.$strip>, z.ZodTransform<{
82
+ type: any;
83
+ tool_use_id: any;
84
+ content: any;
85
+ }, {
86
+ type: string;
87
+ tool_use_id: any;
88
+ content: string;
89
+ }>>, z.ZodObject<{
90
+ type: z.ZodString;
91
+ text: z.ZodString;
92
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>>>;
93
+ cache_control: z.ZodOptional<z.ZodObject<{
94
+ type: z.ZodString;
95
+ }, z.core.$strip>>;
96
+ }, z.core.$strip>, z.ZodObject<{
97
+ type: z.ZodString;
98
+ file: z.ZodString;
99
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
100
+ }, z.core.$strip>, z.ZodObject<{
101
+ type: z.ZodString;
102
+ text: z.ZodString;
103
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>, z.ZodTransform<string | (Record<string, any> | {
104
+ type: any;
105
+ tool_use_id: any;
106
+ content: any;
107
+ } | {
108
+ type: string;
109
+ text: string;
110
+ cache_control?: {
111
+ type: string;
112
+ } | undefined;
113
+ } | {
114
+ type: string;
115
+ image_url: string | {
116
+ url: string;
117
+ detail?: string | undefined;
118
+ };
119
+ } | {
120
+ type: string;
121
+ file: string;
122
+ providerData?: Record<string, any> | undefined;
123
+ } | {
124
+ type: string;
125
+ file: string;
126
+ providerData?: Record<string, any> | undefined;
127
+ } | {
128
+ type: string;
129
+ id?: string | undefined;
130
+ name?: string | undefined;
131
+ input?: Record<string, any> | undefined;
132
+ } | {
133
+ type: string;
134
+ text: string;
135
+ annotations?: (string | Record<string, any>)[] | undefined;
136
+ cache_control?: {
137
+ type: string;
138
+ } | undefined;
139
+ } | {
140
+ type: string;
141
+ text: string;
142
+ })[], string | (Record<string, any> | {
143
+ type: any;
144
+ tool_use_id: any;
145
+ content: any;
146
+ } | {
147
+ type: string;
148
+ text: string;
149
+ cache_control?: {
150
+ type: string;
151
+ } | undefined;
152
+ } | {
153
+ type: string;
154
+ image_url: string | {
155
+ url: string;
156
+ detail?: string | undefined;
157
+ };
158
+ } | {
159
+ type: string;
160
+ file: string;
161
+ providerData?: Record<string, any> | undefined;
162
+ } | {
163
+ type: string;
164
+ file: string;
165
+ providerData?: Record<string, any> | undefined;
166
+ } | {
167
+ type: string;
168
+ id?: string | undefined;
169
+ name?: string | undefined;
170
+ input?: Record<string, any> | undefined;
171
+ } | {
172
+ type: string;
173
+ text: string;
174
+ annotations?: (string | Record<string, any>)[] | undefined;
175
+ cache_control?: {
176
+ type: string;
177
+ } | undefined;
178
+ } | {
179
+ type: string;
180
+ text: string;
181
+ })[]>>>;
182
+ name: z.ZodOptional<z.ZodString>;
183
+ tool_call_id: z.ZodOptional<z.ZodAny>;
184
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
185
+ experimental_providerMetadata: z.ZodOptional<z.ZodObject<{
186
+ anthropic: z.ZodObject<{
187
+ cacheControl: z.ZodObject<{
188
+ type: z.ZodString;
189
+ }, z.core.$strip>;
190
+ }, z.core.$strip>;
191
+ }, z.core.$strip>>;
192
+ }, z.core.$strip>, z.ZodTransform<{
193
+ role: string;
194
+ content?: string | (Record<string, any> | {
195
+ type: any;
196
+ tool_use_id: any;
197
+ content: any;
198
+ } | {
199
+ type: string;
200
+ text: string;
201
+ cache_control?: {
202
+ type: string;
203
+ } | undefined;
204
+ } | {
205
+ type: string;
206
+ image_url: string | {
207
+ url: string;
208
+ detail?: string | undefined;
209
+ };
210
+ } | {
211
+ type: string;
212
+ file: string;
213
+ providerData?: Record<string, any> | undefined;
214
+ } | {
215
+ type: string;
216
+ file: string;
217
+ providerData?: Record<string, any> | undefined;
218
+ } | {
219
+ type: string;
220
+ id?: string | undefined;
221
+ name?: string | undefined;
222
+ input?: Record<string, any> | undefined;
223
+ } | {
224
+ type: string;
225
+ text: string;
226
+ annotations?: (string | Record<string, any>)[] | undefined;
227
+ cache_control?: {
228
+ type: string;
229
+ } | undefined;
230
+ } | {
231
+ type: string;
232
+ text: string;
233
+ })[] | undefined;
234
+ name?: string | undefined;
235
+ tool_call_id?: any;
236
+ tool_calls?: Record<string, any>[] | undefined;
237
+ experimental_providerMetadata?: {
238
+ anthropic: {
239
+ cacheControl: {
240
+ type: string;
241
+ };
242
+ };
243
+ } | undefined;
244
+ }, {
245
+ role: string;
246
+ content?: string | (Record<string, any> | {
247
+ type: any;
248
+ tool_use_id: any;
249
+ content: any;
250
+ } | {
251
+ type: string;
252
+ text: string;
253
+ cache_control?: {
254
+ type: string;
255
+ } | undefined;
256
+ } | {
257
+ type: string;
258
+ image_url: string | {
259
+ url: string;
260
+ detail?: string | undefined;
261
+ };
262
+ } | {
263
+ type: string;
264
+ file: string;
265
+ providerData?: Record<string, any> | undefined;
266
+ } | {
267
+ type: string;
268
+ file: string;
269
+ providerData?: Record<string, any> | undefined;
270
+ } | {
271
+ type: string;
272
+ id?: string | undefined;
273
+ name?: string | undefined;
274
+ input?: Record<string, any> | undefined;
275
+ } | {
276
+ type: string;
277
+ text: string;
278
+ annotations?: (string | Record<string, any>)[] | undefined;
279
+ cache_control?: {
280
+ type: string;
281
+ } | undefined;
282
+ } | {
283
+ type: string;
284
+ text: string;
285
+ })[] | undefined;
286
+ name?: string | undefined;
287
+ tool_call_id?: any;
288
+ tool_calls?: Record<string, any>[] | undefined;
289
+ experimental_providerMetadata?: {
290
+ anthropic: {
291
+ cacheControl: {
292
+ type: string;
293
+ };
294
+ };
295
+ } | undefined;
296
+ }>>;
297
+ declare const MetadataSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
298
+ declare const UsageSchema: z.ZodObject<{
299
+ prompt_tokens: z.ZodOptional<z.ZodNumber>;
300
+ completion_tokens: z.ZodOptional<z.ZodNumber>;
301
+ total_tokens: z.ZodOptional<z.ZodNumber>;
302
+ cache_creation_input_tokens: z.ZodOptional<z.ZodNumber>;
303
+ cache_creation_prompt_tokens: z.ZodOptional<z.ZodNumber>;
304
+ cache_read_input_tokens: z.ZodOptional<z.ZodNumber>;
305
+ completion_tokens_details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
306
+ prompt_tokens_details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
307
+ }, z.core.$strip>;
308
+ declare const OverrideConfigSchema: z.ZodObject<{
309
+ messages_override_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
310
+ override: "override";
311
+ append: "append";
312
+ }>>>;
313
+ }, z.core.$strip>;
314
+ declare const EvaluationParamsSchema: z.ZodObject<{
315
+ evaluators: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
316
+ evaluation_identifier: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
317
+ last_n_messages: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
318
+ eval_inputs: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
319
+ sample_percentage: z.ZodOptional<z.ZodNumber>;
320
+ }, z.core.$strip>;
321
+ declare const LoadBalanceModelSchema: z.ZodObject<{
322
+ model: z.ZodString;
323
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
324
+ weight: z.ZodNumber;
325
+ }, z.core.$strip>;
326
+ declare const LoadBalanceGroupSchema: z.ZodObject<{
327
+ group_id: z.ZodString;
328
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
329
+ model: z.ZodString;
330
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
331
+ weight: z.ZodNumber;
332
+ }, z.core.$strip>>>;
333
+ }, z.core.$strip>;
334
+ declare const PostHogIntegrationSchema: z.ZodObject<{
335
+ posthog_api_key: z.ZodString;
336
+ posthog_base_url: z.ZodString;
337
+ }, z.core.$strip>;
338
+ declare const CustomerSchema: z.ZodObject<{
339
+ customer_identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
340
+ name: z.ZodOptional<z.ZodString>;
341
+ email: z.ZodOptional<z.ZodString>;
342
+ period_start: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
343
+ period_end: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
344
+ budget_duration: z.ZodOptional<z.ZodEnum<{
345
+ daily: "daily";
346
+ weekly: "weekly";
347
+ monthly: "monthly";
348
+ yearly: "yearly";
349
+ }>>;
350
+ period_budget: z.ZodOptional<z.ZodNumber>;
351
+ markup_percentage: z.ZodOptional<z.ZodNumber>;
352
+ total_budget: z.ZodOptional<z.ZodNumber>;
353
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
354
+ rate_limit: z.ZodOptional<z.ZodNumber>;
355
+ }, z.core.$strip>;
356
+ declare const CacheOptionsSchema: z.ZodObject<{
357
+ cache_by_customer: z.ZodOptional<z.ZodBoolean>;
358
+ omit_log: z.ZodOptional<z.ZodBoolean>;
359
+ }, z.core.$strip>;
360
+ declare const RetryParamsSchema: z.ZodObject<{
361
+ num_retries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
362
+ retry_after: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
363
+ retry_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
364
+ }, z.core.$strip>;
365
+ declare const PromptParamSchema: z.ZodObject<{
366
+ prompt_id: z.ZodOptional<z.ZodString>;
367
+ is_custom_prompt: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
368
+ version: z.ZodOptional<z.ZodNumber>;
369
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
370
+ echo: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
371
+ override: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
372
+ override_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
373
+ override_config: z.ZodOptional<z.ZodObject<{
374
+ messages_override_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
375
+ override: "override";
376
+ append: "append";
377
+ }>>>;
378
+ }, z.core.$strip>>;
379
+ }, z.core.$strip>;
380
+ declare const BasicLLMParamsSchema: z.ZodObject<{
381
+ echo: z.ZodOptional<z.ZodBoolean>;
382
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
383
+ logprobs: z.ZodOptional<z.ZodBoolean>;
384
+ logit_bias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
385
+ messages: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
386
+ role: z.ZodString;
387
+ content: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
388
+ type: z.ZodString;
389
+ text: z.ZodString;
390
+ cache_control: z.ZodOptional<z.ZodObject<{
391
+ type: z.ZodString;
392
+ }, z.core.$strip>>;
393
+ }, z.core.$strip>, z.ZodObject<{
394
+ type: z.ZodString;
395
+ image_url: z.ZodUnion<readonly [z.ZodObject<{
396
+ url: z.ZodString;
397
+ detail: z.ZodOptional<z.ZodString>;
398
+ }, z.core.$strip>, z.ZodString]>;
399
+ }, z.core.$strip>, z.ZodObject<{
400
+ type: z.ZodString;
401
+ file: z.ZodString;
402
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
403
+ }, z.core.$strip>, z.ZodObject<{
404
+ type: z.ZodString;
405
+ id: z.ZodOptional<z.ZodString>;
406
+ name: z.ZodOptional<z.ZodString>;
407
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
408
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
409
+ type: z.ZodString;
410
+ tool_use_id: z.ZodAny;
411
+ content: z.ZodString;
412
+ }, z.core.$strip>, z.ZodTransform<{
413
+ type: any;
414
+ tool_use_id: any;
415
+ content: any;
416
+ }, {
417
+ type: string;
418
+ tool_use_id: any;
419
+ content: string;
420
+ }>>, z.ZodObject<{
421
+ type: z.ZodString;
422
+ text: z.ZodString;
423
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>>>;
424
+ cache_control: z.ZodOptional<z.ZodObject<{
425
+ type: z.ZodString;
426
+ }, z.core.$strip>>;
427
+ }, z.core.$strip>, z.ZodObject<{
428
+ type: z.ZodString;
429
+ file: z.ZodString;
430
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
431
+ }, z.core.$strip>, z.ZodObject<{
432
+ type: z.ZodString;
433
+ text: z.ZodString;
434
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>, z.ZodTransform<string | (Record<string, any> | {
435
+ type: any;
436
+ tool_use_id: any;
437
+ content: any;
438
+ } | {
439
+ type: string;
440
+ text: string;
441
+ cache_control?: {
442
+ type: string;
443
+ } | undefined;
444
+ } | {
445
+ type: string;
446
+ image_url: string | {
447
+ url: string;
448
+ detail?: string | undefined;
449
+ };
450
+ } | {
451
+ type: string;
452
+ file: string;
453
+ providerData?: Record<string, any> | undefined;
454
+ } | {
455
+ type: string;
456
+ file: string;
457
+ providerData?: Record<string, any> | undefined;
458
+ } | {
459
+ type: string;
460
+ id?: string | undefined;
461
+ name?: string | undefined;
462
+ input?: Record<string, any> | undefined;
463
+ } | {
464
+ type: string;
465
+ text: string;
466
+ annotations?: (string | Record<string, any>)[] | undefined;
467
+ cache_control?: {
468
+ type: string;
469
+ } | undefined;
470
+ } | {
471
+ type: string;
472
+ text: string;
473
+ })[], string | (Record<string, any> | {
474
+ type: any;
475
+ tool_use_id: any;
476
+ content: any;
477
+ } | {
478
+ type: string;
479
+ text: string;
480
+ cache_control?: {
481
+ type: string;
482
+ } | undefined;
483
+ } | {
484
+ type: string;
485
+ image_url: string | {
486
+ url: string;
487
+ detail?: string | undefined;
488
+ };
489
+ } | {
490
+ type: string;
491
+ file: string;
492
+ providerData?: Record<string, any> | undefined;
493
+ } | {
494
+ type: string;
495
+ file: string;
496
+ providerData?: Record<string, any> | undefined;
497
+ } | {
498
+ type: string;
499
+ id?: string | undefined;
500
+ name?: string | undefined;
501
+ input?: Record<string, any> | undefined;
502
+ } | {
503
+ type: string;
504
+ text: string;
505
+ annotations?: (string | Record<string, any>)[] | undefined;
506
+ cache_control?: {
507
+ type: string;
508
+ } | undefined;
509
+ } | {
510
+ type: string;
511
+ text: string;
512
+ })[]>>>;
513
+ name: z.ZodOptional<z.ZodString>;
514
+ tool_call_id: z.ZodOptional<z.ZodAny>;
515
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
516
+ experimental_providerMetadata: z.ZodOptional<z.ZodObject<{
517
+ anthropic: z.ZodObject<{
518
+ cacheControl: z.ZodObject<{
519
+ type: z.ZodString;
520
+ }, z.core.$strip>;
521
+ }, z.core.$strip>;
522
+ }, z.core.$strip>>;
523
+ }, z.core.$strip>, z.ZodTransform<{
524
+ role: string;
525
+ content?: string | (Record<string, any> | {
526
+ type: any;
527
+ tool_use_id: any;
528
+ content: any;
529
+ } | {
530
+ type: string;
531
+ text: string;
532
+ cache_control?: {
533
+ type: string;
534
+ } | undefined;
535
+ } | {
536
+ type: string;
537
+ image_url: string | {
538
+ url: string;
539
+ detail?: string | undefined;
540
+ };
541
+ } | {
542
+ type: string;
543
+ file: string;
544
+ providerData?: Record<string, any> | undefined;
545
+ } | {
546
+ type: string;
547
+ file: string;
548
+ providerData?: Record<string, any> | undefined;
549
+ } | {
550
+ type: string;
551
+ id?: string | undefined;
552
+ name?: string | undefined;
553
+ input?: Record<string, any> | undefined;
554
+ } | {
555
+ type: string;
556
+ text: string;
557
+ annotations?: (string | Record<string, any>)[] | undefined;
558
+ cache_control?: {
559
+ type: string;
560
+ } | undefined;
561
+ } | {
562
+ type: string;
563
+ text: string;
564
+ })[] | undefined;
565
+ name?: string | undefined;
566
+ tool_call_id?: any;
567
+ tool_calls?: Record<string, any>[] | undefined;
568
+ experimental_providerMetadata?: {
569
+ anthropic: {
570
+ cacheControl: {
571
+ type: string;
572
+ };
573
+ };
574
+ } | undefined;
575
+ }, {
576
+ role: string;
577
+ content?: string | (Record<string, any> | {
578
+ type: any;
579
+ tool_use_id: any;
580
+ content: any;
581
+ } | {
582
+ type: string;
583
+ text: string;
584
+ cache_control?: {
585
+ type: string;
586
+ } | undefined;
587
+ } | {
588
+ type: string;
589
+ image_url: string | {
590
+ url: string;
591
+ detail?: string | undefined;
592
+ };
593
+ } | {
594
+ type: string;
595
+ file: string;
596
+ providerData?: Record<string, any> | undefined;
597
+ } | {
598
+ type: string;
599
+ file: string;
600
+ providerData?: Record<string, any> | undefined;
601
+ } | {
602
+ type: string;
603
+ id?: string | undefined;
604
+ name?: string | undefined;
605
+ input?: Record<string, any> | undefined;
606
+ } | {
607
+ type: string;
608
+ text: string;
609
+ annotations?: (string | Record<string, any>)[] | undefined;
610
+ cache_control?: {
611
+ type: string;
612
+ } | undefined;
613
+ } | {
614
+ type: string;
615
+ text: string;
616
+ })[] | undefined;
617
+ name?: string | undefined;
618
+ tool_call_id?: any;
619
+ tool_calls?: Record<string, any>[] | undefined;
620
+ experimental_providerMetadata?: {
621
+ anthropic: {
622
+ cacheControl: {
623
+ type: string;
624
+ };
625
+ };
626
+ } | undefined;
627
+ }>>>>;
628
+ model: z.ZodOptional<z.ZodString>;
629
+ max_tokens: z.ZodOptional<z.ZodNumber>;
630
+ max_completion_tokens: z.ZodOptional<z.ZodNumber>;
631
+ n: z.ZodOptional<z.ZodNumber>;
632
+ parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
633
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
634
+ stop: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>;
635
+ stream: z.ZodOptional<z.ZodBoolean>;
636
+ stream_options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
637
+ temperature: z.ZodOptional<z.ZodNumber>;
638
+ timeout: z.ZodOptional<z.ZodNumber>;
639
+ tools: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
640
+ type: z.ZodLiteral<"function">;
641
+ function: z.ZodObject<{
642
+ name: z.ZodString;
643
+ description: z.ZodOptional<z.ZodString>;
644
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
645
+ }, z.core.$strip>;
646
+ }, z.core.$strip>, z.ZodObject<{
647
+ type: z.ZodLiteral<"function">;
648
+ name: z.ZodString;
649
+ description: z.ZodOptional<z.ZodString>;
650
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
651
+ }, z.core.$strip>]>, z.ZodTransform<any, {
652
+ type: "function";
653
+ function: {
654
+ name: string;
655
+ description?: string | undefined;
656
+ parameters?: Record<string, any> | undefined;
657
+ };
658
+ } | {
659
+ type: "function";
660
+ name: string;
661
+ description?: string | undefined;
662
+ parameters?: Record<string, any> | undefined;
663
+ }>>>>;
664
+ response_format: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
665
+ reasoning_effort: z.ZodOptional<z.ZodString>;
666
+ tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
667
+ auto: "auto";
668
+ none: "none";
669
+ required: "required";
670
+ }>, z.ZodOptional<z.ZodObject<{
671
+ type: z.ZodString;
672
+ function: z.ZodOptional<z.ZodObject<{
673
+ name: z.ZodString;
674
+ }, z.core.$strip>>;
675
+ }, z.core.$strip>>]>>;
676
+ top_logprobs: z.ZodOptional<z.ZodNumber>;
677
+ top_p: z.ZodOptional<z.ZodNumber>;
678
+ }, z.core.$strip>;
679
+ declare const BasicEmbeddingParamsSchema: z.ZodObject<{
680
+ input: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
681
+ model: z.ZodOptional<z.ZodString>;
682
+ encoding_format: z.ZodOptional<z.ZodString>;
683
+ dimensions: z.ZodOptional<z.ZodNumber>;
684
+ user: z.ZodOptional<z.ZodString>;
685
+ }, z.core.$strip>;
686
+ declare const RespanParamsSchema: z.ZodObject<{
687
+ start_time: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
688
+ timestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
689
+ custom_identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
690
+ response_id: z.ZodOptional<z.ZodString>;
691
+ error_message: z.ZodOptional<z.ZodString>;
692
+ warnings: z.ZodOptional<z.ZodString>;
693
+ status_code: z.ZodOptional<z.ZodNumber>;
694
+ group_identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
695
+ evaluation_identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
696
+ input: z.ZodOptional<z.ZodString>;
697
+ output: z.ZodOptional<z.ZodString>;
698
+ prompt_messages: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
699
+ role: z.ZodString;
700
+ content: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
701
+ type: z.ZodString;
702
+ text: z.ZodString;
703
+ cache_control: z.ZodOptional<z.ZodObject<{
704
+ type: z.ZodString;
705
+ }, z.core.$strip>>;
706
+ }, z.core.$strip>, z.ZodObject<{
707
+ type: z.ZodString;
708
+ image_url: z.ZodUnion<readonly [z.ZodObject<{
709
+ url: z.ZodString;
710
+ detail: z.ZodOptional<z.ZodString>;
711
+ }, z.core.$strip>, z.ZodString]>;
712
+ }, z.core.$strip>, z.ZodObject<{
713
+ type: z.ZodString;
714
+ file: z.ZodString;
715
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
716
+ }, z.core.$strip>, z.ZodObject<{
717
+ type: z.ZodString;
718
+ id: z.ZodOptional<z.ZodString>;
719
+ name: z.ZodOptional<z.ZodString>;
720
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
721
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
722
+ type: z.ZodString;
723
+ tool_use_id: z.ZodAny;
724
+ content: z.ZodString;
725
+ }, z.core.$strip>, z.ZodTransform<{
726
+ type: any;
727
+ tool_use_id: any;
728
+ content: any;
729
+ }, {
730
+ type: string;
731
+ tool_use_id: any;
732
+ content: string;
733
+ }>>, z.ZodObject<{
734
+ type: z.ZodString;
735
+ text: z.ZodString;
736
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>>>;
737
+ cache_control: z.ZodOptional<z.ZodObject<{
738
+ type: z.ZodString;
739
+ }, z.core.$strip>>;
740
+ }, z.core.$strip>, z.ZodObject<{
741
+ type: z.ZodString;
742
+ file: z.ZodString;
743
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
744
+ }, z.core.$strip>, z.ZodObject<{
745
+ type: z.ZodString;
746
+ text: z.ZodString;
747
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>, z.ZodTransform<string | (Record<string, any> | {
748
+ type: any;
749
+ tool_use_id: any;
750
+ content: any;
751
+ } | {
752
+ type: string;
753
+ text: string;
754
+ cache_control?: {
755
+ type: string;
756
+ } | undefined;
757
+ } | {
758
+ type: string;
759
+ image_url: string | {
760
+ url: string;
761
+ detail?: string | undefined;
762
+ };
763
+ } | {
764
+ type: string;
765
+ file: string;
766
+ providerData?: Record<string, any> | undefined;
767
+ } | {
768
+ type: string;
769
+ file: string;
770
+ providerData?: Record<string, any> | undefined;
771
+ } | {
772
+ type: string;
773
+ id?: string | undefined;
774
+ name?: string | undefined;
775
+ input?: Record<string, any> | undefined;
776
+ } | {
777
+ type: string;
778
+ text: string;
779
+ annotations?: (string | Record<string, any>)[] | undefined;
780
+ cache_control?: {
781
+ type: string;
782
+ } | undefined;
783
+ } | {
784
+ type: string;
785
+ text: string;
786
+ })[], string | (Record<string, any> | {
787
+ type: any;
788
+ tool_use_id: any;
789
+ content: any;
790
+ } | {
791
+ type: string;
792
+ text: string;
793
+ cache_control?: {
794
+ type: string;
795
+ } | undefined;
796
+ } | {
797
+ type: string;
798
+ image_url: string | {
799
+ url: string;
800
+ detail?: string | undefined;
801
+ };
802
+ } | {
803
+ type: string;
804
+ file: string;
805
+ providerData?: Record<string, any> | undefined;
806
+ } | {
807
+ type: string;
808
+ file: string;
809
+ providerData?: Record<string, any> | undefined;
810
+ } | {
811
+ type: string;
812
+ id?: string | undefined;
813
+ name?: string | undefined;
814
+ input?: Record<string, any> | undefined;
815
+ } | {
816
+ type: string;
817
+ text: string;
818
+ annotations?: (string | Record<string, any>)[] | undefined;
819
+ cache_control?: {
820
+ type: string;
821
+ } | undefined;
822
+ } | {
823
+ type: string;
824
+ text: string;
825
+ })[]>>>;
826
+ name: z.ZodOptional<z.ZodString>;
827
+ tool_call_id: z.ZodOptional<z.ZodAny>;
828
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
829
+ experimental_providerMetadata: z.ZodOptional<z.ZodObject<{
830
+ anthropic: z.ZodObject<{
831
+ cacheControl: z.ZodObject<{
832
+ type: z.ZodString;
833
+ }, z.core.$strip>;
834
+ }, z.core.$strip>;
835
+ }, z.core.$strip>>;
836
+ }, z.core.$strip>, z.ZodTransform<{
837
+ role: string;
838
+ content?: string | (Record<string, any> | {
839
+ type: any;
840
+ tool_use_id: any;
841
+ content: any;
842
+ } | {
843
+ type: string;
844
+ text: string;
845
+ cache_control?: {
846
+ type: string;
847
+ } | undefined;
848
+ } | {
849
+ type: string;
850
+ image_url: string | {
851
+ url: string;
852
+ detail?: string | undefined;
853
+ };
854
+ } | {
855
+ type: string;
856
+ file: string;
857
+ providerData?: Record<string, any> | undefined;
858
+ } | {
859
+ type: string;
860
+ file: string;
861
+ providerData?: Record<string, any> | undefined;
862
+ } | {
863
+ type: string;
864
+ id?: string | undefined;
865
+ name?: string | undefined;
866
+ input?: Record<string, any> | undefined;
867
+ } | {
868
+ type: string;
869
+ text: string;
870
+ annotations?: (string | Record<string, any>)[] | undefined;
871
+ cache_control?: {
872
+ type: string;
873
+ } | undefined;
874
+ } | {
875
+ type: string;
876
+ text: string;
877
+ })[] | undefined;
878
+ name?: string | undefined;
879
+ tool_call_id?: any;
880
+ tool_calls?: Record<string, any>[] | undefined;
881
+ experimental_providerMetadata?: {
882
+ anthropic: {
883
+ cacheControl: {
884
+ type: string;
885
+ };
886
+ };
887
+ } | undefined;
888
+ }, {
889
+ role: string;
890
+ content?: string | (Record<string, any> | {
891
+ type: any;
892
+ tool_use_id: any;
893
+ content: any;
894
+ } | {
895
+ type: string;
896
+ text: string;
897
+ cache_control?: {
898
+ type: string;
899
+ } | undefined;
900
+ } | {
901
+ type: string;
902
+ image_url: string | {
903
+ url: string;
904
+ detail?: string | undefined;
905
+ };
906
+ } | {
907
+ type: string;
908
+ file: string;
909
+ providerData?: Record<string, any> | undefined;
910
+ } | {
911
+ type: string;
912
+ file: string;
913
+ providerData?: Record<string, any> | undefined;
914
+ } | {
915
+ type: string;
916
+ id?: string | undefined;
917
+ name?: string | undefined;
918
+ input?: Record<string, any> | undefined;
919
+ } | {
920
+ type: string;
921
+ text: string;
922
+ annotations?: (string | Record<string, any>)[] | undefined;
923
+ cache_control?: {
924
+ type: string;
925
+ } | undefined;
926
+ } | {
927
+ type: string;
928
+ text: string;
929
+ })[] | undefined;
930
+ name?: string | undefined;
931
+ tool_call_id?: any;
932
+ tool_calls?: Record<string, any>[] | undefined;
933
+ experimental_providerMetadata?: {
934
+ anthropic: {
935
+ cacheControl: {
936
+ type: string;
937
+ };
938
+ };
939
+ } | undefined;
940
+ }>>>>;
941
+ completion_message: z.ZodOptional<z.ZodPipe<z.ZodObject<{
942
+ role: z.ZodString;
943
+ content: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
944
+ type: z.ZodString;
945
+ text: z.ZodString;
946
+ cache_control: z.ZodOptional<z.ZodObject<{
947
+ type: z.ZodString;
948
+ }, z.core.$strip>>;
949
+ }, z.core.$strip>, z.ZodObject<{
950
+ type: z.ZodString;
951
+ image_url: z.ZodUnion<readonly [z.ZodObject<{
952
+ url: z.ZodString;
953
+ detail: z.ZodOptional<z.ZodString>;
954
+ }, z.core.$strip>, z.ZodString]>;
955
+ }, z.core.$strip>, z.ZodObject<{
956
+ type: z.ZodString;
957
+ file: z.ZodString;
958
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
959
+ }, z.core.$strip>, z.ZodObject<{
960
+ type: z.ZodString;
961
+ id: z.ZodOptional<z.ZodString>;
962
+ name: z.ZodOptional<z.ZodString>;
963
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
964
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
965
+ type: z.ZodString;
966
+ tool_use_id: z.ZodAny;
967
+ content: z.ZodString;
968
+ }, z.core.$strip>, z.ZodTransform<{
969
+ type: any;
970
+ tool_use_id: any;
971
+ content: any;
972
+ }, {
973
+ type: string;
974
+ tool_use_id: any;
975
+ content: string;
976
+ }>>, z.ZodObject<{
977
+ type: z.ZodString;
978
+ text: z.ZodString;
979
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>>>;
980
+ cache_control: z.ZodOptional<z.ZodObject<{
981
+ type: z.ZodString;
982
+ }, z.core.$strip>>;
983
+ }, z.core.$strip>, z.ZodObject<{
984
+ type: z.ZodString;
985
+ file: z.ZodString;
986
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
987
+ }, z.core.$strip>, z.ZodObject<{
988
+ type: z.ZodString;
989
+ text: z.ZodString;
990
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>, z.ZodTransform<string | (Record<string, any> | {
991
+ type: any;
992
+ tool_use_id: any;
993
+ content: any;
994
+ } | {
995
+ type: string;
996
+ text: string;
997
+ cache_control?: {
998
+ type: string;
999
+ } | undefined;
1000
+ } | {
1001
+ type: string;
1002
+ image_url: string | {
1003
+ url: string;
1004
+ detail?: string | undefined;
1005
+ };
1006
+ } | {
1007
+ type: string;
1008
+ file: string;
1009
+ providerData?: Record<string, any> | undefined;
1010
+ } | {
1011
+ type: string;
1012
+ file: string;
1013
+ providerData?: Record<string, any> | undefined;
1014
+ } | {
1015
+ type: string;
1016
+ id?: string | undefined;
1017
+ name?: string | undefined;
1018
+ input?: Record<string, any> | undefined;
1019
+ } | {
1020
+ type: string;
1021
+ text: string;
1022
+ annotations?: (string | Record<string, any>)[] | undefined;
1023
+ cache_control?: {
1024
+ type: string;
1025
+ } | undefined;
1026
+ } | {
1027
+ type: string;
1028
+ text: string;
1029
+ })[], string | (Record<string, any> | {
1030
+ type: any;
1031
+ tool_use_id: any;
1032
+ content: any;
1033
+ } | {
1034
+ type: string;
1035
+ text: string;
1036
+ cache_control?: {
1037
+ type: string;
1038
+ } | undefined;
1039
+ } | {
1040
+ type: string;
1041
+ image_url: string | {
1042
+ url: string;
1043
+ detail?: string | undefined;
1044
+ };
1045
+ } | {
1046
+ type: string;
1047
+ file: string;
1048
+ providerData?: Record<string, any> | undefined;
1049
+ } | {
1050
+ type: string;
1051
+ file: string;
1052
+ providerData?: Record<string, any> | undefined;
1053
+ } | {
1054
+ type: string;
1055
+ id?: string | undefined;
1056
+ name?: string | undefined;
1057
+ input?: Record<string, any> | undefined;
1058
+ } | {
1059
+ type: string;
1060
+ text: string;
1061
+ annotations?: (string | Record<string, any>)[] | undefined;
1062
+ cache_control?: {
1063
+ type: string;
1064
+ } | undefined;
1065
+ } | {
1066
+ type: string;
1067
+ text: string;
1068
+ })[]>>>;
1069
+ name: z.ZodOptional<z.ZodString>;
1070
+ tool_call_id: z.ZodOptional<z.ZodAny>;
1071
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1072
+ experimental_providerMetadata: z.ZodOptional<z.ZodObject<{
1073
+ anthropic: z.ZodObject<{
1074
+ cacheControl: z.ZodObject<{
1075
+ type: z.ZodString;
1076
+ }, z.core.$strip>;
1077
+ }, z.core.$strip>;
1078
+ }, z.core.$strip>>;
1079
+ }, z.core.$strip>, z.ZodTransform<{
1080
+ role: string;
1081
+ content?: string | (Record<string, any> | {
1082
+ type: any;
1083
+ tool_use_id: any;
1084
+ content: any;
1085
+ } | {
1086
+ type: string;
1087
+ text: string;
1088
+ cache_control?: {
1089
+ type: string;
1090
+ } | undefined;
1091
+ } | {
1092
+ type: string;
1093
+ image_url: string | {
1094
+ url: string;
1095
+ detail?: string | undefined;
1096
+ };
1097
+ } | {
1098
+ type: string;
1099
+ file: string;
1100
+ providerData?: Record<string, any> | undefined;
1101
+ } | {
1102
+ type: string;
1103
+ file: string;
1104
+ providerData?: Record<string, any> | undefined;
1105
+ } | {
1106
+ type: string;
1107
+ id?: string | undefined;
1108
+ name?: string | undefined;
1109
+ input?: Record<string, any> | undefined;
1110
+ } | {
1111
+ type: string;
1112
+ text: string;
1113
+ annotations?: (string | Record<string, any>)[] | undefined;
1114
+ cache_control?: {
1115
+ type: string;
1116
+ } | undefined;
1117
+ } | {
1118
+ type: string;
1119
+ text: string;
1120
+ })[] | undefined;
1121
+ name?: string | undefined;
1122
+ tool_call_id?: any;
1123
+ tool_calls?: Record<string, any>[] | undefined;
1124
+ experimental_providerMetadata?: {
1125
+ anthropic: {
1126
+ cacheControl: {
1127
+ type: string;
1128
+ };
1129
+ };
1130
+ } | undefined;
1131
+ }, {
1132
+ role: string;
1133
+ content?: string | (Record<string, any> | {
1134
+ type: any;
1135
+ tool_use_id: any;
1136
+ content: any;
1137
+ } | {
1138
+ type: string;
1139
+ text: string;
1140
+ cache_control?: {
1141
+ type: string;
1142
+ } | undefined;
1143
+ } | {
1144
+ type: string;
1145
+ image_url: string | {
1146
+ url: string;
1147
+ detail?: string | undefined;
1148
+ };
1149
+ } | {
1150
+ type: string;
1151
+ file: string;
1152
+ providerData?: Record<string, any> | undefined;
1153
+ } | {
1154
+ type: string;
1155
+ file: string;
1156
+ providerData?: Record<string, any> | undefined;
1157
+ } | {
1158
+ type: string;
1159
+ id?: string | undefined;
1160
+ name?: string | undefined;
1161
+ input?: Record<string, any> | undefined;
1162
+ } | {
1163
+ type: string;
1164
+ text: string;
1165
+ annotations?: (string | Record<string, any>)[] | undefined;
1166
+ cache_control?: {
1167
+ type: string;
1168
+ } | undefined;
1169
+ } | {
1170
+ type: string;
1171
+ text: string;
1172
+ })[] | undefined;
1173
+ name?: string | undefined;
1174
+ tool_call_id?: any;
1175
+ tool_calls?: Record<string, any>[] | undefined;
1176
+ experimental_providerMetadata?: {
1177
+ anthropic: {
1178
+ cacheControl: {
1179
+ type: string;
1180
+ };
1181
+ };
1182
+ } | undefined;
1183
+ }>>>;
1184
+ completion_messages: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
1185
+ role: z.ZodString;
1186
+ content: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1187
+ type: z.ZodString;
1188
+ text: z.ZodString;
1189
+ cache_control: z.ZodOptional<z.ZodObject<{
1190
+ type: z.ZodString;
1191
+ }, z.core.$strip>>;
1192
+ }, z.core.$strip>, z.ZodObject<{
1193
+ type: z.ZodString;
1194
+ image_url: z.ZodUnion<readonly [z.ZodObject<{
1195
+ url: z.ZodString;
1196
+ detail: z.ZodOptional<z.ZodString>;
1197
+ }, z.core.$strip>, z.ZodString]>;
1198
+ }, z.core.$strip>, z.ZodObject<{
1199
+ type: z.ZodString;
1200
+ file: z.ZodString;
1201
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1202
+ }, z.core.$strip>, z.ZodObject<{
1203
+ type: z.ZodString;
1204
+ id: z.ZodOptional<z.ZodString>;
1205
+ name: z.ZodOptional<z.ZodString>;
1206
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1207
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
1208
+ type: z.ZodString;
1209
+ tool_use_id: z.ZodAny;
1210
+ content: z.ZodString;
1211
+ }, z.core.$strip>, z.ZodTransform<{
1212
+ type: any;
1213
+ tool_use_id: any;
1214
+ content: any;
1215
+ }, {
1216
+ type: string;
1217
+ tool_use_id: any;
1218
+ content: string;
1219
+ }>>, z.ZodObject<{
1220
+ type: z.ZodString;
1221
+ text: z.ZodString;
1222
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>>>;
1223
+ cache_control: z.ZodOptional<z.ZodObject<{
1224
+ type: z.ZodString;
1225
+ }, z.core.$strip>>;
1226
+ }, z.core.$strip>, z.ZodObject<{
1227
+ type: z.ZodString;
1228
+ file: z.ZodString;
1229
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1230
+ }, z.core.$strip>, z.ZodObject<{
1231
+ type: z.ZodString;
1232
+ text: z.ZodString;
1233
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>, z.ZodTransform<string | (Record<string, any> | {
1234
+ type: any;
1235
+ tool_use_id: any;
1236
+ content: any;
1237
+ } | {
1238
+ type: string;
1239
+ text: string;
1240
+ cache_control?: {
1241
+ type: string;
1242
+ } | undefined;
1243
+ } | {
1244
+ type: string;
1245
+ image_url: string | {
1246
+ url: string;
1247
+ detail?: string | undefined;
1248
+ };
1249
+ } | {
1250
+ type: string;
1251
+ file: string;
1252
+ providerData?: Record<string, any> | undefined;
1253
+ } | {
1254
+ type: string;
1255
+ file: string;
1256
+ providerData?: Record<string, any> | undefined;
1257
+ } | {
1258
+ type: string;
1259
+ id?: string | undefined;
1260
+ name?: string | undefined;
1261
+ input?: Record<string, any> | undefined;
1262
+ } | {
1263
+ type: string;
1264
+ text: string;
1265
+ annotations?: (string | Record<string, any>)[] | undefined;
1266
+ cache_control?: {
1267
+ type: string;
1268
+ } | undefined;
1269
+ } | {
1270
+ type: string;
1271
+ text: string;
1272
+ })[], string | (Record<string, any> | {
1273
+ type: any;
1274
+ tool_use_id: any;
1275
+ content: any;
1276
+ } | {
1277
+ type: string;
1278
+ text: string;
1279
+ cache_control?: {
1280
+ type: string;
1281
+ } | undefined;
1282
+ } | {
1283
+ type: string;
1284
+ image_url: string | {
1285
+ url: string;
1286
+ detail?: string | undefined;
1287
+ };
1288
+ } | {
1289
+ type: string;
1290
+ file: string;
1291
+ providerData?: Record<string, any> | undefined;
1292
+ } | {
1293
+ type: string;
1294
+ file: string;
1295
+ providerData?: Record<string, any> | undefined;
1296
+ } | {
1297
+ type: string;
1298
+ id?: string | undefined;
1299
+ name?: string | undefined;
1300
+ input?: Record<string, any> | undefined;
1301
+ } | {
1302
+ type: string;
1303
+ text: string;
1304
+ annotations?: (string | Record<string, any>)[] | undefined;
1305
+ cache_control?: {
1306
+ type: string;
1307
+ } | undefined;
1308
+ } | {
1309
+ type: string;
1310
+ text: string;
1311
+ })[]>>>;
1312
+ name: z.ZodOptional<z.ZodString>;
1313
+ tool_call_id: z.ZodOptional<z.ZodAny>;
1314
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1315
+ experimental_providerMetadata: z.ZodOptional<z.ZodObject<{
1316
+ anthropic: z.ZodObject<{
1317
+ cacheControl: z.ZodObject<{
1318
+ type: z.ZodString;
1319
+ }, z.core.$strip>;
1320
+ }, z.core.$strip>;
1321
+ }, z.core.$strip>>;
1322
+ }, z.core.$strip>, z.ZodTransform<{
1323
+ role: string;
1324
+ content?: string | (Record<string, any> | {
1325
+ type: any;
1326
+ tool_use_id: any;
1327
+ content: any;
1328
+ } | {
1329
+ type: string;
1330
+ text: string;
1331
+ cache_control?: {
1332
+ type: string;
1333
+ } | undefined;
1334
+ } | {
1335
+ type: string;
1336
+ image_url: string | {
1337
+ url: string;
1338
+ detail?: string | undefined;
1339
+ };
1340
+ } | {
1341
+ type: string;
1342
+ file: string;
1343
+ providerData?: Record<string, any> | undefined;
1344
+ } | {
1345
+ type: string;
1346
+ file: string;
1347
+ providerData?: Record<string, any> | undefined;
1348
+ } | {
1349
+ type: string;
1350
+ id?: string | undefined;
1351
+ name?: string | undefined;
1352
+ input?: Record<string, any> | undefined;
1353
+ } | {
1354
+ type: string;
1355
+ text: string;
1356
+ annotations?: (string | Record<string, any>)[] | undefined;
1357
+ cache_control?: {
1358
+ type: string;
1359
+ } | undefined;
1360
+ } | {
1361
+ type: string;
1362
+ text: string;
1363
+ })[] | undefined;
1364
+ name?: string | undefined;
1365
+ tool_call_id?: any;
1366
+ tool_calls?: Record<string, any>[] | undefined;
1367
+ experimental_providerMetadata?: {
1368
+ anthropic: {
1369
+ cacheControl: {
1370
+ type: string;
1371
+ };
1372
+ };
1373
+ } | undefined;
1374
+ }, {
1375
+ role: string;
1376
+ content?: string | (Record<string, any> | {
1377
+ type: any;
1378
+ tool_use_id: any;
1379
+ content: any;
1380
+ } | {
1381
+ type: string;
1382
+ text: string;
1383
+ cache_control?: {
1384
+ type: string;
1385
+ } | undefined;
1386
+ } | {
1387
+ type: string;
1388
+ image_url: string | {
1389
+ url: string;
1390
+ detail?: string | undefined;
1391
+ };
1392
+ } | {
1393
+ type: string;
1394
+ file: string;
1395
+ providerData?: Record<string, any> | undefined;
1396
+ } | {
1397
+ type: string;
1398
+ file: string;
1399
+ providerData?: Record<string, any> | undefined;
1400
+ } | {
1401
+ type: string;
1402
+ id?: string | undefined;
1403
+ name?: string | undefined;
1404
+ input?: Record<string, any> | undefined;
1405
+ } | {
1406
+ type: string;
1407
+ text: string;
1408
+ annotations?: (string | Record<string, any>)[] | undefined;
1409
+ cache_control?: {
1410
+ type: string;
1411
+ } | undefined;
1412
+ } | {
1413
+ type: string;
1414
+ text: string;
1415
+ })[] | undefined;
1416
+ name?: string | undefined;
1417
+ tool_call_id?: any;
1418
+ tool_calls?: Record<string, any>[] | undefined;
1419
+ experimental_providerMetadata?: {
1420
+ anthropic: {
1421
+ cacheControl: {
1422
+ type: string;
1423
+ };
1424
+ };
1425
+ } | undefined;
1426
+ }>>>>;
1427
+ completion_tokens: z.ZodOptional<z.ZodNumber>;
1428
+ full_request: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
1429
+ full_response: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
1430
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1431
+ reasoning: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1432
+ cache_enabled: z.ZodOptional<z.ZodBoolean>;
1433
+ cache_options: z.ZodOptional<z.ZodObject<{
1434
+ cache_by_customer: z.ZodOptional<z.ZodBoolean>;
1435
+ omit_log: z.ZodOptional<z.ZodBoolean>;
1436
+ }, z.core.$strip>>;
1437
+ cache_ttl: z.ZodOptional<z.ZodNumber>;
1438
+ cost: z.ZodOptional<z.ZodNumber>;
1439
+ prompt_unit_price: z.ZodOptional<z.ZodNumber>;
1440
+ completion_unit_price: z.ZodOptional<z.ZodNumber>;
1441
+ prompt_tokens: z.ZodOptional<z.ZodNumber>;
1442
+ prompt_cache_hit_tokens: z.ZodOptional<z.ZodNumber>;
1443
+ prompt_cache_creation_tokens: z.ZodOptional<z.ZodNumber>;
1444
+ usage: z.ZodOptional<z.ZodObject<{
1445
+ prompt_tokens: z.ZodOptional<z.ZodNumber>;
1446
+ completion_tokens: z.ZodOptional<z.ZodNumber>;
1447
+ total_tokens: z.ZodOptional<z.ZodNumber>;
1448
+ cache_creation_input_tokens: z.ZodOptional<z.ZodNumber>;
1449
+ cache_creation_prompt_tokens: z.ZodOptional<z.ZodNumber>;
1450
+ cache_read_input_tokens: z.ZodOptional<z.ZodNumber>;
1451
+ completion_tokens_details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1452
+ prompt_tokens_details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1453
+ }, z.core.$strip>>;
1454
+ customer_email: z.ZodOptional<z.ZodString>;
1455
+ customer_name: z.ZodOptional<z.ZodString>;
1456
+ customer_identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1457
+ customer_params: z.ZodOptional<z.ZodObject<{
1458
+ customer_identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1459
+ name: z.ZodOptional<z.ZodString>;
1460
+ email: z.ZodOptional<z.ZodString>;
1461
+ period_start: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
1462
+ period_end: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
1463
+ budget_duration: z.ZodOptional<z.ZodEnum<{
1464
+ daily: "daily";
1465
+ weekly: "weekly";
1466
+ monthly: "monthly";
1467
+ yearly: "yearly";
1468
+ }>>;
1469
+ period_budget: z.ZodOptional<z.ZodNumber>;
1470
+ markup_percentage: z.ZodOptional<z.ZodNumber>;
1471
+ total_budget: z.ZodOptional<z.ZodNumber>;
1472
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1473
+ rate_limit: z.ZodOptional<z.ZodNumber>;
1474
+ }, z.core.$strip>>;
1475
+ field_name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1476
+ delimiter: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1477
+ disable_log: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1478
+ request_breakdown: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1479
+ respan_api_controls: z.ZodOptional<z.ZodObject<{
1480
+ block: z.ZodOptional<z.ZodBoolean>;
1481
+ }, z.core.$strip>>;
1482
+ log_method: z.ZodOptional<z.ZodEnum<{
1483
+ inference: "inference";
1484
+ logging_api: "logging_api";
1485
+ batch: "batch";
1486
+ python_tracing: "python_tracing";
1487
+ ts_tracing: "ts_tracing";
1488
+ }>>;
1489
+ log_type: z.ZodOptional<z.ZodEnum<{
1490
+ function: "function";
1491
+ text: "text";
1492
+ chat: "chat";
1493
+ completion: "completion";
1494
+ response: "response";
1495
+ embedding: "embedding";
1496
+ transcription: "transcription";
1497
+ speech: "speech";
1498
+ workflow: "workflow";
1499
+ task: "task";
1500
+ tool: "tool";
1501
+ agent: "agent";
1502
+ handoff: "handoff";
1503
+ guardrail: "guardrail";
1504
+ custom: "custom";
1505
+ generation: "generation";
1506
+ unknown: "unknown";
1507
+ }>>;
1508
+ disable_fallback: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1509
+ exclude_models: z.ZodOptional<z.ZodArray<z.ZodString>>;
1510
+ exclude_providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1511
+ fallback_models: z.ZodOptional<z.ZodArray<z.ZodString>>;
1512
+ load_balance_group: z.ZodOptional<z.ZodObject<{
1513
+ group_id: z.ZodString;
1514
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
1515
+ model: z.ZodString;
1516
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1517
+ weight: z.ZodNumber;
1518
+ }, z.core.$strip>>>;
1519
+ }, z.core.$strip>>;
1520
+ load_balance_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
1521
+ model: z.ZodString;
1522
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1523
+ weight: z.ZodNumber;
1524
+ }, z.core.$strip>>>;
1525
+ retry_params: z.ZodOptional<z.ZodObject<{
1526
+ num_retries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1527
+ retry_after: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1528
+ retry_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1529
+ }, z.core.$strip>>;
1530
+ respan_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1531
+ model_name_map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1532
+ embedding: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1533
+ provider_id: z.ZodOptional<z.ZodString>;
1534
+ audio_input_file: z.ZodOptional<z.ZodString>;
1535
+ audio_output_file: z.ZodOptional<z.ZodString>;
1536
+ note: z.ZodOptional<z.ZodString>;
1537
+ category: z.ZodOptional<z.ZodString>;
1538
+ eval_params: z.ZodOptional<z.ZodObject<{
1539
+ evaluators: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
1540
+ evaluation_identifier: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1541
+ last_n_messages: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1542
+ eval_inputs: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1543
+ sample_percentage: z.ZodOptional<z.ZodNumber>;
1544
+ }, z.core.$strip>>;
1545
+ for_eval: z.ZodOptional<z.ZodBoolean>;
1546
+ positive_feedback: z.ZodOptional<z.ZodBoolean>;
1547
+ linkup_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1548
+ mem0_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1549
+ posthog_integration: z.ZodOptional<z.ZodObject<{
1550
+ posthog_api_key: z.ZodString;
1551
+ posthog_base_url: z.ZodString;
1552
+ }, z.core.$strip>>;
1553
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1554
+ prompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1555
+ prompt_id: z.ZodOptional<z.ZodString>;
1556
+ is_custom_prompt: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1557
+ version: z.ZodOptional<z.ZodNumber>;
1558
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1559
+ echo: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1560
+ override: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1561
+ override_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1562
+ override_config: z.ZodOptional<z.ZodObject<{
1563
+ messages_override_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1564
+ override: "override";
1565
+ append: "append";
1566
+ }>>>;
1567
+ }, z.core.$strip>>;
1568
+ }, z.core.$strip>, z.ZodString]>>;
1569
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1570
+ generation_time: z.ZodOptional<z.ZodNumber>;
1571
+ latency: z.ZodOptional<z.ZodNumber>;
1572
+ ttft: z.ZodOptional<z.ZodNumber>;
1573
+ time_to_first_token: z.ZodOptional<z.ZodNumber>;
1574
+ routing_time: z.ZodOptional<z.ZodNumber>;
1575
+ tokens_per_second: z.ZodOptional<z.ZodNumber>;
1576
+ trace_unique_id: z.ZodOptional<z.ZodString>;
1577
+ trace_name: z.ZodOptional<z.ZodString>;
1578
+ trace_group_identifier: z.ZodOptional<z.ZodString>;
1579
+ span_unique_id: z.ZodOptional<z.ZodString>;
1580
+ span_name: z.ZodOptional<z.ZodString>;
1581
+ span_parent_id: z.ZodOptional<z.ZodString>;
1582
+ span_path: z.ZodOptional<z.ZodString>;
1583
+ span_handoffs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1584
+ span_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1585
+ span_workflow_name: z.ZodOptional<z.ZodString>;
1586
+ thread_identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1587
+ }, z.core.$strip>;
1588
+ export declare const RespanPayloadSchema: z.ZodObject<{
1589
+ start_time: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
1590
+ timestamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
1591
+ custom_identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1592
+ response_id: z.ZodOptional<z.ZodString>;
1593
+ error_message: z.ZodOptional<z.ZodString>;
1594
+ warnings: z.ZodOptional<z.ZodString>;
1595
+ status_code: z.ZodOptional<z.ZodNumber>;
1596
+ group_identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1597
+ evaluation_identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1598
+ output: z.ZodOptional<z.ZodString>;
1599
+ prompt_messages: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
1600
+ role: z.ZodString;
1601
+ content: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1602
+ type: z.ZodString;
1603
+ text: z.ZodString;
1604
+ cache_control: z.ZodOptional<z.ZodObject<{
1605
+ type: z.ZodString;
1606
+ }, z.core.$strip>>;
1607
+ }, z.core.$strip>, z.ZodObject<{
1608
+ type: z.ZodString;
1609
+ image_url: z.ZodUnion<readonly [z.ZodObject<{
1610
+ url: z.ZodString;
1611
+ detail: z.ZodOptional<z.ZodString>;
1612
+ }, z.core.$strip>, z.ZodString]>;
1613
+ }, z.core.$strip>, z.ZodObject<{
1614
+ type: z.ZodString;
1615
+ file: z.ZodString;
1616
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1617
+ }, z.core.$strip>, z.ZodObject<{
1618
+ type: z.ZodString;
1619
+ id: z.ZodOptional<z.ZodString>;
1620
+ name: z.ZodOptional<z.ZodString>;
1621
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1622
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
1623
+ type: z.ZodString;
1624
+ tool_use_id: z.ZodAny;
1625
+ content: z.ZodString;
1626
+ }, z.core.$strip>, z.ZodTransform<{
1627
+ type: any;
1628
+ tool_use_id: any;
1629
+ content: any;
1630
+ }, {
1631
+ type: string;
1632
+ tool_use_id: any;
1633
+ content: string;
1634
+ }>>, z.ZodObject<{
1635
+ type: z.ZodString;
1636
+ text: z.ZodString;
1637
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>>>;
1638
+ cache_control: z.ZodOptional<z.ZodObject<{
1639
+ type: z.ZodString;
1640
+ }, z.core.$strip>>;
1641
+ }, z.core.$strip>, z.ZodObject<{
1642
+ type: z.ZodString;
1643
+ file: z.ZodString;
1644
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1645
+ }, z.core.$strip>, z.ZodObject<{
1646
+ type: z.ZodString;
1647
+ text: z.ZodString;
1648
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>, z.ZodTransform<string | (Record<string, any> | {
1649
+ type: any;
1650
+ tool_use_id: any;
1651
+ content: any;
1652
+ } | {
1653
+ type: string;
1654
+ text: string;
1655
+ cache_control?: {
1656
+ type: string;
1657
+ } | undefined;
1658
+ } | {
1659
+ type: string;
1660
+ image_url: string | {
1661
+ url: string;
1662
+ detail?: string | undefined;
1663
+ };
1664
+ } | {
1665
+ type: string;
1666
+ file: string;
1667
+ providerData?: Record<string, any> | undefined;
1668
+ } | {
1669
+ type: string;
1670
+ file: string;
1671
+ providerData?: Record<string, any> | undefined;
1672
+ } | {
1673
+ type: string;
1674
+ id?: string | undefined;
1675
+ name?: string | undefined;
1676
+ input?: Record<string, any> | undefined;
1677
+ } | {
1678
+ type: string;
1679
+ text: string;
1680
+ annotations?: (string | Record<string, any>)[] | undefined;
1681
+ cache_control?: {
1682
+ type: string;
1683
+ } | undefined;
1684
+ } | {
1685
+ type: string;
1686
+ text: string;
1687
+ })[], string | (Record<string, any> | {
1688
+ type: any;
1689
+ tool_use_id: any;
1690
+ content: any;
1691
+ } | {
1692
+ type: string;
1693
+ text: string;
1694
+ cache_control?: {
1695
+ type: string;
1696
+ } | undefined;
1697
+ } | {
1698
+ type: string;
1699
+ image_url: string | {
1700
+ url: string;
1701
+ detail?: string | undefined;
1702
+ };
1703
+ } | {
1704
+ type: string;
1705
+ file: string;
1706
+ providerData?: Record<string, any> | undefined;
1707
+ } | {
1708
+ type: string;
1709
+ file: string;
1710
+ providerData?: Record<string, any> | undefined;
1711
+ } | {
1712
+ type: string;
1713
+ id?: string | undefined;
1714
+ name?: string | undefined;
1715
+ input?: Record<string, any> | undefined;
1716
+ } | {
1717
+ type: string;
1718
+ text: string;
1719
+ annotations?: (string | Record<string, any>)[] | undefined;
1720
+ cache_control?: {
1721
+ type: string;
1722
+ } | undefined;
1723
+ } | {
1724
+ type: string;
1725
+ text: string;
1726
+ })[]>>>;
1727
+ name: z.ZodOptional<z.ZodString>;
1728
+ tool_call_id: z.ZodOptional<z.ZodAny>;
1729
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1730
+ experimental_providerMetadata: z.ZodOptional<z.ZodObject<{
1731
+ anthropic: z.ZodObject<{
1732
+ cacheControl: z.ZodObject<{
1733
+ type: z.ZodString;
1734
+ }, z.core.$strip>;
1735
+ }, z.core.$strip>;
1736
+ }, z.core.$strip>>;
1737
+ }, z.core.$strip>, z.ZodTransform<{
1738
+ role: string;
1739
+ content?: string | (Record<string, any> | {
1740
+ type: any;
1741
+ tool_use_id: any;
1742
+ content: any;
1743
+ } | {
1744
+ type: string;
1745
+ text: string;
1746
+ cache_control?: {
1747
+ type: string;
1748
+ } | undefined;
1749
+ } | {
1750
+ type: string;
1751
+ image_url: string | {
1752
+ url: string;
1753
+ detail?: string | undefined;
1754
+ };
1755
+ } | {
1756
+ type: string;
1757
+ file: string;
1758
+ providerData?: Record<string, any> | undefined;
1759
+ } | {
1760
+ type: string;
1761
+ file: string;
1762
+ providerData?: Record<string, any> | undefined;
1763
+ } | {
1764
+ type: string;
1765
+ id?: string | undefined;
1766
+ name?: string | undefined;
1767
+ input?: Record<string, any> | undefined;
1768
+ } | {
1769
+ type: string;
1770
+ text: string;
1771
+ annotations?: (string | Record<string, any>)[] | undefined;
1772
+ cache_control?: {
1773
+ type: string;
1774
+ } | undefined;
1775
+ } | {
1776
+ type: string;
1777
+ text: string;
1778
+ })[] | undefined;
1779
+ name?: string | undefined;
1780
+ tool_call_id?: any;
1781
+ tool_calls?: Record<string, any>[] | undefined;
1782
+ experimental_providerMetadata?: {
1783
+ anthropic: {
1784
+ cacheControl: {
1785
+ type: string;
1786
+ };
1787
+ };
1788
+ } | undefined;
1789
+ }, {
1790
+ role: string;
1791
+ content?: string | (Record<string, any> | {
1792
+ type: any;
1793
+ tool_use_id: any;
1794
+ content: any;
1795
+ } | {
1796
+ type: string;
1797
+ text: string;
1798
+ cache_control?: {
1799
+ type: string;
1800
+ } | undefined;
1801
+ } | {
1802
+ type: string;
1803
+ image_url: string | {
1804
+ url: string;
1805
+ detail?: string | undefined;
1806
+ };
1807
+ } | {
1808
+ type: string;
1809
+ file: string;
1810
+ providerData?: Record<string, any> | undefined;
1811
+ } | {
1812
+ type: string;
1813
+ file: string;
1814
+ providerData?: Record<string, any> | undefined;
1815
+ } | {
1816
+ type: string;
1817
+ id?: string | undefined;
1818
+ name?: string | undefined;
1819
+ input?: Record<string, any> | undefined;
1820
+ } | {
1821
+ type: string;
1822
+ text: string;
1823
+ annotations?: (string | Record<string, any>)[] | undefined;
1824
+ cache_control?: {
1825
+ type: string;
1826
+ } | undefined;
1827
+ } | {
1828
+ type: string;
1829
+ text: string;
1830
+ })[] | undefined;
1831
+ name?: string | undefined;
1832
+ tool_call_id?: any;
1833
+ tool_calls?: Record<string, any>[] | undefined;
1834
+ experimental_providerMetadata?: {
1835
+ anthropic: {
1836
+ cacheControl: {
1837
+ type: string;
1838
+ };
1839
+ };
1840
+ } | undefined;
1841
+ }>>>>;
1842
+ completion_message: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1843
+ role: z.ZodString;
1844
+ content: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1845
+ type: z.ZodString;
1846
+ text: z.ZodString;
1847
+ cache_control: z.ZodOptional<z.ZodObject<{
1848
+ type: z.ZodString;
1849
+ }, z.core.$strip>>;
1850
+ }, z.core.$strip>, z.ZodObject<{
1851
+ type: z.ZodString;
1852
+ image_url: z.ZodUnion<readonly [z.ZodObject<{
1853
+ url: z.ZodString;
1854
+ detail: z.ZodOptional<z.ZodString>;
1855
+ }, z.core.$strip>, z.ZodString]>;
1856
+ }, z.core.$strip>, z.ZodObject<{
1857
+ type: z.ZodString;
1858
+ file: z.ZodString;
1859
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1860
+ }, z.core.$strip>, z.ZodObject<{
1861
+ type: z.ZodString;
1862
+ id: z.ZodOptional<z.ZodString>;
1863
+ name: z.ZodOptional<z.ZodString>;
1864
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1865
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
1866
+ type: z.ZodString;
1867
+ tool_use_id: z.ZodAny;
1868
+ content: z.ZodString;
1869
+ }, z.core.$strip>, z.ZodTransform<{
1870
+ type: any;
1871
+ tool_use_id: any;
1872
+ content: any;
1873
+ }, {
1874
+ type: string;
1875
+ tool_use_id: any;
1876
+ content: string;
1877
+ }>>, z.ZodObject<{
1878
+ type: z.ZodString;
1879
+ text: z.ZodString;
1880
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>>>;
1881
+ cache_control: z.ZodOptional<z.ZodObject<{
1882
+ type: z.ZodString;
1883
+ }, z.core.$strip>>;
1884
+ }, z.core.$strip>, z.ZodObject<{
1885
+ type: z.ZodString;
1886
+ file: z.ZodString;
1887
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1888
+ }, z.core.$strip>, z.ZodObject<{
1889
+ type: z.ZodString;
1890
+ text: z.ZodString;
1891
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>, z.ZodTransform<string | (Record<string, any> | {
1892
+ type: any;
1893
+ tool_use_id: any;
1894
+ content: any;
1895
+ } | {
1896
+ type: string;
1897
+ text: string;
1898
+ cache_control?: {
1899
+ type: string;
1900
+ } | undefined;
1901
+ } | {
1902
+ type: string;
1903
+ image_url: string | {
1904
+ url: string;
1905
+ detail?: string | undefined;
1906
+ };
1907
+ } | {
1908
+ type: string;
1909
+ file: string;
1910
+ providerData?: Record<string, any> | undefined;
1911
+ } | {
1912
+ type: string;
1913
+ file: string;
1914
+ providerData?: Record<string, any> | undefined;
1915
+ } | {
1916
+ type: string;
1917
+ id?: string | undefined;
1918
+ name?: string | undefined;
1919
+ input?: Record<string, any> | undefined;
1920
+ } | {
1921
+ type: string;
1922
+ text: string;
1923
+ annotations?: (string | Record<string, any>)[] | undefined;
1924
+ cache_control?: {
1925
+ type: string;
1926
+ } | undefined;
1927
+ } | {
1928
+ type: string;
1929
+ text: string;
1930
+ })[], string | (Record<string, any> | {
1931
+ type: any;
1932
+ tool_use_id: any;
1933
+ content: any;
1934
+ } | {
1935
+ type: string;
1936
+ text: string;
1937
+ cache_control?: {
1938
+ type: string;
1939
+ } | undefined;
1940
+ } | {
1941
+ type: string;
1942
+ image_url: string | {
1943
+ url: string;
1944
+ detail?: string | undefined;
1945
+ };
1946
+ } | {
1947
+ type: string;
1948
+ file: string;
1949
+ providerData?: Record<string, any> | undefined;
1950
+ } | {
1951
+ type: string;
1952
+ file: string;
1953
+ providerData?: Record<string, any> | undefined;
1954
+ } | {
1955
+ type: string;
1956
+ id?: string | undefined;
1957
+ name?: string | undefined;
1958
+ input?: Record<string, any> | undefined;
1959
+ } | {
1960
+ type: string;
1961
+ text: string;
1962
+ annotations?: (string | Record<string, any>)[] | undefined;
1963
+ cache_control?: {
1964
+ type: string;
1965
+ } | undefined;
1966
+ } | {
1967
+ type: string;
1968
+ text: string;
1969
+ })[]>>>;
1970
+ name: z.ZodOptional<z.ZodString>;
1971
+ tool_call_id: z.ZodOptional<z.ZodAny>;
1972
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1973
+ experimental_providerMetadata: z.ZodOptional<z.ZodObject<{
1974
+ anthropic: z.ZodObject<{
1975
+ cacheControl: z.ZodObject<{
1976
+ type: z.ZodString;
1977
+ }, z.core.$strip>;
1978
+ }, z.core.$strip>;
1979
+ }, z.core.$strip>>;
1980
+ }, z.core.$strip>, z.ZodTransform<{
1981
+ role: string;
1982
+ content?: string | (Record<string, any> | {
1983
+ type: any;
1984
+ tool_use_id: any;
1985
+ content: any;
1986
+ } | {
1987
+ type: string;
1988
+ text: string;
1989
+ cache_control?: {
1990
+ type: string;
1991
+ } | undefined;
1992
+ } | {
1993
+ type: string;
1994
+ image_url: string | {
1995
+ url: string;
1996
+ detail?: string | undefined;
1997
+ };
1998
+ } | {
1999
+ type: string;
2000
+ file: string;
2001
+ providerData?: Record<string, any> | undefined;
2002
+ } | {
2003
+ type: string;
2004
+ file: string;
2005
+ providerData?: Record<string, any> | undefined;
2006
+ } | {
2007
+ type: string;
2008
+ id?: string | undefined;
2009
+ name?: string | undefined;
2010
+ input?: Record<string, any> | undefined;
2011
+ } | {
2012
+ type: string;
2013
+ text: string;
2014
+ annotations?: (string | Record<string, any>)[] | undefined;
2015
+ cache_control?: {
2016
+ type: string;
2017
+ } | undefined;
2018
+ } | {
2019
+ type: string;
2020
+ text: string;
2021
+ })[] | undefined;
2022
+ name?: string | undefined;
2023
+ tool_call_id?: any;
2024
+ tool_calls?: Record<string, any>[] | undefined;
2025
+ experimental_providerMetadata?: {
2026
+ anthropic: {
2027
+ cacheControl: {
2028
+ type: string;
2029
+ };
2030
+ };
2031
+ } | undefined;
2032
+ }, {
2033
+ role: string;
2034
+ content?: string | (Record<string, any> | {
2035
+ type: any;
2036
+ tool_use_id: any;
2037
+ content: any;
2038
+ } | {
2039
+ type: string;
2040
+ text: string;
2041
+ cache_control?: {
2042
+ type: string;
2043
+ } | undefined;
2044
+ } | {
2045
+ type: string;
2046
+ image_url: string | {
2047
+ url: string;
2048
+ detail?: string | undefined;
2049
+ };
2050
+ } | {
2051
+ type: string;
2052
+ file: string;
2053
+ providerData?: Record<string, any> | undefined;
2054
+ } | {
2055
+ type: string;
2056
+ file: string;
2057
+ providerData?: Record<string, any> | undefined;
2058
+ } | {
2059
+ type: string;
2060
+ id?: string | undefined;
2061
+ name?: string | undefined;
2062
+ input?: Record<string, any> | undefined;
2063
+ } | {
2064
+ type: string;
2065
+ text: string;
2066
+ annotations?: (string | Record<string, any>)[] | undefined;
2067
+ cache_control?: {
2068
+ type: string;
2069
+ } | undefined;
2070
+ } | {
2071
+ type: string;
2072
+ text: string;
2073
+ })[] | undefined;
2074
+ name?: string | undefined;
2075
+ tool_call_id?: any;
2076
+ tool_calls?: Record<string, any>[] | undefined;
2077
+ experimental_providerMetadata?: {
2078
+ anthropic: {
2079
+ cacheControl: {
2080
+ type: string;
2081
+ };
2082
+ };
2083
+ } | undefined;
2084
+ }>>>;
2085
+ completion_messages: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
2086
+ role: z.ZodString;
2087
+ content: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2088
+ type: z.ZodString;
2089
+ text: z.ZodString;
2090
+ cache_control: z.ZodOptional<z.ZodObject<{
2091
+ type: z.ZodString;
2092
+ }, z.core.$strip>>;
2093
+ }, z.core.$strip>, z.ZodObject<{
2094
+ type: z.ZodString;
2095
+ image_url: z.ZodUnion<readonly [z.ZodObject<{
2096
+ url: z.ZodString;
2097
+ detail: z.ZodOptional<z.ZodString>;
2098
+ }, z.core.$strip>, z.ZodString]>;
2099
+ }, z.core.$strip>, z.ZodObject<{
2100
+ type: z.ZodString;
2101
+ file: z.ZodString;
2102
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2103
+ }, z.core.$strip>, z.ZodObject<{
2104
+ type: z.ZodString;
2105
+ id: z.ZodOptional<z.ZodString>;
2106
+ name: z.ZodOptional<z.ZodString>;
2107
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2108
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
2109
+ type: z.ZodString;
2110
+ tool_use_id: z.ZodAny;
2111
+ content: z.ZodString;
2112
+ }, z.core.$strip>, z.ZodTransform<{
2113
+ type: any;
2114
+ tool_use_id: any;
2115
+ content: any;
2116
+ }, {
2117
+ type: string;
2118
+ tool_use_id: any;
2119
+ content: string;
2120
+ }>>, z.ZodObject<{
2121
+ type: z.ZodString;
2122
+ text: z.ZodString;
2123
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>>>;
2124
+ cache_control: z.ZodOptional<z.ZodObject<{
2125
+ type: z.ZodString;
2126
+ }, z.core.$strip>>;
2127
+ }, z.core.$strip>, z.ZodObject<{
2128
+ type: z.ZodString;
2129
+ file: z.ZodString;
2130
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2131
+ }, z.core.$strip>, z.ZodObject<{
2132
+ type: z.ZodString;
2133
+ text: z.ZodString;
2134
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>, z.ZodTransform<string | (Record<string, any> | {
2135
+ type: any;
2136
+ tool_use_id: any;
2137
+ content: any;
2138
+ } | {
2139
+ type: string;
2140
+ text: string;
2141
+ cache_control?: {
2142
+ type: string;
2143
+ } | undefined;
2144
+ } | {
2145
+ type: string;
2146
+ image_url: string | {
2147
+ url: string;
2148
+ detail?: string | undefined;
2149
+ };
2150
+ } | {
2151
+ type: string;
2152
+ file: string;
2153
+ providerData?: Record<string, any> | undefined;
2154
+ } | {
2155
+ type: string;
2156
+ file: string;
2157
+ providerData?: Record<string, any> | undefined;
2158
+ } | {
2159
+ type: string;
2160
+ id?: string | undefined;
2161
+ name?: string | undefined;
2162
+ input?: Record<string, any> | undefined;
2163
+ } | {
2164
+ type: string;
2165
+ text: string;
2166
+ annotations?: (string | Record<string, any>)[] | undefined;
2167
+ cache_control?: {
2168
+ type: string;
2169
+ } | undefined;
2170
+ } | {
2171
+ type: string;
2172
+ text: string;
2173
+ })[], string | (Record<string, any> | {
2174
+ type: any;
2175
+ tool_use_id: any;
2176
+ content: any;
2177
+ } | {
2178
+ type: string;
2179
+ text: string;
2180
+ cache_control?: {
2181
+ type: string;
2182
+ } | undefined;
2183
+ } | {
2184
+ type: string;
2185
+ image_url: string | {
2186
+ url: string;
2187
+ detail?: string | undefined;
2188
+ };
2189
+ } | {
2190
+ type: string;
2191
+ file: string;
2192
+ providerData?: Record<string, any> | undefined;
2193
+ } | {
2194
+ type: string;
2195
+ file: string;
2196
+ providerData?: Record<string, any> | undefined;
2197
+ } | {
2198
+ type: string;
2199
+ id?: string | undefined;
2200
+ name?: string | undefined;
2201
+ input?: Record<string, any> | undefined;
2202
+ } | {
2203
+ type: string;
2204
+ text: string;
2205
+ annotations?: (string | Record<string, any>)[] | undefined;
2206
+ cache_control?: {
2207
+ type: string;
2208
+ } | undefined;
2209
+ } | {
2210
+ type: string;
2211
+ text: string;
2212
+ })[]>>>;
2213
+ name: z.ZodOptional<z.ZodString>;
2214
+ tool_call_id: z.ZodOptional<z.ZodAny>;
2215
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2216
+ experimental_providerMetadata: z.ZodOptional<z.ZodObject<{
2217
+ anthropic: z.ZodObject<{
2218
+ cacheControl: z.ZodObject<{
2219
+ type: z.ZodString;
2220
+ }, z.core.$strip>;
2221
+ }, z.core.$strip>;
2222
+ }, z.core.$strip>>;
2223
+ }, z.core.$strip>, z.ZodTransform<{
2224
+ role: string;
2225
+ content?: string | (Record<string, any> | {
2226
+ type: any;
2227
+ tool_use_id: any;
2228
+ content: any;
2229
+ } | {
2230
+ type: string;
2231
+ text: string;
2232
+ cache_control?: {
2233
+ type: string;
2234
+ } | undefined;
2235
+ } | {
2236
+ type: string;
2237
+ image_url: string | {
2238
+ url: string;
2239
+ detail?: string | undefined;
2240
+ };
2241
+ } | {
2242
+ type: string;
2243
+ file: string;
2244
+ providerData?: Record<string, any> | undefined;
2245
+ } | {
2246
+ type: string;
2247
+ file: string;
2248
+ providerData?: Record<string, any> | undefined;
2249
+ } | {
2250
+ type: string;
2251
+ id?: string | undefined;
2252
+ name?: string | undefined;
2253
+ input?: Record<string, any> | undefined;
2254
+ } | {
2255
+ type: string;
2256
+ text: string;
2257
+ annotations?: (string | Record<string, any>)[] | undefined;
2258
+ cache_control?: {
2259
+ type: string;
2260
+ } | undefined;
2261
+ } | {
2262
+ type: string;
2263
+ text: string;
2264
+ })[] | undefined;
2265
+ name?: string | undefined;
2266
+ tool_call_id?: any;
2267
+ tool_calls?: Record<string, any>[] | undefined;
2268
+ experimental_providerMetadata?: {
2269
+ anthropic: {
2270
+ cacheControl: {
2271
+ type: string;
2272
+ };
2273
+ };
2274
+ } | undefined;
2275
+ }, {
2276
+ role: string;
2277
+ content?: string | (Record<string, any> | {
2278
+ type: any;
2279
+ tool_use_id: any;
2280
+ content: any;
2281
+ } | {
2282
+ type: string;
2283
+ text: string;
2284
+ cache_control?: {
2285
+ type: string;
2286
+ } | undefined;
2287
+ } | {
2288
+ type: string;
2289
+ image_url: string | {
2290
+ url: string;
2291
+ detail?: string | undefined;
2292
+ };
2293
+ } | {
2294
+ type: string;
2295
+ file: string;
2296
+ providerData?: Record<string, any> | undefined;
2297
+ } | {
2298
+ type: string;
2299
+ file: string;
2300
+ providerData?: Record<string, any> | undefined;
2301
+ } | {
2302
+ type: string;
2303
+ id?: string | undefined;
2304
+ name?: string | undefined;
2305
+ input?: Record<string, any> | undefined;
2306
+ } | {
2307
+ type: string;
2308
+ text: string;
2309
+ annotations?: (string | Record<string, any>)[] | undefined;
2310
+ cache_control?: {
2311
+ type: string;
2312
+ } | undefined;
2313
+ } | {
2314
+ type: string;
2315
+ text: string;
2316
+ })[] | undefined;
2317
+ name?: string | undefined;
2318
+ tool_call_id?: any;
2319
+ tool_calls?: Record<string, any>[] | undefined;
2320
+ experimental_providerMetadata?: {
2321
+ anthropic: {
2322
+ cacheControl: {
2323
+ type: string;
2324
+ };
2325
+ };
2326
+ } | undefined;
2327
+ }>>>>;
2328
+ completion_tokens: z.ZodOptional<z.ZodNumber>;
2329
+ full_request: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
2330
+ full_response: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>>;
2331
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2332
+ reasoning: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2333
+ cache_enabled: z.ZodOptional<z.ZodBoolean>;
2334
+ cache_options: z.ZodOptional<z.ZodObject<{
2335
+ cache_by_customer: z.ZodOptional<z.ZodBoolean>;
2336
+ omit_log: z.ZodOptional<z.ZodBoolean>;
2337
+ }, z.core.$strip>>;
2338
+ cache_ttl: z.ZodOptional<z.ZodNumber>;
2339
+ cost: z.ZodOptional<z.ZodNumber>;
2340
+ prompt_unit_price: z.ZodOptional<z.ZodNumber>;
2341
+ completion_unit_price: z.ZodOptional<z.ZodNumber>;
2342
+ prompt_tokens: z.ZodOptional<z.ZodNumber>;
2343
+ prompt_cache_hit_tokens: z.ZodOptional<z.ZodNumber>;
2344
+ prompt_cache_creation_tokens: z.ZodOptional<z.ZodNumber>;
2345
+ usage: z.ZodOptional<z.ZodObject<{
2346
+ prompt_tokens: z.ZodOptional<z.ZodNumber>;
2347
+ completion_tokens: z.ZodOptional<z.ZodNumber>;
2348
+ total_tokens: z.ZodOptional<z.ZodNumber>;
2349
+ cache_creation_input_tokens: z.ZodOptional<z.ZodNumber>;
2350
+ cache_creation_prompt_tokens: z.ZodOptional<z.ZodNumber>;
2351
+ cache_read_input_tokens: z.ZodOptional<z.ZodNumber>;
2352
+ completion_tokens_details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2353
+ prompt_tokens_details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2354
+ }, z.core.$strip>>;
2355
+ customer_email: z.ZodOptional<z.ZodString>;
2356
+ customer_name: z.ZodOptional<z.ZodString>;
2357
+ customer_identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2358
+ customer_params: z.ZodOptional<z.ZodObject<{
2359
+ customer_identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2360
+ name: z.ZodOptional<z.ZodString>;
2361
+ email: z.ZodOptional<z.ZodString>;
2362
+ period_start: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
2363
+ period_end: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
2364
+ budget_duration: z.ZodOptional<z.ZodEnum<{
2365
+ daily: "daily";
2366
+ weekly: "weekly";
2367
+ monthly: "monthly";
2368
+ yearly: "yearly";
2369
+ }>>;
2370
+ period_budget: z.ZodOptional<z.ZodNumber>;
2371
+ markup_percentage: z.ZodOptional<z.ZodNumber>;
2372
+ total_budget: z.ZodOptional<z.ZodNumber>;
2373
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2374
+ rate_limit: z.ZodOptional<z.ZodNumber>;
2375
+ }, z.core.$strip>>;
2376
+ field_name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2377
+ delimiter: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2378
+ disable_log: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2379
+ request_breakdown: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2380
+ respan_api_controls: z.ZodOptional<z.ZodObject<{
2381
+ block: z.ZodOptional<z.ZodBoolean>;
2382
+ }, z.core.$strip>>;
2383
+ log_method: z.ZodOptional<z.ZodEnum<{
2384
+ inference: "inference";
2385
+ logging_api: "logging_api";
2386
+ batch: "batch";
2387
+ python_tracing: "python_tracing";
2388
+ ts_tracing: "ts_tracing";
2389
+ }>>;
2390
+ log_type: z.ZodOptional<z.ZodEnum<{
2391
+ function: "function";
2392
+ text: "text";
2393
+ chat: "chat";
2394
+ completion: "completion";
2395
+ response: "response";
2396
+ embedding: "embedding";
2397
+ transcription: "transcription";
2398
+ speech: "speech";
2399
+ workflow: "workflow";
2400
+ task: "task";
2401
+ tool: "tool";
2402
+ agent: "agent";
2403
+ handoff: "handoff";
2404
+ guardrail: "guardrail";
2405
+ custom: "custom";
2406
+ generation: "generation";
2407
+ unknown: "unknown";
2408
+ }>>;
2409
+ disable_fallback: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2410
+ exclude_models: z.ZodOptional<z.ZodArray<z.ZodString>>;
2411
+ exclude_providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
2412
+ fallback_models: z.ZodOptional<z.ZodArray<z.ZodString>>;
2413
+ load_balance_group: z.ZodOptional<z.ZodObject<{
2414
+ group_id: z.ZodString;
2415
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
2416
+ model: z.ZodString;
2417
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2418
+ weight: z.ZodNumber;
2419
+ }, z.core.$strip>>>;
2420
+ }, z.core.$strip>>;
2421
+ load_balance_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
2422
+ model: z.ZodString;
2423
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2424
+ weight: z.ZodNumber;
2425
+ }, z.core.$strip>>>;
2426
+ retry_params: z.ZodOptional<z.ZodObject<{
2427
+ num_retries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2428
+ retry_after: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2429
+ retry_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2430
+ }, z.core.$strip>>;
2431
+ respan_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2432
+ model_name_map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2433
+ embedding: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
2434
+ provider_id: z.ZodOptional<z.ZodString>;
2435
+ audio_input_file: z.ZodOptional<z.ZodString>;
2436
+ audio_output_file: z.ZodOptional<z.ZodString>;
2437
+ note: z.ZodOptional<z.ZodString>;
2438
+ category: z.ZodOptional<z.ZodString>;
2439
+ eval_params: z.ZodOptional<z.ZodObject<{
2440
+ evaluators: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
2441
+ evaluation_identifier: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2442
+ last_n_messages: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2443
+ eval_inputs: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2444
+ sample_percentage: z.ZodOptional<z.ZodNumber>;
2445
+ }, z.core.$strip>>;
2446
+ for_eval: z.ZodOptional<z.ZodBoolean>;
2447
+ positive_feedback: z.ZodOptional<z.ZodBoolean>;
2448
+ linkup_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2449
+ mem0_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2450
+ posthog_integration: z.ZodOptional<z.ZodObject<{
2451
+ posthog_api_key: z.ZodString;
2452
+ posthog_base_url: z.ZodString;
2453
+ }, z.core.$strip>>;
2454
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2455
+ prompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2456
+ prompt_id: z.ZodOptional<z.ZodString>;
2457
+ is_custom_prompt: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2458
+ version: z.ZodOptional<z.ZodNumber>;
2459
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2460
+ echo: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2461
+ override: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2462
+ override_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2463
+ override_config: z.ZodOptional<z.ZodObject<{
2464
+ messages_override_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2465
+ override: "override";
2466
+ append: "append";
2467
+ }>>>;
2468
+ }, z.core.$strip>>;
2469
+ }, z.core.$strip>, z.ZodString]>>;
2470
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2471
+ generation_time: z.ZodOptional<z.ZodNumber>;
2472
+ latency: z.ZodOptional<z.ZodNumber>;
2473
+ ttft: z.ZodOptional<z.ZodNumber>;
2474
+ time_to_first_token: z.ZodOptional<z.ZodNumber>;
2475
+ routing_time: z.ZodOptional<z.ZodNumber>;
2476
+ tokens_per_second: z.ZodOptional<z.ZodNumber>;
2477
+ trace_unique_id: z.ZodOptional<z.ZodString>;
2478
+ trace_name: z.ZodOptional<z.ZodString>;
2479
+ trace_group_identifier: z.ZodOptional<z.ZodString>;
2480
+ span_unique_id: z.ZodOptional<z.ZodString>;
2481
+ span_name: z.ZodOptional<z.ZodString>;
2482
+ span_parent_id: z.ZodOptional<z.ZodString>;
2483
+ span_path: z.ZodOptional<z.ZodString>;
2484
+ span_handoffs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2485
+ span_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
2486
+ span_workflow_name: z.ZodOptional<z.ZodString>;
2487
+ thread_identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2488
+ echo: z.ZodOptional<z.ZodBoolean>;
2489
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
2490
+ logprobs: z.ZodOptional<z.ZodBoolean>;
2491
+ logit_bias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2492
+ messages: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
2493
+ role: z.ZodString;
2494
+ content: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2495
+ type: z.ZodString;
2496
+ text: z.ZodString;
2497
+ cache_control: z.ZodOptional<z.ZodObject<{
2498
+ type: z.ZodString;
2499
+ }, z.core.$strip>>;
2500
+ }, z.core.$strip>, z.ZodObject<{
2501
+ type: z.ZodString;
2502
+ image_url: z.ZodUnion<readonly [z.ZodObject<{
2503
+ url: z.ZodString;
2504
+ detail: z.ZodOptional<z.ZodString>;
2505
+ }, z.core.$strip>, z.ZodString]>;
2506
+ }, z.core.$strip>, z.ZodObject<{
2507
+ type: z.ZodString;
2508
+ file: z.ZodString;
2509
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2510
+ }, z.core.$strip>, z.ZodObject<{
2511
+ type: z.ZodString;
2512
+ id: z.ZodOptional<z.ZodString>;
2513
+ name: z.ZodOptional<z.ZodString>;
2514
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2515
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
2516
+ type: z.ZodString;
2517
+ tool_use_id: z.ZodAny;
2518
+ content: z.ZodString;
2519
+ }, z.core.$strip>, z.ZodTransform<{
2520
+ type: any;
2521
+ tool_use_id: any;
2522
+ content: any;
2523
+ }, {
2524
+ type: string;
2525
+ tool_use_id: any;
2526
+ content: string;
2527
+ }>>, z.ZodObject<{
2528
+ type: z.ZodString;
2529
+ text: z.ZodString;
2530
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>>>;
2531
+ cache_control: z.ZodOptional<z.ZodObject<{
2532
+ type: z.ZodString;
2533
+ }, z.core.$strip>>;
2534
+ }, z.core.$strip>, z.ZodObject<{
2535
+ type: z.ZodString;
2536
+ file: z.ZodString;
2537
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2538
+ }, z.core.$strip>, z.ZodObject<{
2539
+ type: z.ZodString;
2540
+ text: z.ZodString;
2541
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>, z.ZodTransform<string | (Record<string, any> | {
2542
+ type: any;
2543
+ tool_use_id: any;
2544
+ content: any;
2545
+ } | {
2546
+ type: string;
2547
+ text: string;
2548
+ cache_control?: {
2549
+ type: string;
2550
+ } | undefined;
2551
+ } | {
2552
+ type: string;
2553
+ image_url: string | {
2554
+ url: string;
2555
+ detail?: string | undefined;
2556
+ };
2557
+ } | {
2558
+ type: string;
2559
+ file: string;
2560
+ providerData?: Record<string, any> | undefined;
2561
+ } | {
2562
+ type: string;
2563
+ file: string;
2564
+ providerData?: Record<string, any> | undefined;
2565
+ } | {
2566
+ type: string;
2567
+ id?: string | undefined;
2568
+ name?: string | undefined;
2569
+ input?: Record<string, any> | undefined;
2570
+ } | {
2571
+ type: string;
2572
+ text: string;
2573
+ annotations?: (string | Record<string, any>)[] | undefined;
2574
+ cache_control?: {
2575
+ type: string;
2576
+ } | undefined;
2577
+ } | {
2578
+ type: string;
2579
+ text: string;
2580
+ })[], string | (Record<string, any> | {
2581
+ type: any;
2582
+ tool_use_id: any;
2583
+ content: any;
2584
+ } | {
2585
+ type: string;
2586
+ text: string;
2587
+ cache_control?: {
2588
+ type: string;
2589
+ } | undefined;
2590
+ } | {
2591
+ type: string;
2592
+ image_url: string | {
2593
+ url: string;
2594
+ detail?: string | undefined;
2595
+ };
2596
+ } | {
2597
+ type: string;
2598
+ file: string;
2599
+ providerData?: Record<string, any> | undefined;
2600
+ } | {
2601
+ type: string;
2602
+ file: string;
2603
+ providerData?: Record<string, any> | undefined;
2604
+ } | {
2605
+ type: string;
2606
+ id?: string | undefined;
2607
+ name?: string | undefined;
2608
+ input?: Record<string, any> | undefined;
2609
+ } | {
2610
+ type: string;
2611
+ text: string;
2612
+ annotations?: (string | Record<string, any>)[] | undefined;
2613
+ cache_control?: {
2614
+ type: string;
2615
+ } | undefined;
2616
+ } | {
2617
+ type: string;
2618
+ text: string;
2619
+ })[]>>>;
2620
+ name: z.ZodOptional<z.ZodString>;
2621
+ tool_call_id: z.ZodOptional<z.ZodAny>;
2622
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2623
+ experimental_providerMetadata: z.ZodOptional<z.ZodObject<{
2624
+ anthropic: z.ZodObject<{
2625
+ cacheControl: z.ZodObject<{
2626
+ type: z.ZodString;
2627
+ }, z.core.$strip>;
2628
+ }, z.core.$strip>;
2629
+ }, z.core.$strip>>;
2630
+ }, z.core.$strip>, z.ZodTransform<{
2631
+ role: string;
2632
+ content?: string | (Record<string, any> | {
2633
+ type: any;
2634
+ tool_use_id: any;
2635
+ content: any;
2636
+ } | {
2637
+ type: string;
2638
+ text: string;
2639
+ cache_control?: {
2640
+ type: string;
2641
+ } | undefined;
2642
+ } | {
2643
+ type: string;
2644
+ image_url: string | {
2645
+ url: string;
2646
+ detail?: string | undefined;
2647
+ };
2648
+ } | {
2649
+ type: string;
2650
+ file: string;
2651
+ providerData?: Record<string, any> | undefined;
2652
+ } | {
2653
+ type: string;
2654
+ file: string;
2655
+ providerData?: Record<string, any> | undefined;
2656
+ } | {
2657
+ type: string;
2658
+ id?: string | undefined;
2659
+ name?: string | undefined;
2660
+ input?: Record<string, any> | undefined;
2661
+ } | {
2662
+ type: string;
2663
+ text: string;
2664
+ annotations?: (string | Record<string, any>)[] | undefined;
2665
+ cache_control?: {
2666
+ type: string;
2667
+ } | undefined;
2668
+ } | {
2669
+ type: string;
2670
+ text: string;
2671
+ })[] | undefined;
2672
+ name?: string | undefined;
2673
+ tool_call_id?: any;
2674
+ tool_calls?: Record<string, any>[] | undefined;
2675
+ experimental_providerMetadata?: {
2676
+ anthropic: {
2677
+ cacheControl: {
2678
+ type: string;
2679
+ };
2680
+ };
2681
+ } | undefined;
2682
+ }, {
2683
+ role: string;
2684
+ content?: string | (Record<string, any> | {
2685
+ type: any;
2686
+ tool_use_id: any;
2687
+ content: any;
2688
+ } | {
2689
+ type: string;
2690
+ text: string;
2691
+ cache_control?: {
2692
+ type: string;
2693
+ } | undefined;
2694
+ } | {
2695
+ type: string;
2696
+ image_url: string | {
2697
+ url: string;
2698
+ detail?: string | undefined;
2699
+ };
2700
+ } | {
2701
+ type: string;
2702
+ file: string;
2703
+ providerData?: Record<string, any> | undefined;
2704
+ } | {
2705
+ type: string;
2706
+ file: string;
2707
+ providerData?: Record<string, any> | undefined;
2708
+ } | {
2709
+ type: string;
2710
+ id?: string | undefined;
2711
+ name?: string | undefined;
2712
+ input?: Record<string, any> | undefined;
2713
+ } | {
2714
+ type: string;
2715
+ text: string;
2716
+ annotations?: (string | Record<string, any>)[] | undefined;
2717
+ cache_control?: {
2718
+ type: string;
2719
+ } | undefined;
2720
+ } | {
2721
+ type: string;
2722
+ text: string;
2723
+ })[] | undefined;
2724
+ name?: string | undefined;
2725
+ tool_call_id?: any;
2726
+ tool_calls?: Record<string, any>[] | undefined;
2727
+ experimental_providerMetadata?: {
2728
+ anthropic: {
2729
+ cacheControl: {
2730
+ type: string;
2731
+ };
2732
+ };
2733
+ } | undefined;
2734
+ }>>>>;
2735
+ max_tokens: z.ZodOptional<z.ZodNumber>;
2736
+ max_completion_tokens: z.ZodOptional<z.ZodNumber>;
2737
+ n: z.ZodOptional<z.ZodNumber>;
2738
+ parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
2739
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
2740
+ stop: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>;
2741
+ stream: z.ZodOptional<z.ZodBoolean>;
2742
+ stream_options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2743
+ temperature: z.ZodOptional<z.ZodNumber>;
2744
+ timeout: z.ZodOptional<z.ZodNumber>;
2745
+ tools: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
2746
+ type: z.ZodLiteral<"function">;
2747
+ function: z.ZodObject<{
2748
+ name: z.ZodString;
2749
+ description: z.ZodOptional<z.ZodString>;
2750
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2751
+ }, z.core.$strip>;
2752
+ }, z.core.$strip>, z.ZodObject<{
2753
+ type: z.ZodLiteral<"function">;
2754
+ name: z.ZodString;
2755
+ description: z.ZodOptional<z.ZodString>;
2756
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2757
+ }, z.core.$strip>]>, z.ZodTransform<any, {
2758
+ type: "function";
2759
+ function: {
2760
+ name: string;
2761
+ description?: string | undefined;
2762
+ parameters?: Record<string, any> | undefined;
2763
+ };
2764
+ } | {
2765
+ type: "function";
2766
+ name: string;
2767
+ description?: string | undefined;
2768
+ parameters?: Record<string, any> | undefined;
2769
+ }>>>>;
2770
+ response_format: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2771
+ reasoning_effort: z.ZodOptional<z.ZodString>;
2772
+ tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2773
+ auto: "auto";
2774
+ none: "none";
2775
+ required: "required";
2776
+ }>, z.ZodOptional<z.ZodObject<{
2777
+ type: z.ZodString;
2778
+ function: z.ZodOptional<z.ZodObject<{
2779
+ name: z.ZodString;
2780
+ }, z.core.$strip>>;
2781
+ }, z.core.$strip>>]>>;
2782
+ top_logprobs: z.ZodOptional<z.ZodNumber>;
2783
+ top_p: z.ZodOptional<z.ZodNumber>;
2784
+ input: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2785
+ model: z.ZodOptional<z.ZodString>;
2786
+ encoding_format: z.ZodOptional<z.ZodString>;
2787
+ dimensions: z.ZodOptional<z.ZodNumber>;
2788
+ user: z.ZodOptional<z.ZodString>;
2789
+ }, z.core.$catchall<z.ZodAny>>;
2790
+ export type RespanPayload = z.input<typeof RespanPayloadSchema>;
2791
+ export type KeywordsPayload = RespanPayload;
2792
+ export { RespanParamsSchema, BasicLLMParamsSchema, BasicEmbeddingParamsSchema, MessageSchema, ToolCallSchema, ToolChoiceSchema, FunctionToolSchema, UsageSchema, MetadataSchema, PostHogIntegrationSchema, CustomerSchema, CacheOptionsSchema, RetryParamsSchema, LoadBalanceGroupSchema, LoadBalanceModelSchema, EvaluationParamsSchema, PromptParamSchema, OverrideConfigSchema, };