@promptlayer/mcp-server 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.
@@ -0,0 +1,2105 @@
1
+ /**
2
+ * TypeScript types and Zod schemas for PromptLayer API
3
+ * All schemas verified against OpenAPI spec at:
4
+ * https://github.com/magnivorg/prompt-layer-docs/blob/master/openapi.json
5
+ */
6
+ import { z } from "zod";
7
+ export declare const GetPromptTemplateArgsSchema: z.ZodObject<{
8
+ prompt_name: z.ZodString;
9
+ version: z.ZodOptional<z.ZodNumber>;
10
+ workspace_id: z.ZodOptional<z.ZodNumber>;
11
+ label: z.ZodOptional<z.ZodString>;
12
+ provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "amazon.bedrock", "cohere", "google", "huggingface", "mistral", "openai.azure", "vertexai"]>>;
13
+ input_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14
+ metadata_filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
15
+ model: z.ZodOptional<z.ZodString>;
16
+ model_parameter_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17
+ api_key: z.ZodOptional<z.ZodString>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ prompt_name: string;
20
+ version?: number | undefined;
21
+ workspace_id?: number | undefined;
22
+ label?: string | undefined;
23
+ provider?: "openai" | "anthropic" | "amazon.bedrock" | "cohere" | "google" | "huggingface" | "mistral" | "openai.azure" | "vertexai" | undefined;
24
+ input_variables?: Record<string, string> | undefined;
25
+ metadata_filters?: Record<string, string> | undefined;
26
+ model?: string | undefined;
27
+ model_parameter_overrides?: Record<string, unknown> | undefined;
28
+ api_key?: string | undefined;
29
+ }, {
30
+ prompt_name: string;
31
+ version?: number | undefined;
32
+ workspace_id?: number | undefined;
33
+ label?: string | undefined;
34
+ provider?: "openai" | "anthropic" | "amazon.bedrock" | "cohere" | "google" | "huggingface" | "mistral" | "openai.azure" | "vertexai" | undefined;
35
+ input_variables?: Record<string, string> | undefined;
36
+ metadata_filters?: Record<string, string> | undefined;
37
+ model?: string | undefined;
38
+ model_parameter_overrides?: Record<string, unknown> | undefined;
39
+ api_key?: string | undefined;
40
+ }>;
41
+ export declare const GetPromptTemplateRawArgsSchema: z.ZodObject<{
42
+ identifier: z.ZodString;
43
+ version: z.ZodOptional<z.ZodNumber>;
44
+ label: z.ZodOptional<z.ZodString>;
45
+ resolve_snippets: z.ZodOptional<z.ZodBoolean>;
46
+ include_llm_kwargs: z.ZodOptional<z.ZodBoolean>;
47
+ api_key: z.ZodOptional<z.ZodString>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ identifier: string;
50
+ version?: number | undefined;
51
+ label?: string | undefined;
52
+ api_key?: string | undefined;
53
+ resolve_snippets?: boolean | undefined;
54
+ include_llm_kwargs?: boolean | undefined;
55
+ }, {
56
+ identifier: string;
57
+ version?: number | undefined;
58
+ label?: string | undefined;
59
+ api_key?: string | undefined;
60
+ resolve_snippets?: boolean | undefined;
61
+ include_llm_kwargs?: boolean | undefined;
62
+ }>;
63
+ export declare const ListPromptTemplatesArgsSchema: z.ZodObject<{
64
+ page: z.ZodOptional<z.ZodNumber>;
65
+ per_page: z.ZodOptional<z.ZodNumber>;
66
+ label: z.ZodOptional<z.ZodString>;
67
+ name: z.ZodOptional<z.ZodString>;
68
+ status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
69
+ workspace_id: z.ZodOptional<z.ZodNumber>;
70
+ api_key: z.ZodOptional<z.ZodString>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ workspace_id?: number | undefined;
73
+ label?: string | undefined;
74
+ status?: "active" | "deleted" | "all" | undefined;
75
+ api_key?: string | undefined;
76
+ page?: number | undefined;
77
+ per_page?: number | undefined;
78
+ name?: string | undefined;
79
+ }, {
80
+ workspace_id?: number | undefined;
81
+ label?: string | undefined;
82
+ status?: "active" | "deleted" | "all" | undefined;
83
+ api_key?: string | undefined;
84
+ page?: number | undefined;
85
+ per_page?: number | undefined;
86
+ name?: string | undefined;
87
+ }>;
88
+ export declare const PublishPromptTemplateArgsSchema: z.ZodObject<{
89
+ prompt_template: z.ZodObject<{
90
+ prompt_name: z.ZodString;
91
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
92
+ folder_id: z.ZodOptional<z.ZodNumber>;
93
+ workspace_id: z.ZodOptional<z.ZodNumber>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ prompt_name: string;
96
+ workspace_id?: number | undefined;
97
+ tags?: string[] | undefined;
98
+ folder_id?: number | undefined;
99
+ }, {
100
+ prompt_name: string;
101
+ workspace_id?: number | undefined;
102
+ tags?: string[] | undefined;
103
+ folder_id?: number | undefined;
104
+ }>;
105
+ prompt_version: z.ZodObject<{
106
+ prompt_template: z.ZodRecord<z.ZodString, z.ZodUnknown>;
107
+ commit_message: z.ZodOptional<z.ZodString>;
108
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
109
+ provider_base_url_name: z.ZodOptional<z.ZodString>;
110
+ provider_id: z.ZodOptional<z.ZodNumber>;
111
+ inference_client_name: z.ZodOptional<z.ZodString>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ prompt_template: Record<string, unknown>;
114
+ commit_message?: string | undefined;
115
+ metadata?: Record<string, unknown> | undefined;
116
+ provider_base_url_name?: string | undefined;
117
+ provider_id?: number | undefined;
118
+ inference_client_name?: string | undefined;
119
+ }, {
120
+ prompt_template: Record<string, unknown>;
121
+ commit_message?: string | undefined;
122
+ metadata?: Record<string, unknown> | undefined;
123
+ provider_base_url_name?: string | undefined;
124
+ provider_id?: number | undefined;
125
+ inference_client_name?: string | undefined;
126
+ }>;
127
+ release_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
128
+ snippet_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
129
+ api_key: z.ZodOptional<z.ZodString>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ prompt_template: {
132
+ prompt_name: string;
133
+ workspace_id?: number | undefined;
134
+ tags?: string[] | undefined;
135
+ folder_id?: number | undefined;
136
+ };
137
+ prompt_version: {
138
+ prompt_template: Record<string, unknown>;
139
+ commit_message?: string | undefined;
140
+ metadata?: Record<string, unknown> | undefined;
141
+ provider_base_url_name?: string | undefined;
142
+ provider_id?: number | undefined;
143
+ inference_client_name?: string | undefined;
144
+ };
145
+ api_key?: string | undefined;
146
+ release_labels?: string[] | undefined;
147
+ snippet_overrides?: Record<string, string> | undefined;
148
+ }, {
149
+ prompt_template: {
150
+ prompt_name: string;
151
+ workspace_id?: number | undefined;
152
+ tags?: string[] | undefined;
153
+ folder_id?: number | undefined;
154
+ };
155
+ prompt_version: {
156
+ prompt_template: Record<string, unknown>;
157
+ commit_message?: string | undefined;
158
+ metadata?: Record<string, unknown> | undefined;
159
+ provider_base_url_name?: string | undefined;
160
+ provider_id?: number | undefined;
161
+ inference_client_name?: string | undefined;
162
+ };
163
+ api_key?: string | undefined;
164
+ release_labels?: string[] | undefined;
165
+ snippet_overrides?: Record<string, string> | undefined;
166
+ }>;
167
+ export declare const ListPromptTemplateLabelsArgsSchema: z.ZodObject<{
168
+ identifier: z.ZodString;
169
+ api_key: z.ZodOptional<z.ZodString>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ identifier: string;
172
+ api_key?: string | undefined;
173
+ }, {
174
+ identifier: string;
175
+ api_key?: string | undefined;
176
+ }>;
177
+ export declare const CreatePromptLabelArgsSchema: z.ZodObject<{
178
+ prompt_id: z.ZodNumber;
179
+ prompt_version_number: z.ZodOptional<z.ZodNumber>;
180
+ prompt_version_id: z.ZodOptional<z.ZodNumber>;
181
+ name: z.ZodString;
182
+ api_key: z.ZodOptional<z.ZodString>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ name: string;
185
+ prompt_id: number;
186
+ api_key?: string | undefined;
187
+ prompt_version_number?: number | undefined;
188
+ prompt_version_id?: number | undefined;
189
+ }, {
190
+ name: string;
191
+ prompt_id: number;
192
+ api_key?: string | undefined;
193
+ prompt_version_number?: number | undefined;
194
+ prompt_version_id?: number | undefined;
195
+ }>;
196
+ export declare const MovePromptLabelArgsSchema: z.ZodObject<{
197
+ prompt_label_id: z.ZodNumber;
198
+ prompt_version_number: z.ZodOptional<z.ZodNumber>;
199
+ prompt_version_id: z.ZodOptional<z.ZodNumber>;
200
+ api_key: z.ZodOptional<z.ZodString>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ prompt_label_id: number;
203
+ api_key?: string | undefined;
204
+ prompt_version_number?: number | undefined;
205
+ prompt_version_id?: number | undefined;
206
+ }, {
207
+ prompt_label_id: number;
208
+ api_key?: string | undefined;
209
+ prompt_version_number?: number | undefined;
210
+ prompt_version_id?: number | undefined;
211
+ }>;
212
+ export declare const DeletePromptLabelArgsSchema: z.ZodObject<{
213
+ prompt_label_id: z.ZodNumber;
214
+ api_key: z.ZodOptional<z.ZodString>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ prompt_label_id: number;
217
+ api_key?: string | undefined;
218
+ }, {
219
+ prompt_label_id: number;
220
+ api_key?: string | undefined;
221
+ }>;
222
+ export declare const GetSnippetUsageArgsSchema: z.ZodObject<{
223
+ identifier: z.ZodString;
224
+ prompt_version_number: z.ZodOptional<z.ZodNumber>;
225
+ api_key: z.ZodOptional<z.ZodString>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ identifier: string;
228
+ api_key?: string | undefined;
229
+ prompt_version_number?: number | undefined;
230
+ }, {
231
+ identifier: string;
232
+ api_key?: string | undefined;
233
+ prompt_version_number?: number | undefined;
234
+ }>;
235
+ export declare const LogRequestArgsSchema: z.ZodObject<{
236
+ provider: z.ZodString;
237
+ model: z.ZodString;
238
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
239
+ output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
240
+ request_start_time: z.ZodString;
241
+ request_end_time: z.ZodString;
242
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
243
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
244
+ score_name: z.ZodOptional<z.ZodString>;
245
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
246
+ prompt_name: z.ZodOptional<z.ZodString>;
247
+ prompt_id: z.ZodOptional<z.ZodNumber>;
248
+ prompt_version_number: z.ZodOptional<z.ZodNumber>;
249
+ prompt_input_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
250
+ input_tokens: z.ZodOptional<z.ZodNumber>;
251
+ output_tokens: z.ZodOptional<z.ZodNumber>;
252
+ price: z.ZodOptional<z.ZodNumber>;
253
+ function_name: z.ZodOptional<z.ZodString>;
254
+ score: z.ZodOptional<z.ZodNumber>;
255
+ api_type: z.ZodOptional<z.ZodString>;
256
+ status: z.ZodOptional<z.ZodEnum<["SUCCESS", "WARNING", "ERROR"]>>;
257
+ error_type: z.ZodOptional<z.ZodEnum<["PROVIDER_TIMEOUT", "PROVIDER_QUOTA_LIMIT", "PROVIDER_RATE_LIMIT", "PROVIDER_AUTH_ERROR", "PROVIDER_ERROR", "TEMPLATE_RENDER_ERROR", "VARIABLE_MISSING_OR_EMPTY", "UNKNOWN_ERROR"]>>;
258
+ error_message: z.ZodOptional<z.ZodString>;
259
+ api_key: z.ZodOptional<z.ZodString>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ provider: string;
262
+ model: string;
263
+ input: Record<string, unknown>;
264
+ output: Record<string, unknown>;
265
+ request_start_time: string;
266
+ request_end_time: string;
267
+ prompt_name?: string | undefined;
268
+ status?: "SUCCESS" | "WARNING" | "ERROR" | undefined;
269
+ api_key?: string | undefined;
270
+ tags?: string[] | undefined;
271
+ metadata?: Record<string, string> | undefined;
272
+ prompt_id?: number | undefined;
273
+ prompt_version_number?: number | undefined;
274
+ parameters?: Record<string, unknown> | undefined;
275
+ score_name?: string | undefined;
276
+ prompt_input_variables?: Record<string, unknown> | undefined;
277
+ input_tokens?: number | undefined;
278
+ output_tokens?: number | undefined;
279
+ price?: number | undefined;
280
+ function_name?: string | undefined;
281
+ score?: number | undefined;
282
+ api_type?: string | undefined;
283
+ error_type?: "PROVIDER_TIMEOUT" | "PROVIDER_QUOTA_LIMIT" | "PROVIDER_RATE_LIMIT" | "PROVIDER_AUTH_ERROR" | "PROVIDER_ERROR" | "TEMPLATE_RENDER_ERROR" | "VARIABLE_MISSING_OR_EMPTY" | "UNKNOWN_ERROR" | undefined;
284
+ error_message?: string | undefined;
285
+ }, {
286
+ provider: string;
287
+ model: string;
288
+ input: Record<string, unknown>;
289
+ output: Record<string, unknown>;
290
+ request_start_time: string;
291
+ request_end_time: string;
292
+ prompt_name?: string | undefined;
293
+ status?: "SUCCESS" | "WARNING" | "ERROR" | undefined;
294
+ api_key?: string | undefined;
295
+ tags?: string[] | undefined;
296
+ metadata?: Record<string, string> | undefined;
297
+ prompt_id?: number | undefined;
298
+ prompt_version_number?: number | undefined;
299
+ parameters?: Record<string, unknown> | undefined;
300
+ score_name?: string | undefined;
301
+ prompt_input_variables?: Record<string, unknown> | undefined;
302
+ input_tokens?: number | undefined;
303
+ output_tokens?: number | undefined;
304
+ price?: number | undefined;
305
+ function_name?: string | undefined;
306
+ score?: number | undefined;
307
+ api_type?: string | undefined;
308
+ error_type?: "PROVIDER_TIMEOUT" | "PROVIDER_QUOTA_LIMIT" | "PROVIDER_RATE_LIMIT" | "PROVIDER_AUTH_ERROR" | "PROVIDER_ERROR" | "TEMPLATE_RENDER_ERROR" | "VARIABLE_MISSING_OR_EMPTY" | "UNKNOWN_ERROR" | undefined;
309
+ error_message?: string | undefined;
310
+ }>;
311
+ export declare const CreateSpansBulkArgsSchema: z.ZodObject<{
312
+ spans: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
313
+ api_key: z.ZodOptional<z.ZodString>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ spans: Record<string, unknown>[];
316
+ api_key?: string | undefined;
317
+ }, {
318
+ spans: Record<string, unknown>[];
319
+ api_key?: string | undefined;
320
+ }>;
321
+ export declare const ListDatasetsArgsSchema: z.ZodObject<{
322
+ page: z.ZodOptional<z.ZodNumber>;
323
+ per_page: z.ZodOptional<z.ZodNumber>;
324
+ name: z.ZodOptional<z.ZodString>;
325
+ status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
326
+ dataset_group_id: z.ZodOptional<z.ZodNumber>;
327
+ prompt_id: z.ZodOptional<z.ZodNumber>;
328
+ prompt_version_id: z.ZodOptional<z.ZodNumber>;
329
+ prompt_label_id: z.ZodOptional<z.ZodNumber>;
330
+ report_id: z.ZodOptional<z.ZodNumber>;
331
+ workspace_id: z.ZodOptional<z.ZodNumber>;
332
+ api_key: z.ZodOptional<z.ZodString>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ workspace_id?: number | undefined;
335
+ status?: "active" | "deleted" | "all" | undefined;
336
+ api_key?: string | undefined;
337
+ page?: number | undefined;
338
+ per_page?: number | undefined;
339
+ name?: string | undefined;
340
+ prompt_id?: number | undefined;
341
+ prompt_version_id?: number | undefined;
342
+ prompt_label_id?: number | undefined;
343
+ dataset_group_id?: number | undefined;
344
+ report_id?: number | undefined;
345
+ }, {
346
+ workspace_id?: number | undefined;
347
+ status?: "active" | "deleted" | "all" | undefined;
348
+ api_key?: string | undefined;
349
+ page?: number | undefined;
350
+ per_page?: number | undefined;
351
+ name?: string | undefined;
352
+ prompt_id?: number | undefined;
353
+ prompt_version_id?: number | undefined;
354
+ prompt_label_id?: number | undefined;
355
+ dataset_group_id?: number | undefined;
356
+ report_id?: number | undefined;
357
+ }>;
358
+ export declare const CreateDatasetGroupArgsSchema: z.ZodObject<{
359
+ name: z.ZodOptional<z.ZodString>;
360
+ workspace_id: z.ZodOptional<z.ZodNumber>;
361
+ folder_id: z.ZodOptional<z.ZodNumber>;
362
+ api_key: z.ZodOptional<z.ZodString>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ workspace_id?: number | undefined;
365
+ api_key?: string | undefined;
366
+ name?: string | undefined;
367
+ folder_id?: number | undefined;
368
+ }, {
369
+ workspace_id?: number | undefined;
370
+ api_key?: string | undefined;
371
+ name?: string | undefined;
372
+ folder_id?: number | undefined;
373
+ }>;
374
+ export declare const CreateDatasetVersionFromFileArgsSchema: z.ZodObject<{
375
+ dataset_group_id: z.ZodNumber;
376
+ file_name: z.ZodString;
377
+ file_content_base64: z.ZodString;
378
+ api_key: z.ZodOptional<z.ZodString>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ dataset_group_id: number;
381
+ file_name: string;
382
+ file_content_base64: string;
383
+ api_key?: string | undefined;
384
+ }, {
385
+ dataset_group_id: number;
386
+ file_name: string;
387
+ file_content_base64: string;
388
+ api_key?: string | undefined;
389
+ }>;
390
+ export declare const CreateDatasetVersionFromFilterParamsArgsSchema: z.ZodObject<{
391
+ dataset_group_id: z.ZodNumber;
392
+ variables_to_parse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
393
+ prompt_id: z.ZodOptional<z.ZodNumber>;
394
+ prompt_version_id: z.ZodOptional<z.ZodNumber>;
395
+ prompt_label_id: z.ZodOptional<z.ZodNumber>;
396
+ workspace_id: z.ZodOptional<z.ZodNumber>;
397
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
398
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
399
+ start_time: z.ZodOptional<z.ZodString>;
400
+ end_time: z.ZodOptional<z.ZodString>;
401
+ id: z.ZodOptional<z.ZodNumber>;
402
+ limit: z.ZodOptional<z.ZodNumber>;
403
+ tags_and: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
404
+ tags_or: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
405
+ metadata_and: z.ZodOptional<z.ZodArray<z.ZodObject<{
406
+ key: z.ZodString;
407
+ value: z.ZodString;
408
+ }, "strip", z.ZodTypeAny, {
409
+ value: string;
410
+ key: string;
411
+ }, {
412
+ value: string;
413
+ key: string;
414
+ }>, "many">>;
415
+ metadata_or: z.ZodOptional<z.ZodArray<z.ZodObject<{
416
+ key: z.ZodString;
417
+ value: z.ZodString;
418
+ }, "strip", z.ZodTypeAny, {
419
+ value: string;
420
+ key: string;
421
+ }, {
422
+ value: string;
423
+ key: string;
424
+ }>, "many">>;
425
+ scores: z.ZodOptional<z.ZodArray<z.ZodObject<{
426
+ name: z.ZodString;
427
+ operator: z.ZodEnum<[">", "<", ">=", "<=", "="]>;
428
+ value: z.ZodNumber;
429
+ }, "strip", z.ZodTypeAny, {
430
+ value: number;
431
+ name: string;
432
+ operator: ">" | "<" | ">=" | "<=" | "=";
433
+ }, {
434
+ value: number;
435
+ name: string;
436
+ operator: ">" | "<" | ">=" | "<=" | "=";
437
+ }>, "many">>;
438
+ prompt_templates_include: z.ZodOptional<z.ZodArray<z.ZodObject<{
439
+ name: z.ZodString;
440
+ version_numbers: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
441
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ name: string;
444
+ version_numbers?: number[] | undefined;
445
+ labels?: string[] | undefined;
446
+ }, {
447
+ name: string;
448
+ version_numbers?: number[] | undefined;
449
+ labels?: string[] | undefined;
450
+ }>, "many">>;
451
+ prompt_templates_exclude: z.ZodOptional<z.ZodArray<z.ZodObject<{
452
+ name: z.ZodString;
453
+ version_numbers: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
454
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ name: string;
457
+ version_numbers?: number[] | undefined;
458
+ labels?: string[] | undefined;
459
+ }, {
460
+ name: string;
461
+ version_numbers?: number[] | undefined;
462
+ labels?: string[] | undefined;
463
+ }>, "many">>;
464
+ starred: z.ZodOptional<z.ZodBoolean>;
465
+ status: z.ZodOptional<z.ZodArray<z.ZodEnum<["SUCCESS", "WARNING", "ERROR"]>, "many">>;
466
+ sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "price", "score", "latency", "prompt_name", "status"]>>;
467
+ sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
468
+ order_by_random: z.ZodOptional<z.ZodBoolean>;
469
+ api_key: z.ZodOptional<z.ZodString>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ dataset_group_id: number;
472
+ workspace_id?: number | undefined;
473
+ status?: ("SUCCESS" | "WARNING" | "ERROR")[] | undefined;
474
+ api_key?: string | undefined;
475
+ tags?: string[] | undefined;
476
+ metadata?: Record<string, string> | undefined;
477
+ prompt_id?: number | undefined;
478
+ prompt_version_id?: number | undefined;
479
+ prompt_label_id?: number | undefined;
480
+ variables_to_parse?: string[] | undefined;
481
+ start_time?: string | undefined;
482
+ end_time?: string | undefined;
483
+ id?: number | undefined;
484
+ limit?: number | undefined;
485
+ tags_and?: string[] | undefined;
486
+ tags_or?: string[] | undefined;
487
+ metadata_and?: {
488
+ value: string;
489
+ key: string;
490
+ }[] | undefined;
491
+ metadata_or?: {
492
+ value: string;
493
+ key: string;
494
+ }[] | undefined;
495
+ scores?: {
496
+ value: number;
497
+ name: string;
498
+ operator: ">" | "<" | ">=" | "<=" | "=";
499
+ }[] | undefined;
500
+ prompt_templates_include?: {
501
+ name: string;
502
+ version_numbers?: number[] | undefined;
503
+ labels?: string[] | undefined;
504
+ }[] | undefined;
505
+ prompt_templates_exclude?: {
506
+ name: string;
507
+ version_numbers?: number[] | undefined;
508
+ labels?: string[] | undefined;
509
+ }[] | undefined;
510
+ starred?: boolean | undefined;
511
+ sort_by?: "prompt_name" | "status" | "request_start_time" | "input_tokens" | "output_tokens" | "price" | "score" | "latency" | undefined;
512
+ sort_order?: "asc" | "desc" | undefined;
513
+ order_by_random?: boolean | undefined;
514
+ }, {
515
+ dataset_group_id: number;
516
+ workspace_id?: number | undefined;
517
+ status?: ("SUCCESS" | "WARNING" | "ERROR")[] | undefined;
518
+ api_key?: string | undefined;
519
+ tags?: string[] | undefined;
520
+ metadata?: Record<string, string> | undefined;
521
+ prompt_id?: number | undefined;
522
+ prompt_version_id?: number | undefined;
523
+ prompt_label_id?: number | undefined;
524
+ variables_to_parse?: string[] | undefined;
525
+ start_time?: string | undefined;
526
+ end_time?: string | undefined;
527
+ id?: number | undefined;
528
+ limit?: number | undefined;
529
+ tags_and?: string[] | undefined;
530
+ tags_or?: string[] | undefined;
531
+ metadata_and?: {
532
+ value: string;
533
+ key: string;
534
+ }[] | undefined;
535
+ metadata_or?: {
536
+ value: string;
537
+ key: string;
538
+ }[] | undefined;
539
+ scores?: {
540
+ value: number;
541
+ name: string;
542
+ operator: ">" | "<" | ">=" | "<=" | "=";
543
+ }[] | undefined;
544
+ prompt_templates_include?: {
545
+ name: string;
546
+ version_numbers?: number[] | undefined;
547
+ labels?: string[] | undefined;
548
+ }[] | undefined;
549
+ prompt_templates_exclude?: {
550
+ name: string;
551
+ version_numbers?: number[] | undefined;
552
+ labels?: string[] | undefined;
553
+ }[] | undefined;
554
+ starred?: boolean | undefined;
555
+ sort_by?: "prompt_name" | "status" | "request_start_time" | "input_tokens" | "output_tokens" | "price" | "score" | "latency" | undefined;
556
+ sort_order?: "asc" | "desc" | undefined;
557
+ order_by_random?: boolean | undefined;
558
+ }>;
559
+ export declare const ListEvaluationsArgsSchema: z.ZodObject<{
560
+ page: z.ZodOptional<z.ZodNumber>;
561
+ per_page: z.ZodOptional<z.ZodNumber>;
562
+ name: z.ZodOptional<z.ZodString>;
563
+ status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
564
+ workspace_id: z.ZodOptional<z.ZodNumber>;
565
+ api_key: z.ZodOptional<z.ZodString>;
566
+ }, "strip", z.ZodTypeAny, {
567
+ workspace_id?: number | undefined;
568
+ status?: "active" | "deleted" | "all" | undefined;
569
+ api_key?: string | undefined;
570
+ page?: number | undefined;
571
+ per_page?: number | undefined;
572
+ name?: string | undefined;
573
+ }, {
574
+ workspace_id?: number | undefined;
575
+ status?: "active" | "deleted" | "all" | undefined;
576
+ api_key?: string | undefined;
577
+ page?: number | undefined;
578
+ per_page?: number | undefined;
579
+ name?: string | undefined;
580
+ }>;
581
+ export declare const CreateReportArgsSchema: z.ZodObject<{
582
+ dataset_group_id: z.ZodNumber;
583
+ name: z.ZodOptional<z.ZodString>;
584
+ folder_id: z.ZodOptional<z.ZodNumber>;
585
+ dataset_version_number: z.ZodOptional<z.ZodNumber>;
586
+ columns: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
587
+ score_configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
588
+ api_key: z.ZodOptional<z.ZodString>;
589
+ }, "strip", z.ZodTypeAny, {
590
+ dataset_group_id: number;
591
+ api_key?: string | undefined;
592
+ name?: string | undefined;
593
+ folder_id?: number | undefined;
594
+ dataset_version_number?: number | undefined;
595
+ columns?: Record<string, unknown>[] | undefined;
596
+ score_configuration?: Record<string, unknown> | undefined;
597
+ }, {
598
+ dataset_group_id: number;
599
+ api_key?: string | undefined;
600
+ name?: string | undefined;
601
+ folder_id?: number | undefined;
602
+ dataset_version_number?: number | undefined;
603
+ columns?: Record<string, unknown>[] | undefined;
604
+ score_configuration?: Record<string, unknown> | undefined;
605
+ }>;
606
+ export declare const RunReportArgsSchema: z.ZodObject<{
607
+ report_id: z.ZodNumber;
608
+ name: z.ZodString;
609
+ dataset_id: z.ZodOptional<z.ZodNumber>;
610
+ refresh_dataset: z.ZodOptional<z.ZodBoolean>;
611
+ api_key: z.ZodOptional<z.ZodString>;
612
+ }, "strip", z.ZodTypeAny, {
613
+ name: string;
614
+ report_id: number;
615
+ api_key?: string | undefined;
616
+ dataset_id?: number | undefined;
617
+ refresh_dataset?: boolean | undefined;
618
+ }, {
619
+ name: string;
620
+ report_id: number;
621
+ api_key?: string | undefined;
622
+ dataset_id?: number | undefined;
623
+ refresh_dataset?: boolean | undefined;
624
+ }>;
625
+ export declare const GetReportArgsSchema: z.ZodObject<{
626
+ report_id: z.ZodNumber;
627
+ api_key: z.ZodOptional<z.ZodString>;
628
+ }, "strip", z.ZodTypeAny, {
629
+ report_id: number;
630
+ api_key?: string | undefined;
631
+ }, {
632
+ report_id: number;
633
+ api_key?: string | undefined;
634
+ }>;
635
+ export declare const GetReportScoreArgsSchema: z.ZodObject<{
636
+ report_id: z.ZodNumber;
637
+ api_key: z.ZodOptional<z.ZodString>;
638
+ }, "strip", z.ZodTypeAny, {
639
+ report_id: number;
640
+ api_key?: string | undefined;
641
+ }, {
642
+ report_id: number;
643
+ api_key?: string | undefined;
644
+ }>;
645
+ export declare const UpdateReportScoreCardArgsSchema: z.ZodObject<{
646
+ report_id: z.ZodNumber;
647
+ column_names: z.ZodArray<z.ZodString, "many">;
648
+ code: z.ZodOptional<z.ZodString>;
649
+ code_language: z.ZodOptional<z.ZodEnum<["PYTHON", "JAVASCRIPT"]>>;
650
+ api_key: z.ZodOptional<z.ZodString>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ report_id: number;
653
+ column_names: string[];
654
+ code?: string | undefined;
655
+ api_key?: string | undefined;
656
+ code_language?: "PYTHON" | "JAVASCRIPT" | undefined;
657
+ }, {
658
+ report_id: number;
659
+ column_names: string[];
660
+ code?: string | undefined;
661
+ api_key?: string | undefined;
662
+ code_language?: "PYTHON" | "JAVASCRIPT" | undefined;
663
+ }>;
664
+ export declare const DeleteReportsByNameArgsSchema: z.ZodObject<{
665
+ report_name: z.ZodString;
666
+ api_key: z.ZodOptional<z.ZodString>;
667
+ }, "strip", z.ZodTypeAny, {
668
+ report_name: string;
669
+ api_key?: string | undefined;
670
+ }, {
671
+ report_name: string;
672
+ api_key?: string | undefined;
673
+ }>;
674
+ export declare const ListWorkflowsArgsSchema: z.ZodObject<{
675
+ page: z.ZodOptional<z.ZodNumber>;
676
+ per_page: z.ZodOptional<z.ZodNumber>;
677
+ api_key: z.ZodOptional<z.ZodString>;
678
+ }, "strip", z.ZodTypeAny, {
679
+ api_key?: string | undefined;
680
+ page?: number | undefined;
681
+ per_page?: number | undefined;
682
+ }, {
683
+ api_key?: string | undefined;
684
+ page?: number | undefined;
685
+ per_page?: number | undefined;
686
+ }>;
687
+ export declare const CreateWorkflowArgsSchema: z.ZodObject<{
688
+ name: z.ZodOptional<z.ZodString>;
689
+ workflow_id: z.ZodOptional<z.ZodNumber>;
690
+ workflow_name: z.ZodOptional<z.ZodString>;
691
+ folder_id: z.ZodOptional<z.ZodNumber>;
692
+ commit_message: z.ZodOptional<z.ZodString>;
693
+ nodes: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
694
+ required_input_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
695
+ edges: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
696
+ release_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
697
+ api_key: z.ZodOptional<z.ZodString>;
698
+ }, "strip", z.ZodTypeAny, {
699
+ nodes: Record<string, unknown>[];
700
+ api_key?: string | undefined;
701
+ name?: string | undefined;
702
+ folder_id?: number | undefined;
703
+ commit_message?: string | undefined;
704
+ release_labels?: string[] | undefined;
705
+ workflow_id?: number | undefined;
706
+ workflow_name?: string | undefined;
707
+ required_input_variables?: Record<string, string> | undefined;
708
+ edges?: Record<string, unknown>[] | undefined;
709
+ }, {
710
+ nodes: Record<string, unknown>[];
711
+ api_key?: string | undefined;
712
+ name?: string | undefined;
713
+ folder_id?: number | undefined;
714
+ commit_message?: string | undefined;
715
+ release_labels?: string[] | undefined;
716
+ workflow_id?: number | undefined;
717
+ workflow_name?: string | undefined;
718
+ required_input_variables?: Record<string, string> | undefined;
719
+ edges?: Record<string, unknown>[] | undefined;
720
+ }>;
721
+ export declare const PatchWorkflowArgsSchema: z.ZodObject<{
722
+ workflow_id_or_name: z.ZodString;
723
+ base_version: z.ZodOptional<z.ZodNumber>;
724
+ commit_message: z.ZodOptional<z.ZodString>;
725
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
726
+ required_input_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
727
+ edges: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
728
+ release_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
729
+ api_key: z.ZodOptional<z.ZodString>;
730
+ }, "strip", z.ZodTypeAny, {
731
+ workflow_id_or_name: string;
732
+ api_key?: string | undefined;
733
+ commit_message?: string | undefined;
734
+ release_labels?: string[] | undefined;
735
+ nodes?: Record<string, unknown> | undefined;
736
+ required_input_variables?: Record<string, string> | undefined;
737
+ edges?: Record<string, unknown>[] | undefined;
738
+ base_version?: number | undefined;
739
+ }, {
740
+ workflow_id_or_name: string;
741
+ api_key?: string | undefined;
742
+ commit_message?: string | undefined;
743
+ release_labels?: string[] | undefined;
744
+ nodes?: Record<string, unknown> | undefined;
745
+ required_input_variables?: Record<string, string> | undefined;
746
+ edges?: Record<string, unknown>[] | undefined;
747
+ base_version?: number | undefined;
748
+ }>;
749
+ export declare const RunWorkflowArgsSchema: z.ZodObject<{
750
+ workflow_name: z.ZodString;
751
+ input_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
752
+ workflow_version_number: z.ZodOptional<z.ZodNumber>;
753
+ workflow_label_name: z.ZodOptional<z.ZodString>;
754
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
755
+ return_all_outputs: z.ZodOptional<z.ZodBoolean>;
756
+ callback_url: z.ZodOptional<z.ZodString>;
757
+ api_key: z.ZodOptional<z.ZodString>;
758
+ }, "strip", z.ZodTypeAny, {
759
+ workflow_name: string;
760
+ input_variables?: Record<string, unknown> | undefined;
761
+ api_key?: string | undefined;
762
+ metadata?: Record<string, string> | undefined;
763
+ workflow_version_number?: number | undefined;
764
+ workflow_label_name?: string | undefined;
765
+ return_all_outputs?: boolean | undefined;
766
+ callback_url?: string | undefined;
767
+ }, {
768
+ workflow_name: string;
769
+ input_variables?: Record<string, unknown> | undefined;
770
+ api_key?: string | undefined;
771
+ metadata?: Record<string, string> | undefined;
772
+ workflow_version_number?: number | undefined;
773
+ workflow_label_name?: string | undefined;
774
+ return_all_outputs?: boolean | undefined;
775
+ callback_url?: string | undefined;
776
+ }>;
777
+ export declare const GetWorkflowVersionExecutionResultsArgsSchema: z.ZodObject<{
778
+ workflow_version_execution_id: z.ZodNumber;
779
+ return_all_outputs: z.ZodOptional<z.ZodBoolean>;
780
+ workflow_node_id: z.ZodOptional<z.ZodNumber>;
781
+ workflow_node_name: z.ZodOptional<z.ZodString>;
782
+ api_key: z.ZodOptional<z.ZodString>;
783
+ }, "strip", z.ZodTypeAny, {
784
+ workflow_version_execution_id: number;
785
+ api_key?: string | undefined;
786
+ return_all_outputs?: boolean | undefined;
787
+ workflow_node_id?: number | undefined;
788
+ workflow_node_name?: string | undefined;
789
+ }, {
790
+ workflow_version_execution_id: number;
791
+ api_key?: string | undefined;
792
+ return_all_outputs?: boolean | undefined;
793
+ workflow_node_id?: number | undefined;
794
+ workflow_node_name?: string | undefined;
795
+ }>;
796
+ export declare const GetWorkflowArgsSchema: z.ZodObject<{
797
+ workflow_id_or_name: z.ZodString;
798
+ api_key: z.ZodOptional<z.ZodString>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ workflow_id_or_name: string;
801
+ api_key?: string | undefined;
802
+ }, {
803
+ workflow_id_or_name: string;
804
+ api_key?: string | undefined;
805
+ }>;
806
+ export declare const CreateFolderArgsSchema: z.ZodObject<{
807
+ name: z.ZodString;
808
+ parent_id: z.ZodOptional<z.ZodNumber>;
809
+ workspace_id: z.ZodOptional<z.ZodNumber>;
810
+ api_key: z.ZodOptional<z.ZodString>;
811
+ }, "strip", z.ZodTypeAny, {
812
+ name: string;
813
+ workspace_id?: number | undefined;
814
+ api_key?: string | undefined;
815
+ parent_id?: number | undefined;
816
+ }, {
817
+ name: string;
818
+ workspace_id?: number | undefined;
819
+ api_key?: string | undefined;
820
+ parent_id?: number | undefined;
821
+ }>;
822
+ export declare const EditFolderArgsSchema: z.ZodObject<{
823
+ folder_id: z.ZodNumber;
824
+ name: z.ZodString;
825
+ api_key: z.ZodOptional<z.ZodString>;
826
+ }, "strip", z.ZodTypeAny, {
827
+ name: string;
828
+ folder_id: number;
829
+ api_key?: string | undefined;
830
+ }, {
831
+ name: string;
832
+ folder_id: number;
833
+ api_key?: string | undefined;
834
+ }>;
835
+ export declare const GetFolderEntitiesArgsSchema: z.ZodObject<{
836
+ folder_id: z.ZodOptional<z.ZodNumber>;
837
+ filter_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["FOLDER", "PROMPT", "SNIPPET", "WORKFLOW", "DATASET", "REPORT", "AB_TEST", "INPUT_VARIABLE_SET"]>, z.ZodArray<z.ZodEnum<["FOLDER", "PROMPT", "SNIPPET", "WORKFLOW", "DATASET", "REPORT", "AB_TEST", "INPUT_VARIABLE_SET"]>, "many">]>>;
838
+ search_query: z.ZodOptional<z.ZodString>;
839
+ flatten: z.ZodOptional<z.ZodBoolean>;
840
+ include_metadata: z.ZodOptional<z.ZodBoolean>;
841
+ workspace_id: z.ZodOptional<z.ZodNumber>;
842
+ api_key: z.ZodOptional<z.ZodString>;
843
+ }, "strip", z.ZodTypeAny, {
844
+ workspace_id?: number | undefined;
845
+ api_key?: string | undefined;
846
+ folder_id?: number | undefined;
847
+ filter_type?: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET" | ("FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET")[] | undefined;
848
+ search_query?: string | undefined;
849
+ flatten?: boolean | undefined;
850
+ include_metadata?: boolean | undefined;
851
+ }, {
852
+ workspace_id?: number | undefined;
853
+ api_key?: string | undefined;
854
+ folder_id?: number | undefined;
855
+ filter_type?: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET" | ("FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET")[] | undefined;
856
+ search_query?: string | undefined;
857
+ flatten?: boolean | undefined;
858
+ include_metadata?: boolean | undefined;
859
+ }>;
860
+ export declare const MoveFolderEntitiesArgsSchema: z.ZodObject<{
861
+ entities: z.ZodArray<z.ZodObject<{
862
+ id: z.ZodNumber;
863
+ type: z.ZodEnum<["FOLDER", "PROMPT", "SNIPPET", "WORKFLOW", "DATASET", "REPORT", "AB_TEST", "INPUT_VARIABLE_SET"]>;
864
+ }, "strip", z.ZodTypeAny, {
865
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
866
+ id: number;
867
+ }, {
868
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
869
+ id: number;
870
+ }>, "many">;
871
+ folder_id: z.ZodOptional<z.ZodNumber>;
872
+ workspace_id: z.ZodOptional<z.ZodNumber>;
873
+ api_key: z.ZodOptional<z.ZodString>;
874
+ }, "strip", z.ZodTypeAny, {
875
+ entities: {
876
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
877
+ id: number;
878
+ }[];
879
+ workspace_id?: number | undefined;
880
+ api_key?: string | undefined;
881
+ folder_id?: number | undefined;
882
+ }, {
883
+ entities: {
884
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
885
+ id: number;
886
+ }[];
887
+ workspace_id?: number | undefined;
888
+ api_key?: string | undefined;
889
+ folder_id?: number | undefined;
890
+ }>;
891
+ export declare const DeleteFolderEntitiesArgsSchema: z.ZodObject<{
892
+ entities: z.ZodArray<z.ZodObject<{
893
+ id: z.ZodNumber;
894
+ type: z.ZodEnum<["FOLDER", "PROMPT", "SNIPPET", "WORKFLOW", "DATASET", "REPORT", "AB_TEST", "INPUT_VARIABLE_SET"]>;
895
+ }, "strip", z.ZodTypeAny, {
896
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
897
+ id: number;
898
+ }, {
899
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
900
+ id: number;
901
+ }>, "many">;
902
+ cascade: z.ZodOptional<z.ZodBoolean>;
903
+ workspace_id: z.ZodOptional<z.ZodNumber>;
904
+ api_key: z.ZodOptional<z.ZodString>;
905
+ }, "strip", z.ZodTypeAny, {
906
+ entities: {
907
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
908
+ id: number;
909
+ }[];
910
+ workspace_id?: number | undefined;
911
+ api_key?: string | undefined;
912
+ cascade?: boolean | undefined;
913
+ }, {
914
+ entities: {
915
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
916
+ id: number;
917
+ }[];
918
+ workspace_id?: number | undefined;
919
+ api_key?: string | undefined;
920
+ cascade?: boolean | undefined;
921
+ }>;
922
+ export declare const ResolveFolderIdArgsSchema: z.ZodObject<{
923
+ path: z.ZodString;
924
+ workspace_id: z.ZodOptional<z.ZodNumber>;
925
+ api_key: z.ZodOptional<z.ZodString>;
926
+ }, "strip", z.ZodTypeAny, {
927
+ path: string;
928
+ workspace_id?: number | undefined;
929
+ api_key?: string | undefined;
930
+ }, {
931
+ path: string;
932
+ workspace_id?: number | undefined;
933
+ api_key?: string | undefined;
934
+ }>;
935
+ export type GetPromptTemplateParams = Omit<z.infer<typeof GetPromptTemplateArgsSchema>, "prompt_name" | "api_key">;
936
+ export type ListPromptTemplatesParams = Omit<z.infer<typeof ListPromptTemplatesArgsSchema>, "api_key">;
937
+ export declare const TOOL_DEFINITIONS: {
938
+ readonly "get-prompt-template": {
939
+ readonly name: "get-prompt-template";
940
+ readonly description: string;
941
+ readonly inputSchema: z.ZodObject<{
942
+ prompt_name: z.ZodString;
943
+ version: z.ZodOptional<z.ZodNumber>;
944
+ workspace_id: z.ZodOptional<z.ZodNumber>;
945
+ label: z.ZodOptional<z.ZodString>;
946
+ provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "amazon.bedrock", "cohere", "google", "huggingface", "mistral", "openai.azure", "vertexai"]>>;
947
+ input_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
948
+ metadata_filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
949
+ model: z.ZodOptional<z.ZodString>;
950
+ model_parameter_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
951
+ api_key: z.ZodOptional<z.ZodString>;
952
+ }, "strip", z.ZodTypeAny, {
953
+ prompt_name: string;
954
+ version?: number | undefined;
955
+ workspace_id?: number | undefined;
956
+ label?: string | undefined;
957
+ provider?: "openai" | "anthropic" | "amazon.bedrock" | "cohere" | "google" | "huggingface" | "mistral" | "openai.azure" | "vertexai" | undefined;
958
+ input_variables?: Record<string, string> | undefined;
959
+ metadata_filters?: Record<string, string> | undefined;
960
+ model?: string | undefined;
961
+ model_parameter_overrides?: Record<string, unknown> | undefined;
962
+ api_key?: string | undefined;
963
+ }, {
964
+ prompt_name: string;
965
+ version?: number | undefined;
966
+ workspace_id?: number | undefined;
967
+ label?: string | undefined;
968
+ provider?: "openai" | "anthropic" | "amazon.bedrock" | "cohere" | "google" | "huggingface" | "mistral" | "openai.azure" | "vertexai" | undefined;
969
+ input_variables?: Record<string, string> | undefined;
970
+ metadata_filters?: Record<string, string> | undefined;
971
+ model?: string | undefined;
972
+ model_parameter_overrides?: Record<string, unknown> | undefined;
973
+ api_key?: string | undefined;
974
+ }>;
975
+ readonly annotations: {
976
+ readonly readOnlyHint: true;
977
+ };
978
+ };
979
+ readonly "get-prompt-template-raw": {
980
+ readonly name: "get-prompt-template-raw";
981
+ readonly description: string;
982
+ readonly inputSchema: z.ZodObject<{
983
+ identifier: z.ZodString;
984
+ version: z.ZodOptional<z.ZodNumber>;
985
+ label: z.ZodOptional<z.ZodString>;
986
+ resolve_snippets: z.ZodOptional<z.ZodBoolean>;
987
+ include_llm_kwargs: z.ZodOptional<z.ZodBoolean>;
988
+ api_key: z.ZodOptional<z.ZodString>;
989
+ }, "strip", z.ZodTypeAny, {
990
+ identifier: string;
991
+ version?: number | undefined;
992
+ label?: string | undefined;
993
+ api_key?: string | undefined;
994
+ resolve_snippets?: boolean | undefined;
995
+ include_llm_kwargs?: boolean | undefined;
996
+ }, {
997
+ identifier: string;
998
+ version?: number | undefined;
999
+ label?: string | undefined;
1000
+ api_key?: string | undefined;
1001
+ resolve_snippets?: boolean | undefined;
1002
+ include_llm_kwargs?: boolean | undefined;
1003
+ }>;
1004
+ readonly annotations: {
1005
+ readonly readOnlyHint: true;
1006
+ };
1007
+ };
1008
+ readonly "list-prompt-templates": {
1009
+ readonly name: "list-prompt-templates";
1010
+ readonly description: "List all prompt templates in the workspace with pagination. Filter by name, release label, or status.";
1011
+ readonly inputSchema: z.ZodObject<{
1012
+ page: z.ZodOptional<z.ZodNumber>;
1013
+ per_page: z.ZodOptional<z.ZodNumber>;
1014
+ label: z.ZodOptional<z.ZodString>;
1015
+ name: z.ZodOptional<z.ZodString>;
1016
+ status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
1017
+ workspace_id: z.ZodOptional<z.ZodNumber>;
1018
+ api_key: z.ZodOptional<z.ZodString>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ workspace_id?: number | undefined;
1021
+ label?: string | undefined;
1022
+ status?: "active" | "deleted" | "all" | undefined;
1023
+ api_key?: string | undefined;
1024
+ page?: number | undefined;
1025
+ per_page?: number | undefined;
1026
+ name?: string | undefined;
1027
+ }, {
1028
+ workspace_id?: number | undefined;
1029
+ label?: string | undefined;
1030
+ status?: "active" | "deleted" | "all" | undefined;
1031
+ api_key?: string | undefined;
1032
+ page?: number | undefined;
1033
+ per_page?: number | undefined;
1034
+ name?: string | undefined;
1035
+ }>;
1036
+ readonly annotations: {
1037
+ readonly readOnlyHint: true;
1038
+ };
1039
+ };
1040
+ readonly "publish-prompt-template": {
1041
+ readonly name: "publish-prompt-template";
1042
+ readonly description: string;
1043
+ readonly inputSchema: z.ZodObject<{
1044
+ prompt_template: z.ZodObject<{
1045
+ prompt_name: z.ZodString;
1046
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1047
+ folder_id: z.ZodOptional<z.ZodNumber>;
1048
+ workspace_id: z.ZodOptional<z.ZodNumber>;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ prompt_name: string;
1051
+ workspace_id?: number | undefined;
1052
+ tags?: string[] | undefined;
1053
+ folder_id?: number | undefined;
1054
+ }, {
1055
+ prompt_name: string;
1056
+ workspace_id?: number | undefined;
1057
+ tags?: string[] | undefined;
1058
+ folder_id?: number | undefined;
1059
+ }>;
1060
+ prompt_version: z.ZodObject<{
1061
+ prompt_template: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1062
+ commit_message: z.ZodOptional<z.ZodString>;
1063
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1064
+ provider_base_url_name: z.ZodOptional<z.ZodString>;
1065
+ provider_id: z.ZodOptional<z.ZodNumber>;
1066
+ inference_client_name: z.ZodOptional<z.ZodString>;
1067
+ }, "strip", z.ZodTypeAny, {
1068
+ prompt_template: Record<string, unknown>;
1069
+ commit_message?: string | undefined;
1070
+ metadata?: Record<string, unknown> | undefined;
1071
+ provider_base_url_name?: string | undefined;
1072
+ provider_id?: number | undefined;
1073
+ inference_client_name?: string | undefined;
1074
+ }, {
1075
+ prompt_template: Record<string, unknown>;
1076
+ commit_message?: string | undefined;
1077
+ metadata?: Record<string, unknown> | undefined;
1078
+ provider_base_url_name?: string | undefined;
1079
+ provider_id?: number | undefined;
1080
+ inference_client_name?: string | undefined;
1081
+ }>;
1082
+ release_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1083
+ snippet_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1084
+ api_key: z.ZodOptional<z.ZodString>;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ prompt_template: {
1087
+ prompt_name: string;
1088
+ workspace_id?: number | undefined;
1089
+ tags?: string[] | undefined;
1090
+ folder_id?: number | undefined;
1091
+ };
1092
+ prompt_version: {
1093
+ prompt_template: Record<string, unknown>;
1094
+ commit_message?: string | undefined;
1095
+ metadata?: Record<string, unknown> | undefined;
1096
+ provider_base_url_name?: string | undefined;
1097
+ provider_id?: number | undefined;
1098
+ inference_client_name?: string | undefined;
1099
+ };
1100
+ api_key?: string | undefined;
1101
+ release_labels?: string[] | undefined;
1102
+ snippet_overrides?: Record<string, string> | undefined;
1103
+ }, {
1104
+ prompt_template: {
1105
+ prompt_name: string;
1106
+ workspace_id?: number | undefined;
1107
+ tags?: string[] | undefined;
1108
+ folder_id?: number | undefined;
1109
+ };
1110
+ prompt_version: {
1111
+ prompt_template: Record<string, unknown>;
1112
+ commit_message?: string | undefined;
1113
+ metadata?: Record<string, unknown> | undefined;
1114
+ provider_base_url_name?: string | undefined;
1115
+ provider_id?: number | undefined;
1116
+ inference_client_name?: string | undefined;
1117
+ };
1118
+ api_key?: string | undefined;
1119
+ release_labels?: string[] | undefined;
1120
+ snippet_overrides?: Record<string, string> | undefined;
1121
+ }>;
1122
+ readonly annotations: {
1123
+ readonly readOnlyHint: false;
1124
+ };
1125
+ };
1126
+ readonly "list-prompt-template-labels": {
1127
+ readonly name: "list-prompt-template-labels";
1128
+ readonly description: "List all release labels assigned to a prompt template.";
1129
+ readonly inputSchema: z.ZodObject<{
1130
+ identifier: z.ZodString;
1131
+ api_key: z.ZodOptional<z.ZodString>;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ identifier: string;
1134
+ api_key?: string | undefined;
1135
+ }, {
1136
+ identifier: string;
1137
+ api_key?: string | undefined;
1138
+ }>;
1139
+ readonly annotations: {
1140
+ readonly readOnlyHint: true;
1141
+ };
1142
+ };
1143
+ readonly "create-prompt-label": {
1144
+ readonly name: "create-prompt-label";
1145
+ readonly description: "Attach a release label to a prompt template version. Requires prompt_id (path) and body with prompt_version_number and label name.";
1146
+ readonly inputSchema: z.ZodObject<{
1147
+ prompt_id: z.ZodNumber;
1148
+ prompt_version_number: z.ZodOptional<z.ZodNumber>;
1149
+ prompt_version_id: z.ZodOptional<z.ZodNumber>;
1150
+ name: z.ZodString;
1151
+ api_key: z.ZodOptional<z.ZodString>;
1152
+ }, "strip", z.ZodTypeAny, {
1153
+ name: string;
1154
+ prompt_id: number;
1155
+ api_key?: string | undefined;
1156
+ prompt_version_number?: number | undefined;
1157
+ prompt_version_id?: number | undefined;
1158
+ }, {
1159
+ name: string;
1160
+ prompt_id: number;
1161
+ api_key?: string | undefined;
1162
+ prompt_version_number?: number | undefined;
1163
+ prompt_version_id?: number | undefined;
1164
+ }>;
1165
+ readonly annotations: {
1166
+ readonly readOnlyHint: false;
1167
+ };
1168
+ };
1169
+ readonly "move-prompt-label": {
1170
+ readonly name: "move-prompt-label";
1171
+ readonly description: "Move a release label to a different prompt version. Provide prompt_version_number to reassign the label.";
1172
+ readonly inputSchema: z.ZodObject<{
1173
+ prompt_label_id: z.ZodNumber;
1174
+ prompt_version_number: z.ZodOptional<z.ZodNumber>;
1175
+ prompt_version_id: z.ZodOptional<z.ZodNumber>;
1176
+ api_key: z.ZodOptional<z.ZodString>;
1177
+ }, "strip", z.ZodTypeAny, {
1178
+ prompt_label_id: number;
1179
+ api_key?: string | undefined;
1180
+ prompt_version_number?: number | undefined;
1181
+ prompt_version_id?: number | undefined;
1182
+ }, {
1183
+ prompt_label_id: number;
1184
+ api_key?: string | undefined;
1185
+ prompt_version_number?: number | undefined;
1186
+ prompt_version_id?: number | undefined;
1187
+ }>;
1188
+ readonly annotations: {
1189
+ readonly readOnlyHint: false;
1190
+ };
1191
+ };
1192
+ readonly "delete-prompt-label": {
1193
+ readonly name: "delete-prompt-label";
1194
+ readonly description: "Delete a release label from a prompt template version.";
1195
+ readonly inputSchema: z.ZodObject<{
1196
+ prompt_label_id: z.ZodNumber;
1197
+ api_key: z.ZodOptional<z.ZodString>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ prompt_label_id: number;
1200
+ api_key?: string | undefined;
1201
+ }, {
1202
+ prompt_label_id: number;
1203
+ api_key?: string | undefined;
1204
+ }>;
1205
+ readonly annotations: {
1206
+ readonly readOnlyHint: false;
1207
+ };
1208
+ };
1209
+ readonly "get-snippet-usage": {
1210
+ readonly name: "get-snippet-usage";
1211
+ readonly description: "Find all prompts that reference a given snippet. Returns prompt names, versions, and labels that use it.";
1212
+ readonly inputSchema: z.ZodObject<{
1213
+ identifier: z.ZodString;
1214
+ prompt_version_number: z.ZodOptional<z.ZodNumber>;
1215
+ api_key: z.ZodOptional<z.ZodString>;
1216
+ }, "strip", z.ZodTypeAny, {
1217
+ identifier: string;
1218
+ api_key?: string | undefined;
1219
+ prompt_version_number?: number | undefined;
1220
+ }, {
1221
+ identifier: string;
1222
+ api_key?: string | undefined;
1223
+ prompt_version_number?: number | undefined;
1224
+ }>;
1225
+ readonly annotations: {
1226
+ readonly readOnlyHint: true;
1227
+ };
1228
+ };
1229
+ readonly "log-request": {
1230
+ readonly name: "log-request";
1231
+ readonly description: string;
1232
+ readonly inputSchema: z.ZodObject<{
1233
+ provider: z.ZodString;
1234
+ model: z.ZodString;
1235
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1236
+ output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1237
+ request_start_time: z.ZodString;
1238
+ request_end_time: z.ZodString;
1239
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1240
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1241
+ score_name: z.ZodOptional<z.ZodString>;
1242
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1243
+ prompt_name: z.ZodOptional<z.ZodString>;
1244
+ prompt_id: z.ZodOptional<z.ZodNumber>;
1245
+ prompt_version_number: z.ZodOptional<z.ZodNumber>;
1246
+ prompt_input_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1247
+ input_tokens: z.ZodOptional<z.ZodNumber>;
1248
+ output_tokens: z.ZodOptional<z.ZodNumber>;
1249
+ price: z.ZodOptional<z.ZodNumber>;
1250
+ function_name: z.ZodOptional<z.ZodString>;
1251
+ score: z.ZodOptional<z.ZodNumber>;
1252
+ api_type: z.ZodOptional<z.ZodString>;
1253
+ status: z.ZodOptional<z.ZodEnum<["SUCCESS", "WARNING", "ERROR"]>>;
1254
+ error_type: z.ZodOptional<z.ZodEnum<["PROVIDER_TIMEOUT", "PROVIDER_QUOTA_LIMIT", "PROVIDER_RATE_LIMIT", "PROVIDER_AUTH_ERROR", "PROVIDER_ERROR", "TEMPLATE_RENDER_ERROR", "VARIABLE_MISSING_OR_EMPTY", "UNKNOWN_ERROR"]>>;
1255
+ error_message: z.ZodOptional<z.ZodString>;
1256
+ api_key: z.ZodOptional<z.ZodString>;
1257
+ }, "strip", z.ZodTypeAny, {
1258
+ provider: string;
1259
+ model: string;
1260
+ input: Record<string, unknown>;
1261
+ output: Record<string, unknown>;
1262
+ request_start_time: string;
1263
+ request_end_time: string;
1264
+ prompt_name?: string | undefined;
1265
+ status?: "SUCCESS" | "WARNING" | "ERROR" | undefined;
1266
+ api_key?: string | undefined;
1267
+ tags?: string[] | undefined;
1268
+ metadata?: Record<string, string> | undefined;
1269
+ prompt_id?: number | undefined;
1270
+ prompt_version_number?: number | undefined;
1271
+ parameters?: Record<string, unknown> | undefined;
1272
+ score_name?: string | undefined;
1273
+ prompt_input_variables?: Record<string, unknown> | undefined;
1274
+ input_tokens?: number | undefined;
1275
+ output_tokens?: number | undefined;
1276
+ price?: number | undefined;
1277
+ function_name?: string | undefined;
1278
+ score?: number | undefined;
1279
+ api_type?: string | undefined;
1280
+ error_type?: "PROVIDER_TIMEOUT" | "PROVIDER_QUOTA_LIMIT" | "PROVIDER_RATE_LIMIT" | "PROVIDER_AUTH_ERROR" | "PROVIDER_ERROR" | "TEMPLATE_RENDER_ERROR" | "VARIABLE_MISSING_OR_EMPTY" | "UNKNOWN_ERROR" | undefined;
1281
+ error_message?: string | undefined;
1282
+ }, {
1283
+ provider: string;
1284
+ model: string;
1285
+ input: Record<string, unknown>;
1286
+ output: Record<string, unknown>;
1287
+ request_start_time: string;
1288
+ request_end_time: string;
1289
+ prompt_name?: string | undefined;
1290
+ status?: "SUCCESS" | "WARNING" | "ERROR" | undefined;
1291
+ api_key?: string | undefined;
1292
+ tags?: string[] | undefined;
1293
+ metadata?: Record<string, string> | undefined;
1294
+ prompt_id?: number | undefined;
1295
+ prompt_version_number?: number | undefined;
1296
+ parameters?: Record<string, unknown> | undefined;
1297
+ score_name?: string | undefined;
1298
+ prompt_input_variables?: Record<string, unknown> | undefined;
1299
+ input_tokens?: number | undefined;
1300
+ output_tokens?: number | undefined;
1301
+ price?: number | undefined;
1302
+ function_name?: string | undefined;
1303
+ score?: number | undefined;
1304
+ api_type?: string | undefined;
1305
+ error_type?: "PROVIDER_TIMEOUT" | "PROVIDER_QUOTA_LIMIT" | "PROVIDER_RATE_LIMIT" | "PROVIDER_AUTH_ERROR" | "PROVIDER_ERROR" | "TEMPLATE_RENDER_ERROR" | "VARIABLE_MISSING_OR_EMPTY" | "UNKNOWN_ERROR" | undefined;
1306
+ error_message?: string | undefined;
1307
+ }>;
1308
+ readonly annotations: {
1309
+ readonly readOnlyHint: false;
1310
+ };
1311
+ };
1312
+ readonly "create-spans-bulk": {
1313
+ readonly name: "create-spans-bulk";
1314
+ readonly description: "Create OpenTelemetry-compatible spans in bulk for distributed tracing. Each span can optionally include a log_request.";
1315
+ readonly inputSchema: z.ZodObject<{
1316
+ spans: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
1317
+ api_key: z.ZodOptional<z.ZodString>;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ spans: Record<string, unknown>[];
1320
+ api_key?: string | undefined;
1321
+ }, {
1322
+ spans: Record<string, unknown>[];
1323
+ api_key?: string | undefined;
1324
+ }>;
1325
+ readonly annotations: {
1326
+ readonly readOnlyHint: false;
1327
+ };
1328
+ };
1329
+ readonly "list-datasets": {
1330
+ readonly name: "list-datasets";
1331
+ readonly description: "List datasets with pagination. Filter by name, status, dataset_group_id, prompt_id, report_id, etc.";
1332
+ readonly inputSchema: z.ZodObject<{
1333
+ page: z.ZodOptional<z.ZodNumber>;
1334
+ per_page: z.ZodOptional<z.ZodNumber>;
1335
+ name: z.ZodOptional<z.ZodString>;
1336
+ status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
1337
+ dataset_group_id: z.ZodOptional<z.ZodNumber>;
1338
+ prompt_id: z.ZodOptional<z.ZodNumber>;
1339
+ prompt_version_id: z.ZodOptional<z.ZodNumber>;
1340
+ prompt_label_id: z.ZodOptional<z.ZodNumber>;
1341
+ report_id: z.ZodOptional<z.ZodNumber>;
1342
+ workspace_id: z.ZodOptional<z.ZodNumber>;
1343
+ api_key: z.ZodOptional<z.ZodString>;
1344
+ }, "strip", z.ZodTypeAny, {
1345
+ workspace_id?: number | undefined;
1346
+ status?: "active" | "deleted" | "all" | undefined;
1347
+ api_key?: string | undefined;
1348
+ page?: number | undefined;
1349
+ per_page?: number | undefined;
1350
+ name?: string | undefined;
1351
+ prompt_id?: number | undefined;
1352
+ prompt_version_id?: number | undefined;
1353
+ prompt_label_id?: number | undefined;
1354
+ dataset_group_id?: number | undefined;
1355
+ report_id?: number | undefined;
1356
+ }, {
1357
+ workspace_id?: number | undefined;
1358
+ status?: "active" | "deleted" | "all" | undefined;
1359
+ api_key?: string | undefined;
1360
+ page?: number | undefined;
1361
+ per_page?: number | undefined;
1362
+ name?: string | undefined;
1363
+ prompt_id?: number | undefined;
1364
+ prompt_version_id?: number | undefined;
1365
+ prompt_label_id?: number | undefined;
1366
+ dataset_group_id?: number | undefined;
1367
+ report_id?: number | undefined;
1368
+ }>;
1369
+ readonly annotations: {
1370
+ readonly readOnlyHint: true;
1371
+ };
1372
+ };
1373
+ readonly "create-dataset-group": {
1374
+ readonly name: "create-dataset-group";
1375
+ readonly description: "Create a dataset group. An empty draft version (version_number=-1) is created automatically. Names must be unique per workspace.";
1376
+ readonly inputSchema: z.ZodObject<{
1377
+ name: z.ZodOptional<z.ZodString>;
1378
+ workspace_id: z.ZodOptional<z.ZodNumber>;
1379
+ folder_id: z.ZodOptional<z.ZodNumber>;
1380
+ api_key: z.ZodOptional<z.ZodString>;
1381
+ }, "strip", z.ZodTypeAny, {
1382
+ workspace_id?: number | undefined;
1383
+ api_key?: string | undefined;
1384
+ name?: string | undefined;
1385
+ folder_id?: number | undefined;
1386
+ }, {
1387
+ workspace_id?: number | undefined;
1388
+ api_key?: string | undefined;
1389
+ name?: string | undefined;
1390
+ folder_id?: number | undefined;
1391
+ }>;
1392
+ readonly annotations: {
1393
+ readonly readOnlyHint: false;
1394
+ };
1395
+ };
1396
+ readonly "create-dataset-version-from-file": {
1397
+ readonly name: "create-dataset-version-from-file";
1398
+ readonly description: "Create a dataset version by uploading base64-encoded CSV/JSON content. Processed asynchronously. Max 100MB.";
1399
+ readonly inputSchema: z.ZodObject<{
1400
+ dataset_group_id: z.ZodNumber;
1401
+ file_name: z.ZodString;
1402
+ file_content_base64: z.ZodString;
1403
+ api_key: z.ZodOptional<z.ZodString>;
1404
+ }, "strip", z.ZodTypeAny, {
1405
+ dataset_group_id: number;
1406
+ file_name: string;
1407
+ file_content_base64: string;
1408
+ api_key?: string | undefined;
1409
+ }, {
1410
+ dataset_group_id: number;
1411
+ file_name: string;
1412
+ file_content_base64: string;
1413
+ api_key?: string | undefined;
1414
+ }>;
1415
+ readonly annotations: {
1416
+ readonly readOnlyHint: false;
1417
+ };
1418
+ };
1419
+ readonly "create-dataset-version-from-filter-params": {
1420
+ readonly name: "create-dataset-version-from-filter-params";
1421
+ readonly description: "Create a dataset version from request log history using filter criteria. Populated asynchronously.";
1422
+ readonly inputSchema: z.ZodObject<{
1423
+ dataset_group_id: z.ZodNumber;
1424
+ variables_to_parse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1425
+ prompt_id: z.ZodOptional<z.ZodNumber>;
1426
+ prompt_version_id: z.ZodOptional<z.ZodNumber>;
1427
+ prompt_label_id: z.ZodOptional<z.ZodNumber>;
1428
+ workspace_id: z.ZodOptional<z.ZodNumber>;
1429
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1430
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1431
+ start_time: z.ZodOptional<z.ZodString>;
1432
+ end_time: z.ZodOptional<z.ZodString>;
1433
+ id: z.ZodOptional<z.ZodNumber>;
1434
+ limit: z.ZodOptional<z.ZodNumber>;
1435
+ tags_and: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1436
+ tags_or: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1437
+ metadata_and: z.ZodOptional<z.ZodArray<z.ZodObject<{
1438
+ key: z.ZodString;
1439
+ value: z.ZodString;
1440
+ }, "strip", z.ZodTypeAny, {
1441
+ value: string;
1442
+ key: string;
1443
+ }, {
1444
+ value: string;
1445
+ key: string;
1446
+ }>, "many">>;
1447
+ metadata_or: z.ZodOptional<z.ZodArray<z.ZodObject<{
1448
+ key: z.ZodString;
1449
+ value: z.ZodString;
1450
+ }, "strip", z.ZodTypeAny, {
1451
+ value: string;
1452
+ key: string;
1453
+ }, {
1454
+ value: string;
1455
+ key: string;
1456
+ }>, "many">>;
1457
+ scores: z.ZodOptional<z.ZodArray<z.ZodObject<{
1458
+ name: z.ZodString;
1459
+ operator: z.ZodEnum<[">", "<", ">=", "<=", "="]>;
1460
+ value: z.ZodNumber;
1461
+ }, "strip", z.ZodTypeAny, {
1462
+ value: number;
1463
+ name: string;
1464
+ operator: ">" | "<" | ">=" | "<=" | "=";
1465
+ }, {
1466
+ value: number;
1467
+ name: string;
1468
+ operator: ">" | "<" | ">=" | "<=" | "=";
1469
+ }>, "many">>;
1470
+ prompt_templates_include: z.ZodOptional<z.ZodArray<z.ZodObject<{
1471
+ name: z.ZodString;
1472
+ version_numbers: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1473
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1474
+ }, "strip", z.ZodTypeAny, {
1475
+ name: string;
1476
+ version_numbers?: number[] | undefined;
1477
+ labels?: string[] | undefined;
1478
+ }, {
1479
+ name: string;
1480
+ version_numbers?: number[] | undefined;
1481
+ labels?: string[] | undefined;
1482
+ }>, "many">>;
1483
+ prompt_templates_exclude: z.ZodOptional<z.ZodArray<z.ZodObject<{
1484
+ name: z.ZodString;
1485
+ version_numbers: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1486
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1487
+ }, "strip", z.ZodTypeAny, {
1488
+ name: string;
1489
+ version_numbers?: number[] | undefined;
1490
+ labels?: string[] | undefined;
1491
+ }, {
1492
+ name: string;
1493
+ version_numbers?: number[] | undefined;
1494
+ labels?: string[] | undefined;
1495
+ }>, "many">>;
1496
+ starred: z.ZodOptional<z.ZodBoolean>;
1497
+ status: z.ZodOptional<z.ZodArray<z.ZodEnum<["SUCCESS", "WARNING", "ERROR"]>, "many">>;
1498
+ sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "price", "score", "latency", "prompt_name", "status"]>>;
1499
+ sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1500
+ order_by_random: z.ZodOptional<z.ZodBoolean>;
1501
+ api_key: z.ZodOptional<z.ZodString>;
1502
+ }, "strip", z.ZodTypeAny, {
1503
+ dataset_group_id: number;
1504
+ workspace_id?: number | undefined;
1505
+ status?: ("SUCCESS" | "WARNING" | "ERROR")[] | undefined;
1506
+ api_key?: string | undefined;
1507
+ tags?: string[] | undefined;
1508
+ metadata?: Record<string, string> | undefined;
1509
+ prompt_id?: number | undefined;
1510
+ prompt_version_id?: number | undefined;
1511
+ prompt_label_id?: number | undefined;
1512
+ variables_to_parse?: string[] | undefined;
1513
+ start_time?: string | undefined;
1514
+ end_time?: string | undefined;
1515
+ id?: number | undefined;
1516
+ limit?: number | undefined;
1517
+ tags_and?: string[] | undefined;
1518
+ tags_or?: string[] | undefined;
1519
+ metadata_and?: {
1520
+ value: string;
1521
+ key: string;
1522
+ }[] | undefined;
1523
+ metadata_or?: {
1524
+ value: string;
1525
+ key: string;
1526
+ }[] | undefined;
1527
+ scores?: {
1528
+ value: number;
1529
+ name: string;
1530
+ operator: ">" | "<" | ">=" | "<=" | "=";
1531
+ }[] | undefined;
1532
+ prompt_templates_include?: {
1533
+ name: string;
1534
+ version_numbers?: number[] | undefined;
1535
+ labels?: string[] | undefined;
1536
+ }[] | undefined;
1537
+ prompt_templates_exclude?: {
1538
+ name: string;
1539
+ version_numbers?: number[] | undefined;
1540
+ labels?: string[] | undefined;
1541
+ }[] | undefined;
1542
+ starred?: boolean | undefined;
1543
+ sort_by?: "prompt_name" | "status" | "request_start_time" | "input_tokens" | "output_tokens" | "price" | "score" | "latency" | undefined;
1544
+ sort_order?: "asc" | "desc" | undefined;
1545
+ order_by_random?: boolean | undefined;
1546
+ }, {
1547
+ dataset_group_id: number;
1548
+ workspace_id?: number | undefined;
1549
+ status?: ("SUCCESS" | "WARNING" | "ERROR")[] | undefined;
1550
+ api_key?: string | undefined;
1551
+ tags?: string[] | undefined;
1552
+ metadata?: Record<string, string> | undefined;
1553
+ prompt_id?: number | undefined;
1554
+ prompt_version_id?: number | undefined;
1555
+ prompt_label_id?: number | undefined;
1556
+ variables_to_parse?: string[] | undefined;
1557
+ start_time?: string | undefined;
1558
+ end_time?: string | undefined;
1559
+ id?: number | undefined;
1560
+ limit?: number | undefined;
1561
+ tags_and?: string[] | undefined;
1562
+ tags_or?: string[] | undefined;
1563
+ metadata_and?: {
1564
+ value: string;
1565
+ key: string;
1566
+ }[] | undefined;
1567
+ metadata_or?: {
1568
+ value: string;
1569
+ key: string;
1570
+ }[] | undefined;
1571
+ scores?: {
1572
+ value: number;
1573
+ name: string;
1574
+ operator: ">" | "<" | ">=" | "<=" | "=";
1575
+ }[] | undefined;
1576
+ prompt_templates_include?: {
1577
+ name: string;
1578
+ version_numbers?: number[] | undefined;
1579
+ labels?: string[] | undefined;
1580
+ }[] | undefined;
1581
+ prompt_templates_exclude?: {
1582
+ name: string;
1583
+ version_numbers?: number[] | undefined;
1584
+ labels?: string[] | undefined;
1585
+ }[] | undefined;
1586
+ starred?: boolean | undefined;
1587
+ sort_by?: "prompt_name" | "status" | "request_start_time" | "input_tokens" | "output_tokens" | "price" | "score" | "latency" | undefined;
1588
+ sort_order?: "asc" | "desc" | undefined;
1589
+ order_by_random?: boolean | undefined;
1590
+ }>;
1591
+ readonly annotations: {
1592
+ readonly readOnlyHint: false;
1593
+ };
1594
+ };
1595
+ readonly "list-evaluations": {
1596
+ readonly name: "list-evaluations";
1597
+ readonly description: "List evaluation pipelines (called 'reports' in the API) with pagination. Filter by name, status, workspace_id.";
1598
+ readonly inputSchema: z.ZodObject<{
1599
+ page: z.ZodOptional<z.ZodNumber>;
1600
+ per_page: z.ZodOptional<z.ZodNumber>;
1601
+ name: z.ZodOptional<z.ZodString>;
1602
+ status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
1603
+ workspace_id: z.ZodOptional<z.ZodNumber>;
1604
+ api_key: z.ZodOptional<z.ZodString>;
1605
+ }, "strip", z.ZodTypeAny, {
1606
+ workspace_id?: number | undefined;
1607
+ status?: "active" | "deleted" | "all" | undefined;
1608
+ api_key?: string | undefined;
1609
+ page?: number | undefined;
1610
+ per_page?: number | undefined;
1611
+ name?: string | undefined;
1612
+ }, {
1613
+ workspace_id?: number | undefined;
1614
+ status?: "active" | "deleted" | "all" | undefined;
1615
+ api_key?: string | undefined;
1616
+ page?: number | undefined;
1617
+ per_page?: number | undefined;
1618
+ name?: string | undefined;
1619
+ }>;
1620
+ readonly annotations: {
1621
+ readonly readOnlyHint: true;
1622
+ };
1623
+ };
1624
+ readonly "create-report": {
1625
+ readonly name: "create-report";
1626
+ readonly description: "Create an evaluation pipeline (called 'report' in the API) linked to a dataset group. The recommended approach is to add LLM assertion columns that use a language model to score each row. For all available column types, search the PromptLayer docs or visit https://docs.promptlayer.com/features/evaluations/column-types.";
1627
+ readonly inputSchema: z.ZodObject<{
1628
+ dataset_group_id: z.ZodNumber;
1629
+ name: z.ZodOptional<z.ZodString>;
1630
+ folder_id: z.ZodOptional<z.ZodNumber>;
1631
+ dataset_version_number: z.ZodOptional<z.ZodNumber>;
1632
+ columns: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1633
+ score_configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1634
+ api_key: z.ZodOptional<z.ZodString>;
1635
+ }, "strip", z.ZodTypeAny, {
1636
+ dataset_group_id: number;
1637
+ api_key?: string | undefined;
1638
+ name?: string | undefined;
1639
+ folder_id?: number | undefined;
1640
+ dataset_version_number?: number | undefined;
1641
+ columns?: Record<string, unknown>[] | undefined;
1642
+ score_configuration?: Record<string, unknown> | undefined;
1643
+ }, {
1644
+ dataset_group_id: number;
1645
+ api_key?: string | undefined;
1646
+ name?: string | undefined;
1647
+ folder_id?: number | undefined;
1648
+ dataset_version_number?: number | undefined;
1649
+ columns?: Record<string, unknown>[] | undefined;
1650
+ score_configuration?: Record<string, unknown> | undefined;
1651
+ }>;
1652
+ readonly annotations: {
1653
+ readonly readOnlyHint: false;
1654
+ };
1655
+ };
1656
+ readonly "run-report": {
1657
+ readonly name: "run-report";
1658
+ readonly description: "Execute an evaluation pipeline. Runs all columns against the dataset and produces scores. Name is required.";
1659
+ readonly inputSchema: z.ZodObject<{
1660
+ report_id: z.ZodNumber;
1661
+ name: z.ZodString;
1662
+ dataset_id: z.ZodOptional<z.ZodNumber>;
1663
+ refresh_dataset: z.ZodOptional<z.ZodBoolean>;
1664
+ api_key: z.ZodOptional<z.ZodString>;
1665
+ }, "strip", z.ZodTypeAny, {
1666
+ name: string;
1667
+ report_id: number;
1668
+ api_key?: string | undefined;
1669
+ dataset_id?: number | undefined;
1670
+ refresh_dataset?: boolean | undefined;
1671
+ }, {
1672
+ name: string;
1673
+ report_id: number;
1674
+ api_key?: string | undefined;
1675
+ dataset_id?: number | undefined;
1676
+ refresh_dataset?: boolean | undefined;
1677
+ }>;
1678
+ readonly annotations: {
1679
+ readonly readOnlyHint: false;
1680
+ };
1681
+ };
1682
+ readonly "get-report": {
1683
+ readonly name: "get-report";
1684
+ readonly description: "Get evaluation pipeline details including columns and configuration. Use get-report-score for the computed score.";
1685
+ readonly inputSchema: z.ZodObject<{
1686
+ report_id: z.ZodNumber;
1687
+ api_key: z.ZodOptional<z.ZodString>;
1688
+ }, "strip", z.ZodTypeAny, {
1689
+ report_id: number;
1690
+ api_key?: string | undefined;
1691
+ }, {
1692
+ report_id: number;
1693
+ api_key?: string | undefined;
1694
+ }>;
1695
+ readonly annotations: {
1696
+ readonly readOnlyHint: true;
1697
+ };
1698
+ };
1699
+ readonly "get-report-score": {
1700
+ readonly name: "get-report-score";
1701
+ readonly description: "Get the computed score for an evaluation pipeline.";
1702
+ readonly inputSchema: z.ZodObject<{
1703
+ report_id: z.ZodNumber;
1704
+ api_key: z.ZodOptional<z.ZodString>;
1705
+ }, "strip", z.ZodTypeAny, {
1706
+ report_id: number;
1707
+ api_key?: string | undefined;
1708
+ }, {
1709
+ report_id: number;
1710
+ api_key?: string | undefined;
1711
+ }>;
1712
+ readonly annotations: {
1713
+ readonly readOnlyHint: true;
1714
+ };
1715
+ };
1716
+ readonly "update-report-score-card": {
1717
+ readonly name: "update-report-score-card";
1718
+ readonly description: "Configure custom scoring for an evaluation pipeline. Specify which column_names contribute to the score, with optional custom code.";
1719
+ readonly inputSchema: z.ZodObject<{
1720
+ report_id: z.ZodNumber;
1721
+ column_names: z.ZodArray<z.ZodString, "many">;
1722
+ code: z.ZodOptional<z.ZodString>;
1723
+ code_language: z.ZodOptional<z.ZodEnum<["PYTHON", "JAVASCRIPT"]>>;
1724
+ api_key: z.ZodOptional<z.ZodString>;
1725
+ }, "strip", z.ZodTypeAny, {
1726
+ report_id: number;
1727
+ column_names: string[];
1728
+ code?: string | undefined;
1729
+ api_key?: string | undefined;
1730
+ code_language?: "PYTHON" | "JAVASCRIPT" | undefined;
1731
+ }, {
1732
+ report_id: number;
1733
+ column_names: string[];
1734
+ code?: string | undefined;
1735
+ api_key?: string | undefined;
1736
+ code_language?: "PYTHON" | "JAVASCRIPT" | undefined;
1737
+ }>;
1738
+ readonly annotations: {
1739
+ readonly readOnlyHint: false;
1740
+ };
1741
+ };
1742
+ readonly "delete-reports-by-name": {
1743
+ readonly name: "delete-reports-by-name";
1744
+ readonly description: "Archive all evaluation pipelines matching the given name.";
1745
+ readonly inputSchema: z.ZodObject<{
1746
+ report_name: z.ZodString;
1747
+ api_key: z.ZodOptional<z.ZodString>;
1748
+ }, "strip", z.ZodTypeAny, {
1749
+ report_name: string;
1750
+ api_key?: string | undefined;
1751
+ }, {
1752
+ report_name: string;
1753
+ api_key?: string | undefined;
1754
+ }>;
1755
+ readonly annotations: {
1756
+ readonly readOnlyHint: false;
1757
+ };
1758
+ };
1759
+ readonly "list-workflows": {
1760
+ readonly name: "list-workflows";
1761
+ readonly description: "List all agents (called 'workflows' in the API) in the workspace with pagination.";
1762
+ readonly inputSchema: z.ZodObject<{
1763
+ page: z.ZodOptional<z.ZodNumber>;
1764
+ per_page: z.ZodOptional<z.ZodNumber>;
1765
+ api_key: z.ZodOptional<z.ZodString>;
1766
+ }, "strip", z.ZodTypeAny, {
1767
+ api_key?: string | undefined;
1768
+ page?: number | undefined;
1769
+ per_page?: number | undefined;
1770
+ }, {
1771
+ api_key?: string | undefined;
1772
+ page?: number | undefined;
1773
+ per_page?: number | undefined;
1774
+ }>;
1775
+ readonly annotations: {
1776
+ readonly readOnlyHint: true;
1777
+ };
1778
+ };
1779
+ readonly "create-workflow": {
1780
+ readonly name: "create-workflow";
1781
+ readonly description: "Create a new agent (called 'workflow' in the API) or a new version of an existing one. For new: use 'name'. For versioning: use workflow_id or workflow_name.";
1782
+ readonly inputSchema: z.ZodObject<{
1783
+ name: z.ZodOptional<z.ZodString>;
1784
+ workflow_id: z.ZodOptional<z.ZodNumber>;
1785
+ workflow_name: z.ZodOptional<z.ZodString>;
1786
+ folder_id: z.ZodOptional<z.ZodNumber>;
1787
+ commit_message: z.ZodOptional<z.ZodString>;
1788
+ nodes: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
1789
+ required_input_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1790
+ edges: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1791
+ release_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1792
+ api_key: z.ZodOptional<z.ZodString>;
1793
+ }, "strip", z.ZodTypeAny, {
1794
+ nodes: Record<string, unknown>[];
1795
+ api_key?: string | undefined;
1796
+ name?: string | undefined;
1797
+ folder_id?: number | undefined;
1798
+ commit_message?: string | undefined;
1799
+ release_labels?: string[] | undefined;
1800
+ workflow_id?: number | undefined;
1801
+ workflow_name?: string | undefined;
1802
+ required_input_variables?: Record<string, string> | undefined;
1803
+ edges?: Record<string, unknown>[] | undefined;
1804
+ }, {
1805
+ nodes: Record<string, unknown>[];
1806
+ api_key?: string | undefined;
1807
+ name?: string | undefined;
1808
+ folder_id?: number | undefined;
1809
+ commit_message?: string | undefined;
1810
+ release_labels?: string[] | undefined;
1811
+ workflow_id?: number | undefined;
1812
+ workflow_name?: string | undefined;
1813
+ required_input_variables?: Record<string, string> | undefined;
1814
+ edges?: Record<string, unknown>[] | undefined;
1815
+ }>;
1816
+ readonly annotations: {
1817
+ readonly readOnlyHint: false;
1818
+ };
1819
+ };
1820
+ readonly "patch-workflow": {
1821
+ readonly name: "patch-workflow";
1822
+ readonly description: "Partially update an agent. Merges node changes into a new version. Set a node value to null to remove it.";
1823
+ readonly inputSchema: z.ZodObject<{
1824
+ workflow_id_or_name: z.ZodString;
1825
+ base_version: z.ZodOptional<z.ZodNumber>;
1826
+ commit_message: z.ZodOptional<z.ZodString>;
1827
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1828
+ required_input_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1829
+ edges: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1830
+ release_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1831
+ api_key: z.ZodOptional<z.ZodString>;
1832
+ }, "strip", z.ZodTypeAny, {
1833
+ workflow_id_or_name: string;
1834
+ api_key?: string | undefined;
1835
+ commit_message?: string | undefined;
1836
+ release_labels?: string[] | undefined;
1837
+ nodes?: Record<string, unknown> | undefined;
1838
+ required_input_variables?: Record<string, string> | undefined;
1839
+ edges?: Record<string, unknown>[] | undefined;
1840
+ base_version?: number | undefined;
1841
+ }, {
1842
+ workflow_id_or_name: string;
1843
+ api_key?: string | undefined;
1844
+ commit_message?: string | undefined;
1845
+ release_labels?: string[] | undefined;
1846
+ nodes?: Record<string, unknown> | undefined;
1847
+ required_input_variables?: Record<string, string> | undefined;
1848
+ edges?: Record<string, unknown>[] | undefined;
1849
+ base_version?: number | undefined;
1850
+ }>;
1851
+ readonly annotations: {
1852
+ readonly readOnlyHint: false;
1853
+ };
1854
+ };
1855
+ readonly "run-workflow": {
1856
+ readonly name: "run-workflow";
1857
+ readonly description: "Execute an agent by name. Returns results synchronously, or returns immediately with an execution ID if callback_url is set for async webhook delivery.";
1858
+ readonly inputSchema: z.ZodObject<{
1859
+ workflow_name: z.ZodString;
1860
+ input_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1861
+ workflow_version_number: z.ZodOptional<z.ZodNumber>;
1862
+ workflow_label_name: z.ZodOptional<z.ZodString>;
1863
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1864
+ return_all_outputs: z.ZodOptional<z.ZodBoolean>;
1865
+ callback_url: z.ZodOptional<z.ZodString>;
1866
+ api_key: z.ZodOptional<z.ZodString>;
1867
+ }, "strip", z.ZodTypeAny, {
1868
+ workflow_name: string;
1869
+ input_variables?: Record<string, unknown> | undefined;
1870
+ api_key?: string | undefined;
1871
+ metadata?: Record<string, string> | undefined;
1872
+ workflow_version_number?: number | undefined;
1873
+ workflow_label_name?: string | undefined;
1874
+ return_all_outputs?: boolean | undefined;
1875
+ callback_url?: string | undefined;
1876
+ }, {
1877
+ workflow_name: string;
1878
+ input_variables?: Record<string, unknown> | undefined;
1879
+ api_key?: string | undefined;
1880
+ metadata?: Record<string, string> | undefined;
1881
+ workflow_version_number?: number | undefined;
1882
+ workflow_label_name?: string | undefined;
1883
+ return_all_outputs?: boolean | undefined;
1884
+ callback_url?: string | undefined;
1885
+ }>;
1886
+ readonly annotations: {
1887
+ readonly readOnlyHint: false;
1888
+ };
1889
+ };
1890
+ readonly "get-workflow-version-execution-results": {
1891
+ readonly name: "get-workflow-version-execution-results";
1892
+ readonly description: "Poll for agent execution results by execution ID. Returns results when complete, or indicates still running.";
1893
+ readonly inputSchema: z.ZodObject<{
1894
+ workflow_version_execution_id: z.ZodNumber;
1895
+ return_all_outputs: z.ZodOptional<z.ZodBoolean>;
1896
+ workflow_node_id: z.ZodOptional<z.ZodNumber>;
1897
+ workflow_node_name: z.ZodOptional<z.ZodString>;
1898
+ api_key: z.ZodOptional<z.ZodString>;
1899
+ }, "strip", z.ZodTypeAny, {
1900
+ workflow_version_execution_id: number;
1901
+ api_key?: string | undefined;
1902
+ return_all_outputs?: boolean | undefined;
1903
+ workflow_node_id?: number | undefined;
1904
+ workflow_node_name?: string | undefined;
1905
+ }, {
1906
+ workflow_version_execution_id: number;
1907
+ api_key?: string | undefined;
1908
+ return_all_outputs?: boolean | undefined;
1909
+ workflow_node_id?: number | undefined;
1910
+ workflow_node_name?: string | undefined;
1911
+ }>;
1912
+ readonly annotations: {
1913
+ readonly readOnlyHint: true;
1914
+ };
1915
+ };
1916
+ readonly "get-workflow": {
1917
+ readonly name: "get-workflow";
1918
+ readonly description: "Get a single agent (called 'workflow' in the API) by ID or name. Returns the agent details and configuration.";
1919
+ readonly inputSchema: z.ZodObject<{
1920
+ workflow_id_or_name: z.ZodString;
1921
+ api_key: z.ZodOptional<z.ZodString>;
1922
+ }, "strip", z.ZodTypeAny, {
1923
+ workflow_id_or_name: string;
1924
+ api_key?: string | undefined;
1925
+ }, {
1926
+ workflow_id_or_name: string;
1927
+ api_key?: string | undefined;
1928
+ }>;
1929
+ readonly annotations: {
1930
+ readonly readOnlyHint: true;
1931
+ };
1932
+ };
1933
+ readonly "create-folder": {
1934
+ readonly name: "create-folder";
1935
+ readonly description: "Create a folder for organizing resources. Nest with parent_id. Names unique within parent.";
1936
+ readonly inputSchema: z.ZodObject<{
1937
+ name: z.ZodString;
1938
+ parent_id: z.ZodOptional<z.ZodNumber>;
1939
+ workspace_id: z.ZodOptional<z.ZodNumber>;
1940
+ api_key: z.ZodOptional<z.ZodString>;
1941
+ }, "strip", z.ZodTypeAny, {
1942
+ name: string;
1943
+ workspace_id?: number | undefined;
1944
+ api_key?: string | undefined;
1945
+ parent_id?: number | undefined;
1946
+ }, {
1947
+ name: string;
1948
+ workspace_id?: number | undefined;
1949
+ api_key?: string | undefined;
1950
+ parent_id?: number | undefined;
1951
+ }>;
1952
+ readonly annotations: {
1953
+ readonly readOnlyHint: false;
1954
+ };
1955
+ };
1956
+ readonly "edit-folder": {
1957
+ readonly name: "edit-folder";
1958
+ readonly description: "Rename a folder. Name must be unique within the parent folder.";
1959
+ readonly inputSchema: z.ZodObject<{
1960
+ folder_id: z.ZodNumber;
1961
+ name: z.ZodString;
1962
+ api_key: z.ZodOptional<z.ZodString>;
1963
+ }, "strip", z.ZodTypeAny, {
1964
+ name: string;
1965
+ folder_id: number;
1966
+ api_key?: string | undefined;
1967
+ }, {
1968
+ name: string;
1969
+ folder_id: number;
1970
+ api_key?: string | undefined;
1971
+ }>;
1972
+ readonly annotations: {
1973
+ readonly readOnlyHint: false;
1974
+ };
1975
+ };
1976
+ readonly "get-folder-entities": {
1977
+ readonly name: "get-folder-entities";
1978
+ readonly description: "List entities (prompts, agents, datasets, evaluations, folders, etc.) in a folder. Returns root-level entities if folder_id is omitted. Use flatten=true to include all nested contents. Supports search and type filtering.";
1979
+ readonly inputSchema: z.ZodObject<{
1980
+ folder_id: z.ZodOptional<z.ZodNumber>;
1981
+ filter_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["FOLDER", "PROMPT", "SNIPPET", "WORKFLOW", "DATASET", "REPORT", "AB_TEST", "INPUT_VARIABLE_SET"]>, z.ZodArray<z.ZodEnum<["FOLDER", "PROMPT", "SNIPPET", "WORKFLOW", "DATASET", "REPORT", "AB_TEST", "INPUT_VARIABLE_SET"]>, "many">]>>;
1982
+ search_query: z.ZodOptional<z.ZodString>;
1983
+ flatten: z.ZodOptional<z.ZodBoolean>;
1984
+ include_metadata: z.ZodOptional<z.ZodBoolean>;
1985
+ workspace_id: z.ZodOptional<z.ZodNumber>;
1986
+ api_key: z.ZodOptional<z.ZodString>;
1987
+ }, "strip", z.ZodTypeAny, {
1988
+ workspace_id?: number | undefined;
1989
+ api_key?: string | undefined;
1990
+ folder_id?: number | undefined;
1991
+ filter_type?: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET" | ("FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET")[] | undefined;
1992
+ search_query?: string | undefined;
1993
+ flatten?: boolean | undefined;
1994
+ include_metadata?: boolean | undefined;
1995
+ }, {
1996
+ workspace_id?: number | undefined;
1997
+ api_key?: string | undefined;
1998
+ folder_id?: number | undefined;
1999
+ filter_type?: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET" | ("FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET")[] | undefined;
2000
+ search_query?: string | undefined;
2001
+ flatten?: boolean | undefined;
2002
+ include_metadata?: boolean | undefined;
2003
+ }>;
2004
+ readonly annotations: {
2005
+ readonly readOnlyHint: true;
2006
+ };
2007
+ };
2008
+ readonly "move-folder-entities": {
2009
+ readonly name: "move-folder-entities";
2010
+ readonly description: "Move entities (prompts, agents, datasets, evaluations, folders) into a target folder. Omit folder_id to move to workspace root.";
2011
+ readonly inputSchema: z.ZodObject<{
2012
+ entities: z.ZodArray<z.ZodObject<{
2013
+ id: z.ZodNumber;
2014
+ type: z.ZodEnum<["FOLDER", "PROMPT", "SNIPPET", "WORKFLOW", "DATASET", "REPORT", "AB_TEST", "INPUT_VARIABLE_SET"]>;
2015
+ }, "strip", z.ZodTypeAny, {
2016
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
2017
+ id: number;
2018
+ }, {
2019
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
2020
+ id: number;
2021
+ }>, "many">;
2022
+ folder_id: z.ZodOptional<z.ZodNumber>;
2023
+ workspace_id: z.ZodOptional<z.ZodNumber>;
2024
+ api_key: z.ZodOptional<z.ZodString>;
2025
+ }, "strip", z.ZodTypeAny, {
2026
+ entities: {
2027
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
2028
+ id: number;
2029
+ }[];
2030
+ workspace_id?: number | undefined;
2031
+ api_key?: string | undefined;
2032
+ folder_id?: number | undefined;
2033
+ }, {
2034
+ entities: {
2035
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
2036
+ id: number;
2037
+ }[];
2038
+ workspace_id?: number | undefined;
2039
+ api_key?: string | undefined;
2040
+ folder_id?: number | undefined;
2041
+ }>;
2042
+ readonly annotations: {
2043
+ readonly readOnlyHint: false;
2044
+ };
2045
+ };
2046
+ readonly "delete-folder-entities": {
2047
+ readonly name: "delete-folder-entities";
2048
+ readonly description: "Permanently delete entities (prompts, agents, datasets, evaluations, folders). WARNING: This is destructive and cannot be undone. Use cascade=true to recursively delete all folder contents.";
2049
+ readonly inputSchema: z.ZodObject<{
2050
+ entities: z.ZodArray<z.ZodObject<{
2051
+ id: z.ZodNumber;
2052
+ type: z.ZodEnum<["FOLDER", "PROMPT", "SNIPPET", "WORKFLOW", "DATASET", "REPORT", "AB_TEST", "INPUT_VARIABLE_SET"]>;
2053
+ }, "strip", z.ZodTypeAny, {
2054
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
2055
+ id: number;
2056
+ }, {
2057
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
2058
+ id: number;
2059
+ }>, "many">;
2060
+ cascade: z.ZodOptional<z.ZodBoolean>;
2061
+ workspace_id: z.ZodOptional<z.ZodNumber>;
2062
+ api_key: z.ZodOptional<z.ZodString>;
2063
+ }, "strip", z.ZodTypeAny, {
2064
+ entities: {
2065
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
2066
+ id: number;
2067
+ }[];
2068
+ workspace_id?: number | undefined;
2069
+ api_key?: string | undefined;
2070
+ cascade?: boolean | undefined;
2071
+ }, {
2072
+ entities: {
2073
+ type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
2074
+ id: number;
2075
+ }[];
2076
+ workspace_id?: number | undefined;
2077
+ api_key?: string | undefined;
2078
+ cascade?: boolean | undefined;
2079
+ }>;
2080
+ readonly annotations: {
2081
+ readonly readOnlyHint: false;
2082
+ };
2083
+ };
2084
+ readonly "resolve-folder-id": {
2085
+ readonly name: "resolve-folder-id";
2086
+ readonly description: "Resolve a folder path (e.g. 'foo/bar') to a folder ID.";
2087
+ readonly inputSchema: z.ZodObject<{
2088
+ path: z.ZodString;
2089
+ workspace_id: z.ZodOptional<z.ZodNumber>;
2090
+ api_key: z.ZodOptional<z.ZodString>;
2091
+ }, "strip", z.ZodTypeAny, {
2092
+ path: string;
2093
+ workspace_id?: number | undefined;
2094
+ api_key?: string | undefined;
2095
+ }, {
2096
+ path: string;
2097
+ workspace_id?: number | undefined;
2098
+ api_key?: string | undefined;
2099
+ }>;
2100
+ readonly annotations: {
2101
+ readonly readOnlyHint: true;
2102
+ };
2103
+ };
2104
+ };
2105
+ //# sourceMappingURL=types.d.ts.map