@promptlayer/mcp-server 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client.d.ts +1 -0
- package/build/client.d.ts.map +1 -1
- package/build/client.js +1 -0
- package/build/client.js.map +1 -1
- package/build/handlers.d.ts.map +1 -1
- package/build/handlers.js +1 -0
- package/build/handlers.js.map +1 -1
- package/build/types.d.ts +52 -145
- package/build/types.d.ts.map +1 -1
- package/build/types.js +33 -22
- package/build/types.js.map +1 -1
- package/gcp/src/index.ts +1 -0
- package/package.json +1 -1
- package/src/client.ts +1 -0
- package/src/handlers.ts +3 -0
- package/src/types.ts +36 -22
package/build/types.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { z } from "zod";
|
|
|
7
7
|
export declare const GetPromptTemplateArgsSchema: z.ZodObject<{
|
|
8
8
|
prompt_name: z.ZodString;
|
|
9
9
|
version: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
11
10
|
label: z.ZodOptional<z.ZodString>;
|
|
12
11
|
provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "amazon.bedrock", "cohere", "google", "huggingface", "mistral", "openai.azure", "vertexai"]>>;
|
|
13
12
|
input_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -18,7 +17,6 @@ export declare const GetPromptTemplateArgsSchema: z.ZodObject<{
|
|
|
18
17
|
}, "strip", z.ZodTypeAny, {
|
|
19
18
|
prompt_name: string;
|
|
20
19
|
version?: number | undefined;
|
|
21
|
-
workspace_id?: number | undefined;
|
|
22
20
|
label?: string | undefined;
|
|
23
21
|
provider?: "openai" | "anthropic" | "amazon.bedrock" | "cohere" | "google" | "huggingface" | "mistral" | "openai.azure" | "vertexai" | undefined;
|
|
24
22
|
input_variables?: Record<string, string> | undefined;
|
|
@@ -29,7 +27,6 @@ export declare const GetPromptTemplateArgsSchema: z.ZodObject<{
|
|
|
29
27
|
}, {
|
|
30
28
|
prompt_name: string;
|
|
31
29
|
version?: number | undefined;
|
|
32
|
-
workspace_id?: number | undefined;
|
|
33
30
|
label?: string | undefined;
|
|
34
31
|
provider?: "openai" | "anthropic" | "amazon.bedrock" | "cohere" | "google" | "huggingface" | "mistral" | "openai.azure" | "vertexai" | undefined;
|
|
35
32
|
input_variables?: Record<string, string> | undefined;
|
|
@@ -67,10 +64,8 @@ export declare const ListPromptTemplatesArgsSchema: z.ZodObject<{
|
|
|
67
64
|
name: z.ZodOptional<z.ZodString>;
|
|
68
65
|
tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
69
66
|
status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
|
|
70
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
71
67
|
api_key: z.ZodOptional<z.ZodString>;
|
|
72
68
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
workspace_id?: number | undefined;
|
|
74
69
|
label?: string | undefined;
|
|
75
70
|
status?: "active" | "deleted" | "all" | undefined;
|
|
76
71
|
api_key?: string | undefined;
|
|
@@ -79,7 +74,6 @@ export declare const ListPromptTemplatesArgsSchema: z.ZodObject<{
|
|
|
79
74
|
name?: string | undefined;
|
|
80
75
|
tags?: string | string[] | undefined;
|
|
81
76
|
}, {
|
|
82
|
-
workspace_id?: number | undefined;
|
|
83
77
|
label?: string | undefined;
|
|
84
78
|
status?: "active" | "deleted" | "all" | undefined;
|
|
85
79
|
api_key?: string | undefined;
|
|
@@ -93,15 +87,12 @@ export declare const PublishPromptTemplateArgsSchema: z.ZodObject<{
|
|
|
93
87
|
prompt_name: z.ZodString;
|
|
94
88
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
95
89
|
folder_id: z.ZodOptional<z.ZodNumber>;
|
|
96
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
97
90
|
}, "strip", z.ZodTypeAny, {
|
|
98
91
|
prompt_name: string;
|
|
99
|
-
workspace_id?: number | undefined;
|
|
100
92
|
tags?: string[] | undefined;
|
|
101
93
|
folder_id?: number | undefined;
|
|
102
94
|
}, {
|
|
103
95
|
prompt_name: string;
|
|
104
|
-
workspace_id?: number | undefined;
|
|
105
96
|
tags?: string[] | undefined;
|
|
106
97
|
folder_id?: number | undefined;
|
|
107
98
|
}>;
|
|
@@ -133,7 +124,6 @@ export declare const PublishPromptTemplateArgsSchema: z.ZodObject<{
|
|
|
133
124
|
}, "strip", z.ZodTypeAny, {
|
|
134
125
|
prompt_template: {
|
|
135
126
|
prompt_name: string;
|
|
136
|
-
workspace_id?: number | undefined;
|
|
137
127
|
tags?: string[] | undefined;
|
|
138
128
|
folder_id?: number | undefined;
|
|
139
129
|
};
|
|
@@ -151,7 +141,6 @@ export declare const PublishPromptTemplateArgsSchema: z.ZodObject<{
|
|
|
151
141
|
}, {
|
|
152
142
|
prompt_template: {
|
|
153
143
|
prompt_name: string;
|
|
154
|
-
workspace_id?: number | undefined;
|
|
155
144
|
tags?: string[] | undefined;
|
|
156
145
|
folder_id?: number | undefined;
|
|
157
146
|
};
|
|
@@ -331,10 +320,8 @@ export declare const ListDatasetsArgsSchema: z.ZodObject<{
|
|
|
331
320
|
prompt_version_id: z.ZodOptional<z.ZodNumber>;
|
|
332
321
|
prompt_label_id: z.ZodOptional<z.ZodNumber>;
|
|
333
322
|
report_id: z.ZodOptional<z.ZodNumber>;
|
|
334
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
335
323
|
api_key: z.ZodOptional<z.ZodString>;
|
|
336
324
|
}, "strip", z.ZodTypeAny, {
|
|
337
|
-
workspace_id?: number | undefined;
|
|
338
325
|
status?: "active" | "deleted" | "all" | undefined;
|
|
339
326
|
api_key?: string | undefined;
|
|
340
327
|
page?: number | undefined;
|
|
@@ -346,7 +333,6 @@ export declare const ListDatasetsArgsSchema: z.ZodObject<{
|
|
|
346
333
|
dataset_group_id?: number | undefined;
|
|
347
334
|
report_id?: number | undefined;
|
|
348
335
|
}, {
|
|
349
|
-
workspace_id?: number | undefined;
|
|
350
336
|
status?: "active" | "deleted" | "all" | undefined;
|
|
351
337
|
api_key?: string | undefined;
|
|
352
338
|
page?: number | undefined;
|
|
@@ -360,16 +346,13 @@ export declare const ListDatasetsArgsSchema: z.ZodObject<{
|
|
|
360
346
|
}>;
|
|
361
347
|
export declare const CreateDatasetGroupArgsSchema: z.ZodObject<{
|
|
362
348
|
name: z.ZodOptional<z.ZodString>;
|
|
363
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
364
349
|
folder_id: z.ZodOptional<z.ZodNumber>;
|
|
365
350
|
api_key: z.ZodOptional<z.ZodString>;
|
|
366
351
|
}, "strip", z.ZodTypeAny, {
|
|
367
|
-
workspace_id?: number | undefined;
|
|
368
352
|
api_key?: string | undefined;
|
|
369
353
|
name?: string | undefined;
|
|
370
354
|
folder_id?: number | undefined;
|
|
371
355
|
}, {
|
|
372
|
-
workspace_id?: number | undefined;
|
|
373
356
|
api_key?: string | undefined;
|
|
374
357
|
name?: string | undefined;
|
|
375
358
|
folder_id?: number | undefined;
|
|
@@ -393,7 +376,6 @@ export declare const CreateDatasetVersionFromFileArgsSchema: z.ZodObject<{
|
|
|
393
376
|
export declare const CreateDatasetVersionFromFilterParamsArgsSchema: z.ZodObject<{
|
|
394
377
|
dataset_group_id: z.ZodNumber;
|
|
395
378
|
variables_to_parse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
396
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
397
379
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
398
380
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
399
381
|
start_time: z.ZodOptional<z.ZodString>;
|
|
@@ -469,7 +451,6 @@ export declare const CreateDatasetVersionFromFilterParamsArgsSchema: z.ZodObject
|
|
|
469
451
|
api_key: z.ZodOptional<z.ZodString>;
|
|
470
452
|
}, "strip", z.ZodTypeAny, {
|
|
471
453
|
dataset_group_id: number;
|
|
472
|
-
workspace_id?: number | undefined;
|
|
473
454
|
status?: ("SUCCESS" | "WARNING" | "ERROR")[] | undefined;
|
|
474
455
|
api_key?: string | undefined;
|
|
475
456
|
tags?: string[] | undefined;
|
|
@@ -510,7 +491,6 @@ export declare const CreateDatasetVersionFromFilterParamsArgsSchema: z.ZodObject
|
|
|
510
491
|
order_by_random?: boolean | undefined;
|
|
511
492
|
}, {
|
|
512
493
|
dataset_group_id: number;
|
|
513
|
-
workspace_id?: number | undefined;
|
|
514
494
|
status?: ("SUCCESS" | "WARNING" | "ERROR")[] | undefined;
|
|
515
495
|
api_key?: string | undefined;
|
|
516
496
|
tags?: string[] | undefined;
|
|
@@ -552,21 +532,18 @@ export declare const CreateDatasetVersionFromFilterParamsArgsSchema: z.ZodObject
|
|
|
552
532
|
}>;
|
|
553
533
|
export declare const GetDatasetRowsArgsSchema: z.ZodObject<{
|
|
554
534
|
dataset_id: z.ZodNumber;
|
|
555
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
556
535
|
page: z.ZodOptional<z.ZodNumber>;
|
|
557
536
|
per_page: z.ZodOptional<z.ZodNumber>;
|
|
558
537
|
q: z.ZodOptional<z.ZodString>;
|
|
559
538
|
api_key: z.ZodOptional<z.ZodString>;
|
|
560
539
|
}, "strip", z.ZodTypeAny, {
|
|
561
540
|
dataset_id: number;
|
|
562
|
-
workspace_id?: number | undefined;
|
|
563
541
|
api_key?: string | undefined;
|
|
564
542
|
page?: number | undefined;
|
|
565
543
|
per_page?: number | undefined;
|
|
566
544
|
q?: string | undefined;
|
|
567
545
|
}, {
|
|
568
546
|
dataset_id: number;
|
|
569
|
-
workspace_id?: number | undefined;
|
|
570
547
|
api_key?: string | undefined;
|
|
571
548
|
page?: number | undefined;
|
|
572
549
|
per_page?: number | undefined;
|
|
@@ -614,10 +591,8 @@ export declare const ListEvaluationsArgsSchema: z.ZodObject<{
|
|
|
614
591
|
name: z.ZodOptional<z.ZodString>;
|
|
615
592
|
status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
|
|
616
593
|
include_runs: z.ZodOptional<z.ZodBoolean>;
|
|
617
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
618
594
|
api_key: z.ZodOptional<z.ZodString>;
|
|
619
595
|
}, "strip", z.ZodTypeAny, {
|
|
620
|
-
workspace_id?: number | undefined;
|
|
621
596
|
status?: "active" | "deleted" | "all" | undefined;
|
|
622
597
|
api_key?: string | undefined;
|
|
623
598
|
page?: number | undefined;
|
|
@@ -625,7 +600,6 @@ export declare const ListEvaluationsArgsSchema: z.ZodObject<{
|
|
|
625
600
|
name?: string | undefined;
|
|
626
601
|
include_runs?: boolean | undefined;
|
|
627
602
|
}, {
|
|
628
|
-
workspace_id?: number | undefined;
|
|
629
603
|
status?: "active" | "deleted" | "all" | undefined;
|
|
630
604
|
api_key?: string | undefined;
|
|
631
605
|
page?: number | undefined;
|
|
@@ -635,19 +609,16 @@ export declare const ListEvaluationsArgsSchema: z.ZodObject<{
|
|
|
635
609
|
}>;
|
|
636
610
|
export declare const GetEvaluationRowsArgsSchema: z.ZodObject<{
|
|
637
611
|
evaluation_id: z.ZodNumber;
|
|
638
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
639
612
|
page: z.ZodOptional<z.ZodNumber>;
|
|
640
613
|
per_page: z.ZodOptional<z.ZodNumber>;
|
|
641
614
|
api_key: z.ZodOptional<z.ZodString>;
|
|
642
615
|
}, "strip", z.ZodTypeAny, {
|
|
643
616
|
evaluation_id: number;
|
|
644
|
-
workspace_id?: number | undefined;
|
|
645
617
|
api_key?: string | undefined;
|
|
646
618
|
page?: number | undefined;
|
|
647
619
|
per_page?: number | undefined;
|
|
648
620
|
}, {
|
|
649
621
|
evaluation_id: number;
|
|
650
|
-
workspace_id?: number | undefined;
|
|
651
622
|
api_key?: string | undefined;
|
|
652
623
|
page?: number | undefined;
|
|
653
624
|
per_page?: number | undefined;
|
|
@@ -896,16 +867,13 @@ export declare const GetWorkflowLabelsArgsSchema: z.ZodObject<{
|
|
|
896
867
|
export declare const CreateFolderArgsSchema: z.ZodObject<{
|
|
897
868
|
name: z.ZodString;
|
|
898
869
|
parent_id: z.ZodOptional<z.ZodNumber>;
|
|
899
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
900
870
|
api_key: z.ZodOptional<z.ZodString>;
|
|
901
871
|
}, "strip", z.ZodTypeAny, {
|
|
902
872
|
name: string;
|
|
903
|
-
workspace_id?: number | undefined;
|
|
904
873
|
api_key?: string | undefined;
|
|
905
874
|
parent_id?: number | undefined;
|
|
906
875
|
}, {
|
|
907
876
|
name: string;
|
|
908
|
-
workspace_id?: number | undefined;
|
|
909
877
|
api_key?: string | undefined;
|
|
910
878
|
parent_id?: number | undefined;
|
|
911
879
|
}>;
|
|
@@ -932,10 +900,8 @@ export declare const GetFolderEntitiesArgsSchema: z.ZodObject<{
|
|
|
932
900
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
933
901
|
flatten: z.ZodOptional<z.ZodBoolean>;
|
|
934
902
|
include_metadata: z.ZodOptional<z.ZodBoolean>;
|
|
935
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
936
903
|
api_key: z.ZodOptional<z.ZodString>;
|
|
937
904
|
}, "strip", z.ZodTypeAny, {
|
|
938
|
-
workspace_id?: number | undefined;
|
|
939
905
|
api_key?: string | undefined;
|
|
940
906
|
tags?: string[] | undefined;
|
|
941
907
|
folder_id?: number | undefined;
|
|
@@ -947,7 +913,6 @@ export declare const GetFolderEntitiesArgsSchema: z.ZodObject<{
|
|
|
947
913
|
flatten?: boolean | undefined;
|
|
948
914
|
include_metadata?: boolean | undefined;
|
|
949
915
|
}, {
|
|
950
|
-
workspace_id?: number | undefined;
|
|
951
916
|
api_key?: string | undefined;
|
|
952
917
|
tags?: string[] | undefined;
|
|
953
918
|
folder_id?: number | undefined;
|
|
@@ -971,14 +936,12 @@ export declare const MoveFolderEntitiesArgsSchema: z.ZodObject<{
|
|
|
971
936
|
id: number;
|
|
972
937
|
}>, "many">;
|
|
973
938
|
folder_id: z.ZodOptional<z.ZodNumber>;
|
|
974
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
975
939
|
api_key: z.ZodOptional<z.ZodString>;
|
|
976
940
|
}, "strip", z.ZodTypeAny, {
|
|
977
941
|
entities: {
|
|
978
942
|
type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
|
|
979
943
|
id: number;
|
|
980
944
|
}[];
|
|
981
|
-
workspace_id?: number | undefined;
|
|
982
945
|
api_key?: string | undefined;
|
|
983
946
|
folder_id?: number | undefined;
|
|
984
947
|
}, {
|
|
@@ -986,7 +949,6 @@ export declare const MoveFolderEntitiesArgsSchema: z.ZodObject<{
|
|
|
986
949
|
type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
|
|
987
950
|
id: number;
|
|
988
951
|
}[];
|
|
989
|
-
workspace_id?: number | undefined;
|
|
990
952
|
api_key?: string | undefined;
|
|
991
953
|
folder_id?: number | undefined;
|
|
992
954
|
}>;
|
|
@@ -1002,14 +964,12 @@ export declare const DeleteFolderEntitiesArgsSchema: z.ZodObject<{
|
|
|
1002
964
|
id: number;
|
|
1003
965
|
}>, "many">;
|
|
1004
966
|
cascade: z.ZodOptional<z.ZodBoolean>;
|
|
1005
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
1006
967
|
api_key: z.ZodOptional<z.ZodString>;
|
|
1007
968
|
}, "strip", z.ZodTypeAny, {
|
|
1008
969
|
entities: {
|
|
1009
970
|
type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
|
|
1010
971
|
id: number;
|
|
1011
972
|
}[];
|
|
1012
|
-
workspace_id?: number | undefined;
|
|
1013
973
|
api_key?: string | undefined;
|
|
1014
974
|
cascade?: boolean | undefined;
|
|
1015
975
|
}, {
|
|
@@ -1017,40 +977,20 @@ export declare const DeleteFolderEntitiesArgsSchema: z.ZodObject<{
|
|
|
1017
977
|
type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
|
|
1018
978
|
id: number;
|
|
1019
979
|
}[];
|
|
1020
|
-
workspace_id?: number | undefined;
|
|
1021
980
|
api_key?: string | undefined;
|
|
1022
981
|
cascade?: boolean | undefined;
|
|
1023
982
|
}>;
|
|
1024
983
|
export declare const ResolveFolderIdArgsSchema: z.ZodObject<{
|
|
1025
984
|
path: z.ZodString;
|
|
1026
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
1027
985
|
api_key: z.ZodOptional<z.ZodString>;
|
|
1028
986
|
}, "strip", z.ZodTypeAny, {
|
|
1029
987
|
path: string;
|
|
1030
|
-
workspace_id?: number | undefined;
|
|
1031
988
|
api_key?: string | undefined;
|
|
1032
989
|
}, {
|
|
1033
990
|
path: string;
|
|
1034
|
-
workspace_id?: number | undefined;
|
|
1035
991
|
api_key?: string | undefined;
|
|
1036
992
|
}>;
|
|
1037
993
|
export declare const SearchRequestLogsArgsSchema: z.ZodObject<{
|
|
1038
|
-
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1039
|
-
field: z.ZodEnum<["pl_id", "prompt_id", "engine", "provider_type", "input_text", "output_text", "prompt_version_number", "input_tokens", "output_tokens", "cost", "latency_ms", "request_start_time", "request_end_time", "status", "is_json", "is_tool_call", "is_plain_text", "tags", "metadata_keys", "metadata", "tool_names", "output", "output_keys", "input_variables", "input_variable_keys"]>;
|
|
1040
|
-
operator: z.ZodEnum<["is", "is_not", "in", "not_in", "contains", "not_contains", "starts_with", "ends_with", "eq", "neq", "gt", "gte", "lt", "lte", "between", "before", "after", "is_true", "is_false", "is_empty", "is_not_empty", "is_null", "is_not_null", "key_equals", "key_not_equals", "key_contains"]>;
|
|
1041
|
-
value: z.ZodOptional<z.ZodUnknown>;
|
|
1042
|
-
nested_key: z.ZodOptional<z.ZodString>;
|
|
1043
|
-
}, "strip", z.ZodTypeAny, {
|
|
1044
|
-
operator: "is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "starts_with" | "ends_with" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "between" | "before" | "after" | "is_true" | "is_false" | "is_empty" | "is_not_empty" | "is_null" | "is_not_null" | "key_equals" | "key_not_equals" | "key_contains";
|
|
1045
|
-
field: "status" | "input_variables" | "tags" | "metadata" | "prompt_id" | "prompt_version_number" | "output" | "request_start_time" | "request_end_time" | "input_tokens" | "output_tokens" | "pl_id" | "engine" | "provider_type" | "input_text" | "output_text" | "cost" | "latency_ms" | "is_json" | "is_tool_call" | "is_plain_text" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys";
|
|
1046
|
-
value?: unknown;
|
|
1047
|
-
nested_key?: string | undefined;
|
|
1048
|
-
}, {
|
|
1049
|
-
operator: "is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "starts_with" | "ends_with" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "between" | "before" | "after" | "is_true" | "is_false" | "is_empty" | "is_not_empty" | "is_null" | "is_not_null" | "key_equals" | "key_not_equals" | "key_contains";
|
|
1050
|
-
field: "status" | "input_variables" | "tags" | "metadata" | "prompt_id" | "prompt_version_number" | "output" | "request_start_time" | "request_end_time" | "input_tokens" | "output_tokens" | "pl_id" | "engine" | "provider_type" | "input_text" | "output_text" | "cost" | "latency_ms" | "is_json" | "is_tool_call" | "is_plain_text" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys";
|
|
1051
|
-
value?: unknown;
|
|
1052
|
-
nested_key?: string | undefined;
|
|
1053
|
-
}>, "many">>;
|
|
1054
994
|
filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
1055
995
|
q: z.ZodOptional<z.ZodString>;
|
|
1056
996
|
page: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1066,12 +1006,6 @@ export declare const SearchRequestLogsArgsSchema: z.ZodObject<{
|
|
|
1066
1006
|
sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | undefined;
|
|
1067
1007
|
sort_order?: "asc" | "desc" | undefined;
|
|
1068
1008
|
q?: string | undefined;
|
|
1069
|
-
filters?: {
|
|
1070
|
-
operator: "is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "starts_with" | "ends_with" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "between" | "before" | "after" | "is_true" | "is_false" | "is_empty" | "is_not_empty" | "is_null" | "is_not_null" | "key_equals" | "key_not_equals" | "key_contains";
|
|
1071
|
-
field: "status" | "input_variables" | "tags" | "metadata" | "prompt_id" | "prompt_version_number" | "output" | "request_start_time" | "request_end_time" | "input_tokens" | "output_tokens" | "pl_id" | "engine" | "provider_type" | "input_text" | "output_text" | "cost" | "latency_ms" | "is_json" | "is_tool_call" | "is_plain_text" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys";
|
|
1072
|
-
value?: unknown;
|
|
1073
|
-
nested_key?: string | undefined;
|
|
1074
|
-
}[] | undefined;
|
|
1075
1009
|
filter_group?: any;
|
|
1076
1010
|
include_prompt_name?: boolean | undefined;
|
|
1077
1011
|
}, {
|
|
@@ -1081,12 +1015,6 @@ export declare const SearchRequestLogsArgsSchema: z.ZodObject<{
|
|
|
1081
1015
|
sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | undefined;
|
|
1082
1016
|
sort_order?: "asc" | "desc" | undefined;
|
|
1083
1017
|
q?: string | undefined;
|
|
1084
|
-
filters?: {
|
|
1085
|
-
operator: "is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "starts_with" | "ends_with" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "between" | "before" | "after" | "is_true" | "is_false" | "is_empty" | "is_not_empty" | "is_null" | "is_not_null" | "key_equals" | "key_not_equals" | "key_contains";
|
|
1086
|
-
field: "status" | "input_variables" | "tags" | "metadata" | "prompt_id" | "prompt_version_number" | "output" | "request_start_time" | "request_end_time" | "input_tokens" | "output_tokens" | "pl_id" | "engine" | "provider_type" | "input_text" | "output_text" | "cost" | "latency_ms" | "is_json" | "is_tool_call" | "is_plain_text" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys";
|
|
1087
|
-
value?: unknown;
|
|
1088
|
-
nested_key?: string | undefined;
|
|
1089
|
-
}[] | undefined;
|
|
1090
1018
|
filter_group?: any;
|
|
1091
1019
|
include_prompt_name?: boolean | undefined;
|
|
1092
1020
|
}>;
|
|
@@ -1110,6 +1038,28 @@ export declare const GetTraceArgsSchema: z.ZodObject<{
|
|
|
1110
1038
|
trace_id: string;
|
|
1111
1039
|
api_key?: string | undefined;
|
|
1112
1040
|
}>;
|
|
1041
|
+
export declare const GetRequestSearchSuggestionsArgsSchema: z.ZodObject<{
|
|
1042
|
+
field: z.ZodEnum<["engine", "provider_type", "prompt_id", "prompt", "tags", "metadata_keys", "status", "tool_names", "output_keys", "input_variable_keys", "metadata_values", "output_values", "input_variable_values"]>;
|
|
1043
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
1044
|
+
metadata_key: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
prompt_id: z.ZodOptional<z.ZodNumber>;
|
|
1046
|
+
filter_group: z.ZodOptional<z.ZodString>;
|
|
1047
|
+
api_key: z.ZodOptional<z.ZodString>;
|
|
1048
|
+
}, "strip", z.ZodTypeAny, {
|
|
1049
|
+
field: "status" | "tags" | "prompt_id" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | "prompt" | "metadata_values" | "output_values" | "input_variable_values";
|
|
1050
|
+
api_key?: string | undefined;
|
|
1051
|
+
prompt_id?: number | undefined;
|
|
1052
|
+
filter_group?: string | undefined;
|
|
1053
|
+
prefix?: string | undefined;
|
|
1054
|
+
metadata_key?: string | undefined;
|
|
1055
|
+
}, {
|
|
1056
|
+
field: "status" | "tags" | "prompt_id" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | "prompt" | "metadata_values" | "output_values" | "input_variable_values";
|
|
1057
|
+
api_key?: string | undefined;
|
|
1058
|
+
prompt_id?: number | undefined;
|
|
1059
|
+
filter_group?: string | undefined;
|
|
1060
|
+
prefix?: string | undefined;
|
|
1061
|
+
metadata_key?: string | undefined;
|
|
1062
|
+
}>;
|
|
1113
1063
|
export type GetPromptTemplateParams = Omit<z.infer<typeof GetPromptTemplateArgsSchema>, "prompt_name" | "api_key">;
|
|
1114
1064
|
export type ListPromptTemplatesParams = Omit<z.infer<typeof ListPromptTemplatesArgsSchema>, "api_key">;
|
|
1115
1065
|
export declare const TOOL_DEFINITIONS: {
|
|
@@ -1119,7 +1069,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1119
1069
|
readonly inputSchema: z.ZodObject<{
|
|
1120
1070
|
prompt_name: z.ZodString;
|
|
1121
1071
|
version: z.ZodOptional<z.ZodNumber>;
|
|
1122
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
1123
1072
|
label: z.ZodOptional<z.ZodString>;
|
|
1124
1073
|
provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "amazon.bedrock", "cohere", "google", "huggingface", "mistral", "openai.azure", "vertexai"]>>;
|
|
1125
1074
|
input_variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1130,7 +1079,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1130
1079
|
}, "strip", z.ZodTypeAny, {
|
|
1131
1080
|
prompt_name: string;
|
|
1132
1081
|
version?: number | undefined;
|
|
1133
|
-
workspace_id?: number | undefined;
|
|
1134
1082
|
label?: string | undefined;
|
|
1135
1083
|
provider?: "openai" | "anthropic" | "amazon.bedrock" | "cohere" | "google" | "huggingface" | "mistral" | "openai.azure" | "vertexai" | undefined;
|
|
1136
1084
|
input_variables?: Record<string, string> | undefined;
|
|
@@ -1141,7 +1089,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1141
1089
|
}, {
|
|
1142
1090
|
prompt_name: string;
|
|
1143
1091
|
version?: number | undefined;
|
|
1144
|
-
workspace_id?: number | undefined;
|
|
1145
1092
|
label?: string | undefined;
|
|
1146
1093
|
provider?: "openai" | "anthropic" | "amazon.bedrock" | "cohere" | "google" | "huggingface" | "mistral" | "openai.azure" | "vertexai" | undefined;
|
|
1147
1094
|
input_variables?: Record<string, string> | undefined;
|
|
@@ -1193,10 +1140,8 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1193
1140
|
name: z.ZodOptional<z.ZodString>;
|
|
1194
1141
|
tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1195
1142
|
status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
|
|
1196
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
1197
1143
|
api_key: z.ZodOptional<z.ZodString>;
|
|
1198
1144
|
}, "strip", z.ZodTypeAny, {
|
|
1199
|
-
workspace_id?: number | undefined;
|
|
1200
1145
|
label?: string | undefined;
|
|
1201
1146
|
status?: "active" | "deleted" | "all" | undefined;
|
|
1202
1147
|
api_key?: string | undefined;
|
|
@@ -1205,7 +1150,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1205
1150
|
name?: string | undefined;
|
|
1206
1151
|
tags?: string | string[] | undefined;
|
|
1207
1152
|
}, {
|
|
1208
|
-
workspace_id?: number | undefined;
|
|
1209
1153
|
label?: string | undefined;
|
|
1210
1154
|
status?: "active" | "deleted" | "all" | undefined;
|
|
1211
1155
|
api_key?: string | undefined;
|
|
@@ -1226,15 +1170,12 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1226
1170
|
prompt_name: z.ZodString;
|
|
1227
1171
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1228
1172
|
folder_id: z.ZodOptional<z.ZodNumber>;
|
|
1229
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
1230
1173
|
}, "strip", z.ZodTypeAny, {
|
|
1231
1174
|
prompt_name: string;
|
|
1232
|
-
workspace_id?: number | undefined;
|
|
1233
1175
|
tags?: string[] | undefined;
|
|
1234
1176
|
folder_id?: number | undefined;
|
|
1235
1177
|
}, {
|
|
1236
1178
|
prompt_name: string;
|
|
1237
|
-
workspace_id?: number | undefined;
|
|
1238
1179
|
tags?: string[] | undefined;
|
|
1239
1180
|
folder_id?: number | undefined;
|
|
1240
1181
|
}>;
|
|
@@ -1266,7 +1207,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1266
1207
|
}, "strip", z.ZodTypeAny, {
|
|
1267
1208
|
prompt_template: {
|
|
1268
1209
|
prompt_name: string;
|
|
1269
|
-
workspace_id?: number | undefined;
|
|
1270
1210
|
tags?: string[] | undefined;
|
|
1271
1211
|
folder_id?: number | undefined;
|
|
1272
1212
|
};
|
|
@@ -1284,7 +1224,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1284
1224
|
}, {
|
|
1285
1225
|
prompt_template: {
|
|
1286
1226
|
prompt_name: string;
|
|
1287
|
-
workspace_id?: number | undefined;
|
|
1288
1227
|
tags?: string[] | undefined;
|
|
1289
1228
|
folder_id?: number | undefined;
|
|
1290
1229
|
};
|
|
@@ -1411,22 +1350,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1411
1350
|
readonly name: "search-request-logs";
|
|
1412
1351
|
readonly description: string;
|
|
1413
1352
|
readonly inputSchema: z.ZodObject<{
|
|
1414
|
-
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1415
|
-
field: z.ZodEnum<["pl_id", "prompt_id", "engine", "provider_type", "input_text", "output_text", "prompt_version_number", "input_tokens", "output_tokens", "cost", "latency_ms", "request_start_time", "request_end_time", "status", "is_json", "is_tool_call", "is_plain_text", "tags", "metadata_keys", "metadata", "tool_names", "output", "output_keys", "input_variables", "input_variable_keys"]>;
|
|
1416
|
-
operator: z.ZodEnum<["is", "is_not", "in", "not_in", "contains", "not_contains", "starts_with", "ends_with", "eq", "neq", "gt", "gte", "lt", "lte", "between", "before", "after", "is_true", "is_false", "is_empty", "is_not_empty", "is_null", "is_not_null", "key_equals", "key_not_equals", "key_contains"]>;
|
|
1417
|
-
value: z.ZodOptional<z.ZodUnknown>;
|
|
1418
|
-
nested_key: z.ZodOptional<z.ZodString>;
|
|
1419
|
-
}, "strip", z.ZodTypeAny, {
|
|
1420
|
-
operator: "is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "starts_with" | "ends_with" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "between" | "before" | "after" | "is_true" | "is_false" | "is_empty" | "is_not_empty" | "is_null" | "is_not_null" | "key_equals" | "key_not_equals" | "key_contains";
|
|
1421
|
-
field: "status" | "input_variables" | "tags" | "metadata" | "prompt_id" | "prompt_version_number" | "output" | "request_start_time" | "request_end_time" | "input_tokens" | "output_tokens" | "pl_id" | "engine" | "provider_type" | "input_text" | "output_text" | "cost" | "latency_ms" | "is_json" | "is_tool_call" | "is_plain_text" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys";
|
|
1422
|
-
value?: unknown;
|
|
1423
|
-
nested_key?: string | undefined;
|
|
1424
|
-
}, {
|
|
1425
|
-
operator: "is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "starts_with" | "ends_with" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "between" | "before" | "after" | "is_true" | "is_false" | "is_empty" | "is_not_empty" | "is_null" | "is_not_null" | "key_equals" | "key_not_equals" | "key_contains";
|
|
1426
|
-
field: "status" | "input_variables" | "tags" | "metadata" | "prompt_id" | "prompt_version_number" | "output" | "request_start_time" | "request_end_time" | "input_tokens" | "output_tokens" | "pl_id" | "engine" | "provider_type" | "input_text" | "output_text" | "cost" | "latency_ms" | "is_json" | "is_tool_call" | "is_plain_text" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys";
|
|
1427
|
-
value?: unknown;
|
|
1428
|
-
nested_key?: string | undefined;
|
|
1429
|
-
}>, "many">>;
|
|
1430
1353
|
filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
1431
1354
|
q: z.ZodOptional<z.ZodString>;
|
|
1432
1355
|
page: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1442,12 +1365,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1442
1365
|
sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | undefined;
|
|
1443
1366
|
sort_order?: "asc" | "desc" | undefined;
|
|
1444
1367
|
q?: string | undefined;
|
|
1445
|
-
filters?: {
|
|
1446
|
-
operator: "is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "starts_with" | "ends_with" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "between" | "before" | "after" | "is_true" | "is_false" | "is_empty" | "is_not_empty" | "is_null" | "is_not_null" | "key_equals" | "key_not_equals" | "key_contains";
|
|
1447
|
-
field: "status" | "input_variables" | "tags" | "metadata" | "prompt_id" | "prompt_version_number" | "output" | "request_start_time" | "request_end_time" | "input_tokens" | "output_tokens" | "pl_id" | "engine" | "provider_type" | "input_text" | "output_text" | "cost" | "latency_ms" | "is_json" | "is_tool_call" | "is_plain_text" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys";
|
|
1448
|
-
value?: unknown;
|
|
1449
|
-
nested_key?: string | undefined;
|
|
1450
|
-
}[] | undefined;
|
|
1451
1368
|
filter_group?: any;
|
|
1452
1369
|
include_prompt_name?: boolean | undefined;
|
|
1453
1370
|
}, {
|
|
@@ -1457,12 +1374,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1457
1374
|
sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | undefined;
|
|
1458
1375
|
sort_order?: "asc" | "desc" | undefined;
|
|
1459
1376
|
q?: string | undefined;
|
|
1460
|
-
filters?: {
|
|
1461
|
-
operator: "is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "starts_with" | "ends_with" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "between" | "before" | "after" | "is_true" | "is_false" | "is_empty" | "is_not_empty" | "is_null" | "is_not_null" | "key_equals" | "key_not_equals" | "key_contains";
|
|
1462
|
-
field: "status" | "input_variables" | "tags" | "metadata" | "prompt_id" | "prompt_version_number" | "output" | "request_start_time" | "request_end_time" | "input_tokens" | "output_tokens" | "pl_id" | "engine" | "provider_type" | "input_text" | "output_text" | "cost" | "latency_ms" | "is_json" | "is_tool_call" | "is_plain_text" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys";
|
|
1463
|
-
value?: unknown;
|
|
1464
|
-
nested_key?: string | undefined;
|
|
1465
|
-
}[] | undefined;
|
|
1466
1377
|
filter_group?: any;
|
|
1467
1378
|
include_prompt_name?: boolean | undefined;
|
|
1468
1379
|
}>;
|
|
@@ -1504,6 +1415,35 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1504
1415
|
readonly readOnlyHint: true;
|
|
1505
1416
|
};
|
|
1506
1417
|
};
|
|
1418
|
+
readonly "get-request-search-suggestions": {
|
|
1419
|
+
readonly name: "get-request-search-suggestions";
|
|
1420
|
+
readonly description: string;
|
|
1421
|
+
readonly inputSchema: z.ZodObject<{
|
|
1422
|
+
field: z.ZodEnum<["engine", "provider_type", "prompt_id", "prompt", "tags", "metadata_keys", "status", "tool_names", "output_keys", "input_variable_keys", "metadata_values", "output_values", "input_variable_values"]>;
|
|
1423
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
1424
|
+
metadata_key: z.ZodOptional<z.ZodString>;
|
|
1425
|
+
prompt_id: z.ZodOptional<z.ZodNumber>;
|
|
1426
|
+
filter_group: z.ZodOptional<z.ZodString>;
|
|
1427
|
+
api_key: z.ZodOptional<z.ZodString>;
|
|
1428
|
+
}, "strip", z.ZodTypeAny, {
|
|
1429
|
+
field: "status" | "tags" | "prompt_id" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | "prompt" | "metadata_values" | "output_values" | "input_variable_values";
|
|
1430
|
+
api_key?: string | undefined;
|
|
1431
|
+
prompt_id?: number | undefined;
|
|
1432
|
+
filter_group?: string | undefined;
|
|
1433
|
+
prefix?: string | undefined;
|
|
1434
|
+
metadata_key?: string | undefined;
|
|
1435
|
+
}, {
|
|
1436
|
+
field: "status" | "tags" | "prompt_id" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | "prompt" | "metadata_values" | "output_values" | "input_variable_values";
|
|
1437
|
+
api_key?: string | undefined;
|
|
1438
|
+
prompt_id?: number | undefined;
|
|
1439
|
+
filter_group?: string | undefined;
|
|
1440
|
+
prefix?: string | undefined;
|
|
1441
|
+
metadata_key?: string | undefined;
|
|
1442
|
+
}>;
|
|
1443
|
+
readonly annotations: {
|
|
1444
|
+
readonly readOnlyHint: true;
|
|
1445
|
+
};
|
|
1446
|
+
};
|
|
1507
1447
|
readonly "log-request": {
|
|
1508
1448
|
readonly name: "log-request";
|
|
1509
1449
|
readonly description: string;
|
|
@@ -1617,10 +1557,8 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1617
1557
|
prompt_version_id: z.ZodOptional<z.ZodNumber>;
|
|
1618
1558
|
prompt_label_id: z.ZodOptional<z.ZodNumber>;
|
|
1619
1559
|
report_id: z.ZodOptional<z.ZodNumber>;
|
|
1620
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
1621
1560
|
api_key: z.ZodOptional<z.ZodString>;
|
|
1622
1561
|
}, "strip", z.ZodTypeAny, {
|
|
1623
|
-
workspace_id?: number | undefined;
|
|
1624
1562
|
status?: "active" | "deleted" | "all" | undefined;
|
|
1625
1563
|
api_key?: string | undefined;
|
|
1626
1564
|
page?: number | undefined;
|
|
@@ -1632,7 +1570,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1632
1570
|
dataset_group_id?: number | undefined;
|
|
1633
1571
|
report_id?: number | undefined;
|
|
1634
1572
|
}, {
|
|
1635
|
-
workspace_id?: number | undefined;
|
|
1636
1573
|
status?: "active" | "deleted" | "all" | undefined;
|
|
1637
1574
|
api_key?: string | undefined;
|
|
1638
1575
|
page?: number | undefined;
|
|
@@ -1653,16 +1590,13 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1653
1590
|
readonly description: "Create a dataset group. An empty draft version (version_number=-1) is created automatically. Names must be unique per workspace.";
|
|
1654
1591
|
readonly inputSchema: z.ZodObject<{
|
|
1655
1592
|
name: z.ZodOptional<z.ZodString>;
|
|
1656
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
1657
1593
|
folder_id: z.ZodOptional<z.ZodNumber>;
|
|
1658
1594
|
api_key: z.ZodOptional<z.ZodString>;
|
|
1659
1595
|
}, "strip", z.ZodTypeAny, {
|
|
1660
|
-
workspace_id?: number | undefined;
|
|
1661
1596
|
api_key?: string | undefined;
|
|
1662
1597
|
name?: string | undefined;
|
|
1663
1598
|
folder_id?: number | undefined;
|
|
1664
1599
|
}, {
|
|
1665
|
-
workspace_id?: number | undefined;
|
|
1666
1600
|
api_key?: string | undefined;
|
|
1667
1601
|
name?: string | undefined;
|
|
1668
1602
|
folder_id?: number | undefined;
|
|
@@ -1700,7 +1634,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1700
1634
|
readonly inputSchema: z.ZodObject<{
|
|
1701
1635
|
dataset_group_id: z.ZodNumber;
|
|
1702
1636
|
variables_to_parse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1703
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
1704
1637
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1705
1638
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1706
1639
|
start_time: z.ZodOptional<z.ZodString>;
|
|
@@ -1776,7 +1709,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1776
1709
|
api_key: z.ZodOptional<z.ZodString>;
|
|
1777
1710
|
}, "strip", z.ZodTypeAny, {
|
|
1778
1711
|
dataset_group_id: number;
|
|
1779
|
-
workspace_id?: number | undefined;
|
|
1780
1712
|
status?: ("SUCCESS" | "WARNING" | "ERROR")[] | undefined;
|
|
1781
1713
|
api_key?: string | undefined;
|
|
1782
1714
|
tags?: string[] | undefined;
|
|
@@ -1817,7 +1749,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1817
1749
|
order_by_random?: boolean | undefined;
|
|
1818
1750
|
}, {
|
|
1819
1751
|
dataset_group_id: number;
|
|
1820
|
-
workspace_id?: number | undefined;
|
|
1821
1752
|
status?: ("SUCCESS" | "WARNING" | "ERROR")[] | undefined;
|
|
1822
1753
|
api_key?: string | undefined;
|
|
1823
1754
|
tags?: string[] | undefined;
|
|
@@ -1866,21 +1797,18 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1866
1797
|
readonly description: "Get paginated rows from a dataset. Each row is an array of cells with {type: 'dataset', value: ...}. Supports search via the q parameter.";
|
|
1867
1798
|
readonly inputSchema: z.ZodObject<{
|
|
1868
1799
|
dataset_id: z.ZodNumber;
|
|
1869
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
1870
1800
|
page: z.ZodOptional<z.ZodNumber>;
|
|
1871
1801
|
per_page: z.ZodOptional<z.ZodNumber>;
|
|
1872
1802
|
q: z.ZodOptional<z.ZodString>;
|
|
1873
1803
|
api_key: z.ZodOptional<z.ZodString>;
|
|
1874
1804
|
}, "strip", z.ZodTypeAny, {
|
|
1875
1805
|
dataset_id: number;
|
|
1876
|
-
workspace_id?: number | undefined;
|
|
1877
1806
|
api_key?: string | undefined;
|
|
1878
1807
|
page?: number | undefined;
|
|
1879
1808
|
per_page?: number | undefined;
|
|
1880
1809
|
q?: string | undefined;
|
|
1881
1810
|
}, {
|
|
1882
1811
|
dataset_id: number;
|
|
1883
|
-
workspace_id?: number | undefined;
|
|
1884
1812
|
api_key?: string | undefined;
|
|
1885
1813
|
page?: number | undefined;
|
|
1886
1814
|
per_page?: number | undefined;
|
|
@@ -1949,17 +1877,15 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1949
1877
|
};
|
|
1950
1878
|
readonly "list-evaluations": {
|
|
1951
1879
|
readonly name: "list-evaluations";
|
|
1952
|
-
readonly description: "List evaluation pipelines (called 'reports' in the API) with pagination. Filter by name, status
|
|
1880
|
+
readonly description: "List evaluation pipelines (called 'reports' in the API) with pagination. Filter by name, status. Set include_runs=true to include batch runs nested under each evaluation.";
|
|
1953
1881
|
readonly inputSchema: z.ZodObject<{
|
|
1954
1882
|
page: z.ZodOptional<z.ZodNumber>;
|
|
1955
1883
|
per_page: z.ZodOptional<z.ZodNumber>;
|
|
1956
1884
|
name: z.ZodOptional<z.ZodString>;
|
|
1957
1885
|
status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
|
|
1958
1886
|
include_runs: z.ZodOptional<z.ZodBoolean>;
|
|
1959
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
1960
1887
|
api_key: z.ZodOptional<z.ZodString>;
|
|
1961
1888
|
}, "strip", z.ZodTypeAny, {
|
|
1962
|
-
workspace_id?: number | undefined;
|
|
1963
1889
|
status?: "active" | "deleted" | "all" | undefined;
|
|
1964
1890
|
api_key?: string | undefined;
|
|
1965
1891
|
page?: number | undefined;
|
|
@@ -1967,7 +1893,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1967
1893
|
name?: string | undefined;
|
|
1968
1894
|
include_runs?: boolean | undefined;
|
|
1969
1895
|
}, {
|
|
1970
|
-
workspace_id?: number | undefined;
|
|
1971
1896
|
status?: "active" | "deleted" | "all" | undefined;
|
|
1972
1897
|
api_key?: string | undefined;
|
|
1973
1898
|
page?: number | undefined;
|
|
@@ -1984,19 +1909,16 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
1984
1909
|
readonly description: "Get paginated evaluation results with dataset inputs and eval outcomes. Each row has dataset cells ({type: 'dataset', value: ...}) followed by eval cells ({type: 'eval', status: 'PASSED'|'FAILED', value: ...}).";
|
|
1985
1910
|
readonly inputSchema: z.ZodObject<{
|
|
1986
1911
|
evaluation_id: z.ZodNumber;
|
|
1987
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
1988
1912
|
page: z.ZodOptional<z.ZodNumber>;
|
|
1989
1913
|
per_page: z.ZodOptional<z.ZodNumber>;
|
|
1990
1914
|
api_key: z.ZodOptional<z.ZodString>;
|
|
1991
1915
|
}, "strip", z.ZodTypeAny, {
|
|
1992
1916
|
evaluation_id: number;
|
|
1993
|
-
workspace_id?: number | undefined;
|
|
1994
1917
|
api_key?: string | undefined;
|
|
1995
1918
|
page?: number | undefined;
|
|
1996
1919
|
per_page?: number | undefined;
|
|
1997
1920
|
}, {
|
|
1998
1921
|
evaluation_id: number;
|
|
1999
|
-
workspace_id?: number | undefined;
|
|
2000
1922
|
api_key?: string | undefined;
|
|
2001
1923
|
page?: number | undefined;
|
|
2002
1924
|
per_page?: number | undefined;
|
|
@@ -2343,16 +2265,13 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
2343
2265
|
readonly inputSchema: z.ZodObject<{
|
|
2344
2266
|
name: z.ZodString;
|
|
2345
2267
|
parent_id: z.ZodOptional<z.ZodNumber>;
|
|
2346
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
2347
2268
|
api_key: z.ZodOptional<z.ZodString>;
|
|
2348
2269
|
}, "strip", z.ZodTypeAny, {
|
|
2349
2270
|
name: string;
|
|
2350
|
-
workspace_id?: number | undefined;
|
|
2351
2271
|
api_key?: string | undefined;
|
|
2352
2272
|
parent_id?: number | undefined;
|
|
2353
2273
|
}, {
|
|
2354
2274
|
name: string;
|
|
2355
|
-
workspace_id?: number | undefined;
|
|
2356
2275
|
api_key?: string | undefined;
|
|
2357
2276
|
parent_id?: number | undefined;
|
|
2358
2277
|
}>;
|
|
@@ -2393,10 +2312,8 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
2393
2312
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2394
2313
|
flatten: z.ZodOptional<z.ZodBoolean>;
|
|
2395
2314
|
include_metadata: z.ZodOptional<z.ZodBoolean>;
|
|
2396
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
2397
2315
|
api_key: z.ZodOptional<z.ZodString>;
|
|
2398
2316
|
}, "strip", z.ZodTypeAny, {
|
|
2399
|
-
workspace_id?: number | undefined;
|
|
2400
2317
|
api_key?: string | undefined;
|
|
2401
2318
|
tags?: string[] | undefined;
|
|
2402
2319
|
folder_id?: number | undefined;
|
|
@@ -2408,7 +2325,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
2408
2325
|
flatten?: boolean | undefined;
|
|
2409
2326
|
include_metadata?: boolean | undefined;
|
|
2410
2327
|
}, {
|
|
2411
|
-
workspace_id?: number | undefined;
|
|
2412
2328
|
api_key?: string | undefined;
|
|
2413
2329
|
tags?: string[] | undefined;
|
|
2414
2330
|
folder_id?: number | undefined;
|
|
@@ -2439,14 +2355,12 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
2439
2355
|
id: number;
|
|
2440
2356
|
}>, "many">;
|
|
2441
2357
|
folder_id: z.ZodOptional<z.ZodNumber>;
|
|
2442
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
2443
2358
|
api_key: z.ZodOptional<z.ZodString>;
|
|
2444
2359
|
}, "strip", z.ZodTypeAny, {
|
|
2445
2360
|
entities: {
|
|
2446
2361
|
type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
|
|
2447
2362
|
id: number;
|
|
2448
2363
|
}[];
|
|
2449
|
-
workspace_id?: number | undefined;
|
|
2450
2364
|
api_key?: string | undefined;
|
|
2451
2365
|
folder_id?: number | undefined;
|
|
2452
2366
|
}, {
|
|
@@ -2454,7 +2368,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
2454
2368
|
type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
|
|
2455
2369
|
id: number;
|
|
2456
2370
|
}[];
|
|
2457
|
-
workspace_id?: number | undefined;
|
|
2458
2371
|
api_key?: string | undefined;
|
|
2459
2372
|
folder_id?: number | undefined;
|
|
2460
2373
|
}>;
|
|
@@ -2477,14 +2390,12 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
2477
2390
|
id: number;
|
|
2478
2391
|
}>, "many">;
|
|
2479
2392
|
cascade: z.ZodOptional<z.ZodBoolean>;
|
|
2480
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
2481
2393
|
api_key: z.ZodOptional<z.ZodString>;
|
|
2482
2394
|
}, "strip", z.ZodTypeAny, {
|
|
2483
2395
|
entities: {
|
|
2484
2396
|
type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
|
|
2485
2397
|
id: number;
|
|
2486
2398
|
}[];
|
|
2487
|
-
workspace_id?: number | undefined;
|
|
2488
2399
|
api_key?: string | undefined;
|
|
2489
2400
|
cascade?: boolean | undefined;
|
|
2490
2401
|
}, {
|
|
@@ -2492,7 +2403,6 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
2492
2403
|
type: "FOLDER" | "PROMPT" | "SNIPPET" | "WORKFLOW" | "DATASET" | "REPORT" | "AB_TEST" | "INPUT_VARIABLE_SET";
|
|
2493
2404
|
id: number;
|
|
2494
2405
|
}[];
|
|
2495
|
-
workspace_id?: number | undefined;
|
|
2496
2406
|
api_key?: string | undefined;
|
|
2497
2407
|
cascade?: boolean | undefined;
|
|
2498
2408
|
}>;
|
|
@@ -2505,15 +2415,12 @@ export declare const TOOL_DEFINITIONS: {
|
|
|
2505
2415
|
readonly description: "Resolve a folder path (e.g. 'foo/bar') to a folder ID.";
|
|
2506
2416
|
readonly inputSchema: z.ZodObject<{
|
|
2507
2417
|
path: z.ZodString;
|
|
2508
|
-
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
2509
2418
|
api_key: z.ZodOptional<z.ZodString>;
|
|
2510
2419
|
}, "strip", z.ZodTypeAny, {
|
|
2511
2420
|
path: string;
|
|
2512
|
-
workspace_id?: number | undefined;
|
|
2513
2421
|
api_key?: string | undefined;
|
|
2514
2422
|
}, {
|
|
2515
2423
|
path: string;
|
|
2516
|
-
workspace_id?: number | undefined;
|
|
2517
2424
|
api_key?: string | undefined;
|
|
2518
2425
|
}>;
|
|
2519
2426
|
readonly annotations: {
|