langwatch 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-TRJAXM4D.mjs → add-SMYALCQG.mjs} +10 -9
- package/dist/{add-TRJAXM4D.mjs.map → add-SMYALCQG.mjs.map} +1 -1
- package/dist/{add-35QACTIV.js → add-SV662KZU.js} +27 -26
- package/dist/add-SV662KZU.js.map +1 -0
- package/dist/{chunk-LP76VXI3.mjs → chunk-5ZKAT4KI.mjs} +70 -113
- package/dist/chunk-5ZKAT4KI.mjs.map +1 -0
- package/dist/{chunk-HUI45ULC.mjs → chunk-7ZRAJ52N.mjs} +3 -3
- package/dist/chunk-CAVBDSBT.mjs +63 -0
- package/dist/chunk-CAVBDSBT.mjs.map +1 -0
- package/dist/{chunk-PGWR3OQY.mjs → chunk-ENSRDEDA.mjs} +16 -67
- package/dist/chunk-ENSRDEDA.mjs.map +1 -0
- package/dist/{chunk-HA3LI5IK.js → chunk-I5NDMIK5.js} +1 -1
- package/dist/{chunk-HA3LI5IK.js.map → chunk-I5NDMIK5.js.map} +1 -1
- package/dist/{chunk-M4VUHTT2.js → chunk-ILTCLEIF.js} +5 -5
- package/dist/{chunk-M4VUHTT2.js.map → chunk-ILTCLEIF.js.map} +1 -1
- package/dist/{chunk-ECUXLXFT.mjs → chunk-K4ICRI7W.mjs} +53 -13
- package/dist/chunk-K4ICRI7W.mjs.map +1 -0
- package/dist/{chunk-SYMZPWZE.mjs → chunk-LXVDGQA4.mjs} +5 -4
- package/dist/chunk-LXVDGQA4.mjs.map +1 -0
- package/dist/{chunk-4ZSSHX6F.js → chunk-NFM6RB4R.js} +71 -114
- package/dist/chunk-NFM6RB4R.js.map +1 -0
- package/dist/{chunk-OUCVXP4G.js → chunk-NVKMXXNP.js} +26 -77
- package/dist/chunk-NVKMXXNP.js.map +1 -0
- package/dist/{chunk-D2CSG4SJ.js → chunk-P5F63PAW.js} +5 -5
- package/dist/{chunk-D2CSG4SJ.js.map → chunk-P5F63PAW.js.map} +1 -1
- package/dist/{chunk-SGNJDRCT.js → chunk-PUHM465C.js} +5 -4
- package/dist/chunk-PUHM465C.js.map +1 -0
- package/dist/{chunk-GQMDZ4GY.mjs → chunk-RBZNMZTF.mjs} +4 -4
- package/dist/{chunk-5EVBOHJY.js → chunk-T7FQHOLK.js} +14 -14
- package/dist/{chunk-5EVBOHJY.js.map → chunk-T7FQHOLK.js.map} +1 -1
- package/dist/chunk-VI5NJ53L.js +63 -0
- package/dist/chunk-VI5NJ53L.js.map +1 -0
- package/dist/{chunk-EJWJXTPU.mjs → chunk-VILW5FYO.mjs} +2 -2
- package/dist/chunk-VILW5FYO.mjs.map +1 -0
- package/dist/{chunk-4NRLVT2U.mjs → chunk-YQVVPMKH.mjs} +1 -1
- package/dist/chunk-YQVVPMKH.mjs.map +1 -0
- package/dist/{chunk-K64Y6YUG.js → chunk-ZZLIF3DE.js} +59 -19
- package/dist/chunk-ZZLIF3DE.js.map +1 -0
- package/dist/cli/index.js +9 -9
- package/dist/cli/index.mjs +8 -8
- package/dist/{create-MK7NEGCM.mjs → create-BHWZP6YD.mjs} +5 -5
- package/dist/{create-7K2CC4KQ.js → create-GUY3HZM2.js} +10 -10
- package/dist/{create-7K2CC4KQ.js.map → create-GUY3HZM2.js.map} +1 -1
- package/dist/{implementation-CzemP9jY.d.ts → implementation--7B7PUww.d.ts} +1 -1
- package/dist/{implementation-C4lvooSg.d.mts → implementation-D7LzdQop.d.mts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/dist/init-OO2BUJ6V.js +16 -0
- package/dist/{init-GDKJICSS.js.map → init-OO2BUJ6V.js.map} +1 -1
- package/dist/{init-RINSTP4L.mjs → init-RDW2F4G3.mjs} +5 -5
- package/dist/{list-7L23G5DY.mjs → list-32BRZ6RS.mjs} +7 -6
- package/dist/list-32BRZ6RS.mjs.map +1 -0
- package/dist/{list-OLLQ7XKZ.js → list-GZGLSJ52.js} +10 -9
- package/dist/list-GZGLSJ52.js.map +1 -0
- package/dist/{login-XF3BQQPV.js → login-IAP4RFUM.js} +6 -3
- package/dist/login-IAP4RFUM.js.map +1 -0
- package/dist/{login-RCNKL5AM.mjs → login-VXLW2OXR.mjs} +5 -2
- package/dist/login-VXLW2OXR.mjs.map +1 -0
- package/dist/observability-sdk/index.d.mts +3 -3
- package/dist/observability-sdk/index.d.ts +3 -3
- package/dist/observability-sdk/index.js +4 -3
- package/dist/observability-sdk/index.js.map +1 -1
- package/dist/observability-sdk/index.mjs +3 -2
- package/dist/observability-sdk/instrumentation/langchain/index.d.mts +1 -1
- package/dist/observability-sdk/instrumentation/langchain/index.d.ts +1 -1
- package/dist/observability-sdk/instrumentation/langchain/index.js +3 -3
- package/dist/observability-sdk/instrumentation/langchain/index.mjs +1 -1
- package/dist/observability-sdk/setup/node/index.js +12 -9
- package/dist/observability-sdk/setup/node/index.js.map +1 -1
- package/dist/observability-sdk/setup/node/index.mjs +9 -6
- package/dist/observability-sdk/setup/node/index.mjs.map +1 -1
- package/dist/{remove-3VLQNVHN.mjs → remove-JUVM6M7G.mjs} +8 -7
- package/dist/{remove-3VLQNVHN.mjs.map → remove-JUVM6M7G.mjs.map} +1 -1
- package/dist/{remove-L6JVJBWY.js → remove-N3324KHS.js} +16 -15
- package/dist/remove-N3324KHS.js.map +1 -0
- package/dist/{sync-DPMTUTVL.mjs → sync-B4YK6QYX.mjs} +14 -10
- package/dist/sync-B4YK6QYX.mjs.map +1 -0
- package/dist/{sync-PSU3F5Z4.js → sync-E32H3H52.js} +32 -28
- package/dist/sync-E32H3H52.js.map +1 -0
- package/dist/{types-1q5wIYP5.d.mts → types-D61S7yPU.d.mts} +917 -527
- package/dist/{types-C9k5gGhU.d.ts → types-D6Cs1385.d.ts} +917 -527
- package/package.json +11 -10
- package/dist/add-35QACTIV.js.map +0 -1
- package/dist/chunk-4NRLVT2U.mjs.map +0 -1
- package/dist/chunk-4ZSSHX6F.js.map +0 -1
- package/dist/chunk-ECUXLXFT.mjs.map +0 -1
- package/dist/chunk-EJWJXTPU.mjs.map +0 -1
- package/dist/chunk-K64Y6YUG.js.map +0 -1
- package/dist/chunk-LP76VXI3.mjs.map +0 -1
- package/dist/chunk-OUCVXP4G.js.map +0 -1
- package/dist/chunk-PGWR3OQY.mjs.map +0 -1
- package/dist/chunk-SGNJDRCT.js.map +0 -1
- package/dist/chunk-SYMZPWZE.mjs.map +0 -1
- package/dist/init-GDKJICSS.js +0 -16
- package/dist/list-7L23G5DY.mjs.map +0 -1
- package/dist/list-OLLQ7XKZ.js.map +0 -1
- package/dist/login-RCNKL5AM.mjs.map +0 -1
- package/dist/login-XF3BQQPV.js.map +0 -1
- package/dist/remove-L6JVJBWY.js.map +0 -1
- package/dist/sync-DPMTUTVL.mjs.map +0 -1
- package/dist/sync-PSU3F5Z4.js.map +0 -1
- /package/dist/{chunk-HUI45ULC.mjs.map → chunk-7ZRAJ52N.mjs.map} +0 -0
- /package/dist/{chunk-GQMDZ4GY.mjs.map → chunk-RBZNMZTF.mjs.map} +0 -0
- /package/dist/{create-MK7NEGCM.mjs.map → create-BHWZP6YD.mjs.map} +0 -0
- /package/dist/{init-RINSTP4L.mjs.map → init-RDW2F4G3.mjs.map} +0 -0
|
@@ -702,72 +702,70 @@ interface paths {
|
|
|
702
702
|
patch?: never;
|
|
703
703
|
trace?: never;
|
|
704
704
|
};
|
|
705
|
-
"/api/
|
|
705
|
+
"/api/prompts/{id}": {
|
|
706
706
|
parameters: {
|
|
707
707
|
query?: never;
|
|
708
708
|
header?: never;
|
|
709
709
|
path?: never;
|
|
710
710
|
cookie?: never;
|
|
711
711
|
};
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
/** @description
|
|
715
|
-
|
|
716
|
-
|
|
712
|
+
/** @description Get a specific prompt */
|
|
713
|
+
get: operations["getApiPromptsById"];
|
|
714
|
+
/** @description Update a prompt */
|
|
715
|
+
put: operations["putApiPromptsById"];
|
|
716
|
+
post?: never;
|
|
717
|
+
/** @description Delete a prompt */
|
|
718
|
+
delete: operations["deleteApiPromptsById"];
|
|
717
719
|
options?: never;
|
|
718
720
|
head?: never;
|
|
719
721
|
patch?: never;
|
|
720
722
|
trace?: never;
|
|
721
723
|
};
|
|
722
|
-
"/api/prompts": {
|
|
724
|
+
"/api/prompts/{id}/versions": {
|
|
723
725
|
parameters: {
|
|
724
726
|
query?: never;
|
|
725
727
|
header?: never;
|
|
726
728
|
path?: never;
|
|
727
729
|
cookie?: never;
|
|
728
730
|
};
|
|
729
|
-
/** @description Get all
|
|
730
|
-
get: operations["
|
|
731
|
+
/** @description Get all versions for a prompt. Does not include base prompt data, only versioned data. */
|
|
732
|
+
get: operations["getApiPromptsByIdVersions"];
|
|
731
733
|
put?: never;
|
|
732
|
-
|
|
733
|
-
post: operations["postApiPrompts"];
|
|
734
|
+
post?: never;
|
|
734
735
|
delete?: never;
|
|
735
736
|
options?: never;
|
|
736
737
|
head?: never;
|
|
737
738
|
patch?: never;
|
|
738
739
|
trace?: never;
|
|
739
740
|
};
|
|
740
|
-
"/api/prompts/{id}": {
|
|
741
|
+
"/api/prompts/{id}/sync": {
|
|
741
742
|
parameters: {
|
|
742
743
|
query?: never;
|
|
743
744
|
header?: never;
|
|
744
745
|
path?: never;
|
|
745
746
|
cookie?: never;
|
|
746
747
|
};
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
/** @description
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
/** @description Delete a prompt */
|
|
753
|
-
delete: operations["deleteApiPromptsById"];
|
|
748
|
+
get?: never;
|
|
749
|
+
put?: never;
|
|
750
|
+
/** @description Sync/upsert a prompt with local content */
|
|
751
|
+
post: operations["postApiPromptsByIdSync"];
|
|
752
|
+
delete?: never;
|
|
754
753
|
options?: never;
|
|
755
754
|
head?: never;
|
|
756
755
|
patch?: never;
|
|
757
756
|
trace?: never;
|
|
758
757
|
};
|
|
759
|
-
"/api/
|
|
758
|
+
"/api/dataset/{slug}/entries": {
|
|
760
759
|
parameters: {
|
|
761
760
|
query?: never;
|
|
762
761
|
header?: never;
|
|
763
762
|
path?: never;
|
|
764
763
|
cookie?: never;
|
|
765
764
|
};
|
|
766
|
-
|
|
767
|
-
get: operations["getApiPromptsByIdVersions"];
|
|
765
|
+
get?: never;
|
|
768
766
|
put?: never;
|
|
769
|
-
/** @description
|
|
770
|
-
post: operations["
|
|
767
|
+
/** @description Add entries to a dataset */
|
|
768
|
+
post: operations["postApiDatasetBySlugEntries"];
|
|
771
769
|
delete?: never;
|
|
772
770
|
options?: never;
|
|
773
771
|
head?: never;
|
|
@@ -791,6 +789,24 @@ interface paths {
|
|
|
791
789
|
patch?: never;
|
|
792
790
|
trace?: never;
|
|
793
791
|
};
|
|
792
|
+
"/api/prompts": {
|
|
793
|
+
parameters: {
|
|
794
|
+
query?: never;
|
|
795
|
+
header?: never;
|
|
796
|
+
path?: never;
|
|
797
|
+
cookie?: never;
|
|
798
|
+
};
|
|
799
|
+
/** @description Get all prompts for a project */
|
|
800
|
+
get: operations["getApiPrompts"];
|
|
801
|
+
put?: never;
|
|
802
|
+
/** @description Create a new prompt with default initial version */
|
|
803
|
+
post: operations["postApiPrompts"];
|
|
804
|
+
delete?: never;
|
|
805
|
+
options?: never;
|
|
806
|
+
head?: never;
|
|
807
|
+
patch?: never;
|
|
808
|
+
trace?: never;
|
|
809
|
+
};
|
|
794
810
|
"/api/scenario-events": {
|
|
795
811
|
parameters: {
|
|
796
812
|
query?: never;
|
|
@@ -809,17 +825,18 @@ interface paths {
|
|
|
809
825
|
patch?: never;
|
|
810
826
|
trace?: never;
|
|
811
827
|
};
|
|
812
|
-
"/
|
|
828
|
+
"/": {
|
|
813
829
|
parameters: {
|
|
814
830
|
query?: never;
|
|
815
831
|
header?: never;
|
|
816
832
|
path?: never;
|
|
817
833
|
cookie?: never;
|
|
818
834
|
};
|
|
819
|
-
|
|
835
|
+
/** @description Get all prompts for a project */
|
|
836
|
+
get: operations["getIndex"];
|
|
820
837
|
put?: never;
|
|
821
|
-
/** @description
|
|
822
|
-
post: operations["
|
|
838
|
+
/** @description Create a new prompt with default initial version */
|
|
839
|
+
post: operations["postIndex"];
|
|
823
840
|
delete?: never;
|
|
824
841
|
options?: never;
|
|
825
842
|
head?: never;
|
|
@@ -950,27 +967,16 @@ interface components {
|
|
|
950
967
|
pathItems: never;
|
|
951
968
|
}
|
|
952
969
|
interface operations {
|
|
953
|
-
|
|
970
|
+
getApiPromptsById: {
|
|
954
971
|
parameters: {
|
|
955
|
-
query?:
|
|
972
|
+
query?: {
|
|
973
|
+
/** @description Specific version number to retrieve */
|
|
974
|
+
version?: number;
|
|
975
|
+
};
|
|
956
976
|
header?: never;
|
|
957
977
|
path: {
|
|
958
|
-
|
|
959
|
-
};
|
|
960
|
-
cookie?: never;
|
|
961
|
-
};
|
|
962
|
-
requestBody?: {
|
|
963
|
-
content: {
|
|
964
|
-
"application/json": components["schemas"]["DatasetPostEntries"];
|
|
978
|
+
id: string;
|
|
965
979
|
};
|
|
966
|
-
};
|
|
967
|
-
responses: never;
|
|
968
|
-
};
|
|
969
|
-
getApiPrompts: {
|
|
970
|
-
parameters: {
|
|
971
|
-
query?: never;
|
|
972
|
-
header?: never;
|
|
973
|
-
path?: never;
|
|
974
980
|
cookie?: never;
|
|
975
981
|
};
|
|
976
982
|
requestBody?: never;
|
|
@@ -983,34 +989,82 @@ interface operations {
|
|
|
983
989
|
content: {
|
|
984
990
|
"application/json": {
|
|
985
991
|
id: string;
|
|
992
|
+
handle: string | null;
|
|
993
|
+
/** @enum {string} */
|
|
994
|
+
scope: "ORGANIZATION" | "PROJECT";
|
|
986
995
|
name: string;
|
|
987
996
|
updatedAt: string;
|
|
988
|
-
|
|
997
|
+
projectId: string;
|
|
998
|
+
organizationId: string;
|
|
989
999
|
versionId: string;
|
|
990
|
-
|
|
991
|
-
|
|
1000
|
+
authorId?: string | null;
|
|
1001
|
+
version: number;
|
|
1002
|
+
createdAt: string;
|
|
1003
|
+
commitMessage?: string | null;
|
|
992
1004
|
prompt: string;
|
|
993
|
-
|
|
1005
|
+
/** @default [] */
|
|
1006
|
+
messages: {
|
|
994
1007
|
/** @enum {string} */
|
|
995
1008
|
role: "user" | "assistant" | "system";
|
|
996
1009
|
content: string;
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1010
|
+
}[];
|
|
1011
|
+
inputs: {
|
|
1012
|
+
identifier: string;
|
|
1013
|
+
/** @enum {string} */
|
|
1014
|
+
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
1015
|
+
}[];
|
|
1016
|
+
outputs: {
|
|
1017
|
+
identifier: string;
|
|
1018
|
+
/** @enum {string} */
|
|
1019
|
+
type: "str" | "float" | "bool" | "json_schema";
|
|
1020
|
+
json_schema?: {
|
|
1021
|
+
type: string;
|
|
1022
|
+
} & {
|
|
1023
|
+
[key: string]: unknown;
|
|
1024
|
+
};
|
|
1025
|
+
}[];
|
|
1026
|
+
model: string;
|
|
1027
|
+
temperature?: number;
|
|
1028
|
+
maxTokens?: number;
|
|
1029
|
+
demonstrations?: {
|
|
1030
|
+
id?: string;
|
|
1031
|
+
name?: string;
|
|
1032
|
+
inline?: {
|
|
1033
|
+
records: {
|
|
1034
|
+
[key: string]: string[];
|
|
1035
|
+
};
|
|
1036
|
+
columnTypes: {
|
|
1037
|
+
name: string;
|
|
1038
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1039
|
+
}[];
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
promptingTechnique?: {
|
|
1043
|
+
/** @enum {string} */
|
|
1044
|
+
type: "few_shot" | "in_context" | "chain_of_thought";
|
|
1045
|
+
demonstrations?: {
|
|
1046
|
+
id?: string;
|
|
1047
|
+
name?: string;
|
|
1048
|
+
inline?: {
|
|
1049
|
+
records: {
|
|
1050
|
+
[key: string]: string[];
|
|
1051
|
+
};
|
|
1052
|
+
columnTypes: {
|
|
1053
|
+
name: string;
|
|
1054
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1055
|
+
}[];
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
responseFormat?: {
|
|
1001
1060
|
/** @enum {string} */
|
|
1002
1061
|
type: "json_schema";
|
|
1003
1062
|
json_schema: {
|
|
1004
1063
|
name: string;
|
|
1005
1064
|
schema: Record<string, never>;
|
|
1006
|
-
};
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
/** @enum {string} */
|
|
1010
|
-
scope: "ORGANIZATION" | "PROJECT";
|
|
1011
|
-
projectId: string;
|
|
1012
|
-
organizationId: string;
|
|
1013
|
-
}[];
|
|
1065
|
+
} | null;
|
|
1066
|
+
};
|
|
1067
|
+
};
|
|
1014
1068
|
};
|
|
1015
1069
|
};
|
|
1016
1070
|
/** @description Bad Request */
|
|
@@ -1020,8 +1074,8 @@ interface operations {
|
|
|
1020
1074
|
};
|
|
1021
1075
|
content: {
|
|
1022
1076
|
"application/json": {
|
|
1023
|
-
|
|
1024
|
-
|
|
1077
|
+
error: string;
|
|
1078
|
+
message?: string;
|
|
1025
1079
|
};
|
|
1026
1080
|
};
|
|
1027
1081
|
};
|
|
@@ -1032,8 +1086,20 @@ interface operations {
|
|
|
1032
1086
|
};
|
|
1033
1087
|
content: {
|
|
1034
1088
|
"application/json": {
|
|
1035
|
-
|
|
1036
|
-
|
|
1089
|
+
error: string;
|
|
1090
|
+
message?: string;
|
|
1091
|
+
};
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
/** @description Prompt not found */
|
|
1095
|
+
404: {
|
|
1096
|
+
headers: {
|
|
1097
|
+
[name: string]: unknown;
|
|
1098
|
+
};
|
|
1099
|
+
content: {
|
|
1100
|
+
"application/json": {
|
|
1101
|
+
error: string;
|
|
1102
|
+
message?: string;
|
|
1037
1103
|
};
|
|
1038
1104
|
};
|
|
1039
1105
|
};
|
|
@@ -1045,28 +1111,29 @@ interface operations {
|
|
|
1045
1111
|
content: {
|
|
1046
1112
|
"application/json": {
|
|
1047
1113
|
error: string;
|
|
1114
|
+
message?: string;
|
|
1048
1115
|
};
|
|
1049
1116
|
};
|
|
1050
1117
|
};
|
|
1051
1118
|
};
|
|
1052
1119
|
};
|
|
1053
|
-
|
|
1120
|
+
putApiPromptsById: {
|
|
1054
1121
|
parameters: {
|
|
1055
1122
|
query?: never;
|
|
1056
1123
|
header?: never;
|
|
1057
|
-
path
|
|
1124
|
+
path: {
|
|
1125
|
+
id: string;
|
|
1126
|
+
};
|
|
1058
1127
|
cookie?: never;
|
|
1059
1128
|
};
|
|
1060
1129
|
requestBody?: {
|
|
1061
1130
|
content: {
|
|
1062
1131
|
"application/json": {
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
*/
|
|
1069
|
-
scope?: "ORGANIZATION" | "PROJECT";
|
|
1132
|
+
handle?: string;
|
|
1133
|
+
model?: string;
|
|
1134
|
+
temperature?: number;
|
|
1135
|
+
maxTokens?: number;
|
|
1136
|
+
commitMessage?: string;
|
|
1070
1137
|
authorId?: string;
|
|
1071
1138
|
prompt?: string;
|
|
1072
1139
|
messages?: {
|
|
@@ -1089,6 +1156,10 @@ interface operations {
|
|
|
1089
1156
|
[key: string]: unknown;
|
|
1090
1157
|
};
|
|
1091
1158
|
}[];
|
|
1159
|
+
/** @enum {string} */
|
|
1160
|
+
schemaVersion?: "1.0";
|
|
1161
|
+
/** @enum {string} */
|
|
1162
|
+
scope?: "ORGANIZATION" | "PROJECT";
|
|
1092
1163
|
};
|
|
1093
1164
|
};
|
|
1094
1165
|
};
|
|
@@ -1101,129 +1172,93 @@ interface operations {
|
|
|
1101
1172
|
content: {
|
|
1102
1173
|
"application/json": {
|
|
1103
1174
|
id: string;
|
|
1175
|
+
handle: string | null;
|
|
1176
|
+
/** @enum {string} */
|
|
1177
|
+
scope: "ORGANIZATION" | "PROJECT";
|
|
1104
1178
|
name: string;
|
|
1105
1179
|
updatedAt: string;
|
|
1106
|
-
|
|
1180
|
+
projectId: string;
|
|
1181
|
+
organizationId: string;
|
|
1107
1182
|
versionId: string;
|
|
1108
|
-
|
|
1109
|
-
|
|
1183
|
+
authorId?: string | null;
|
|
1184
|
+
version: number;
|
|
1185
|
+
createdAt: string;
|
|
1186
|
+
commitMessage?: string | null;
|
|
1110
1187
|
prompt: string;
|
|
1111
|
-
|
|
1188
|
+
/** @default [] */
|
|
1189
|
+
messages: {
|
|
1112
1190
|
/** @enum {string} */
|
|
1113
1191
|
role: "user" | "assistant" | "system";
|
|
1114
1192
|
content: string;
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1193
|
+
}[];
|
|
1194
|
+
inputs: {
|
|
1195
|
+
identifier: string;
|
|
1196
|
+
/** @enum {string} */
|
|
1197
|
+
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
1198
|
+
}[];
|
|
1199
|
+
outputs: {
|
|
1200
|
+
identifier: string;
|
|
1201
|
+
/** @enum {string} */
|
|
1202
|
+
type: "str" | "float" | "bool" | "json_schema";
|
|
1203
|
+
json_schema?: {
|
|
1204
|
+
type: string;
|
|
1205
|
+
} & {
|
|
1206
|
+
[key: string]: unknown;
|
|
1207
|
+
};
|
|
1208
|
+
}[];
|
|
1209
|
+
model: string;
|
|
1210
|
+
temperature?: number;
|
|
1211
|
+
maxTokens?: number;
|
|
1212
|
+
demonstrations?: {
|
|
1213
|
+
id?: string;
|
|
1214
|
+
name?: string;
|
|
1215
|
+
inline?: {
|
|
1216
|
+
records: {
|
|
1217
|
+
[key: string]: string[];
|
|
1218
|
+
};
|
|
1219
|
+
columnTypes: {
|
|
1220
|
+
name: string;
|
|
1221
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1222
|
+
}[];
|
|
1223
|
+
};
|
|
1224
|
+
};
|
|
1225
|
+
promptingTechnique?: {
|
|
1226
|
+
/** @enum {string} */
|
|
1227
|
+
type: "few_shot" | "in_context" | "chain_of_thought";
|
|
1228
|
+
demonstrations?: {
|
|
1229
|
+
id?: string;
|
|
1230
|
+
name?: string;
|
|
1231
|
+
inline?: {
|
|
1232
|
+
records: {
|
|
1233
|
+
[key: string]: string[];
|
|
1234
|
+
};
|
|
1235
|
+
columnTypes: {
|
|
1236
|
+
name: string;
|
|
1237
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1238
|
+
}[];
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
};
|
|
1242
|
+
responseFormat?: {
|
|
1119
1243
|
/** @enum {string} */
|
|
1120
1244
|
type: "json_schema";
|
|
1121
1245
|
json_schema: {
|
|
1122
1246
|
name: string;
|
|
1123
1247
|
schema: Record<string, never>;
|
|
1124
|
-
};
|
|
1125
|
-
}
|
|
1126
|
-
handle: string | null;
|
|
1127
|
-
/** @enum {string} */
|
|
1128
|
-
scope: "ORGANIZATION" | "PROJECT";
|
|
1129
|
-
projectId: string;
|
|
1130
|
-
organizationId: string;
|
|
1248
|
+
} | null;
|
|
1249
|
+
};
|
|
1131
1250
|
};
|
|
1132
1251
|
};
|
|
1133
1252
|
};
|
|
1134
1253
|
/** @description Bad Request */
|
|
1135
1254
|
400: {
|
|
1136
|
-
headers: {
|
|
1137
|
-
[name: string]: unknown;
|
|
1138
|
-
};
|
|
1139
|
-
content: {
|
|
1140
|
-
"application/json": {
|
|
1141
|
-
/** @enum {string} */
|
|
1142
|
-
error: "Bad Request";
|
|
1143
|
-
};
|
|
1144
|
-
};
|
|
1145
|
-
};
|
|
1146
|
-
/** @description Unauthorized */
|
|
1147
|
-
401: {
|
|
1148
|
-
headers: {
|
|
1149
|
-
[name: string]: unknown;
|
|
1150
|
-
};
|
|
1151
|
-
content: {
|
|
1152
|
-
"application/json": {
|
|
1153
|
-
/** @enum {string} */
|
|
1154
|
-
error: "Unauthorized";
|
|
1155
|
-
};
|
|
1156
|
-
};
|
|
1157
|
-
};
|
|
1158
|
-
/** @description Internal Server Error */
|
|
1159
|
-
500: {
|
|
1160
1255
|
headers: {
|
|
1161
1256
|
[name: string]: unknown;
|
|
1162
1257
|
};
|
|
1163
1258
|
content: {
|
|
1164
1259
|
"application/json": {
|
|
1165
1260
|
error: string;
|
|
1166
|
-
|
|
1167
|
-
};
|
|
1168
|
-
};
|
|
1169
|
-
};
|
|
1170
|
-
};
|
|
1171
|
-
getApiPromptsById: {
|
|
1172
|
-
parameters: {
|
|
1173
|
-
query?: never;
|
|
1174
|
-
header?: never;
|
|
1175
|
-
path: {
|
|
1176
|
-
id: string;
|
|
1177
|
-
};
|
|
1178
|
-
cookie?: never;
|
|
1179
|
-
};
|
|
1180
|
-
requestBody?: never;
|
|
1181
|
-
responses: {
|
|
1182
|
-
/** @description Success */
|
|
1183
|
-
200: {
|
|
1184
|
-
headers: {
|
|
1185
|
-
[name: string]: unknown;
|
|
1186
|
-
};
|
|
1187
|
-
content: {
|
|
1188
|
-
"application/json": {
|
|
1189
|
-
id: string;
|
|
1190
|
-
name: string;
|
|
1191
|
-
updatedAt: string;
|
|
1192
|
-
version: number;
|
|
1193
|
-
versionId: string;
|
|
1194
|
-
versionCreatedAt: string;
|
|
1195
|
-
model: string;
|
|
1196
|
-
prompt: string;
|
|
1197
|
-
messages: ({
|
|
1198
|
-
/** @enum {string} */
|
|
1199
|
-
role: "user" | "assistant" | "system";
|
|
1200
|
-
content: string;
|
|
1201
|
-
} & {
|
|
1202
|
-
[key: string]: unknown;
|
|
1203
|
-
})[];
|
|
1204
|
-
response_format: {
|
|
1205
|
-
/** @enum {string} */
|
|
1206
|
-
type: "json_schema";
|
|
1207
|
-
json_schema: {
|
|
1208
|
-
name: string;
|
|
1209
|
-
schema: Record<string, never>;
|
|
1210
|
-
};
|
|
1211
|
-
} | null;
|
|
1212
|
-
handle: string | null;
|
|
1213
|
-
/** @enum {string} */
|
|
1214
|
-
scope: "ORGANIZATION" | "PROJECT";
|
|
1215
|
-
};
|
|
1216
|
-
};
|
|
1217
|
-
};
|
|
1218
|
-
/** @description Bad Request */
|
|
1219
|
-
400: {
|
|
1220
|
-
headers: {
|
|
1221
|
-
[name: string]: unknown;
|
|
1222
|
-
};
|
|
1223
|
-
content: {
|
|
1224
|
-
"application/json": {
|
|
1225
|
-
/** @enum {string} */
|
|
1226
|
-
error: "Bad Request";
|
|
1261
|
+
message?: string;
|
|
1227
1262
|
};
|
|
1228
1263
|
};
|
|
1229
1264
|
};
|
|
@@ -1234,8 +1269,8 @@ interface operations {
|
|
|
1234
1269
|
};
|
|
1235
1270
|
content: {
|
|
1236
1271
|
"application/json": {
|
|
1237
|
-
|
|
1238
|
-
|
|
1272
|
+
error: string;
|
|
1273
|
+
message?: string;
|
|
1239
1274
|
};
|
|
1240
1275
|
};
|
|
1241
1276
|
};
|
|
@@ -1247,90 +1282,31 @@ interface operations {
|
|
|
1247
1282
|
content: {
|
|
1248
1283
|
"application/json": {
|
|
1249
1284
|
error: string;
|
|
1285
|
+
message?: string;
|
|
1250
1286
|
};
|
|
1251
1287
|
};
|
|
1252
1288
|
};
|
|
1253
|
-
/** @description
|
|
1254
|
-
|
|
1289
|
+
/** @description Conflict */
|
|
1290
|
+
409: {
|
|
1255
1291
|
headers: {
|
|
1256
1292
|
[name: string]: unknown;
|
|
1257
1293
|
};
|
|
1258
1294
|
content: {
|
|
1259
1295
|
"application/json": {
|
|
1260
1296
|
error: string;
|
|
1297
|
+
message: string;
|
|
1261
1298
|
};
|
|
1262
1299
|
};
|
|
1263
1300
|
};
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
putApiPromptsById: {
|
|
1267
|
-
parameters: {
|
|
1268
|
-
query?: never;
|
|
1269
|
-
header?: never;
|
|
1270
|
-
path: {
|
|
1271
|
-
id: string;
|
|
1272
|
-
};
|
|
1273
|
-
cookie?: never;
|
|
1274
|
-
};
|
|
1275
|
-
requestBody?: {
|
|
1276
|
-
content: {
|
|
1277
|
-
"application/json": {
|
|
1278
|
-
name: string;
|
|
1279
|
-
handle?: string;
|
|
1280
|
-
/** @enum {string} */
|
|
1281
|
-
scope?: "ORGANIZATION" | "PROJECT";
|
|
1282
|
-
};
|
|
1283
|
-
};
|
|
1284
|
-
};
|
|
1285
|
-
responses: {
|
|
1286
|
-
/** @description Success */
|
|
1287
|
-
200: {
|
|
1288
|
-
headers: {
|
|
1289
|
-
[name: string]: unknown;
|
|
1290
|
-
};
|
|
1291
|
-
content: {
|
|
1292
|
-
"application/json": {
|
|
1293
|
-
id: string;
|
|
1294
|
-
name: string;
|
|
1295
|
-
updatedAt: string;
|
|
1296
|
-
handle: string | null;
|
|
1297
|
-
/** @enum {string} */
|
|
1298
|
-
scope: "ORGANIZATION" | "PROJECT";
|
|
1299
|
-
};
|
|
1300
|
-
};
|
|
1301
|
-
};
|
|
1302
|
-
/** @description Bad Request */
|
|
1303
|
-
400: {
|
|
1304
|
-
headers: {
|
|
1305
|
-
[name: string]: unknown;
|
|
1306
|
-
};
|
|
1307
|
-
content: {
|
|
1308
|
-
"application/json": {
|
|
1309
|
-
/** @enum {string} */
|
|
1310
|
-
error: "Bad Request";
|
|
1311
|
-
};
|
|
1312
|
-
};
|
|
1313
|
-
};
|
|
1314
|
-
/** @description Unauthorized */
|
|
1315
|
-
401: {
|
|
1316
|
-
headers: {
|
|
1317
|
-
[name: string]: unknown;
|
|
1318
|
-
};
|
|
1319
|
-
content: {
|
|
1320
|
-
"application/json": {
|
|
1321
|
-
/** @enum {string} */
|
|
1322
|
-
error: "Unauthorized";
|
|
1323
|
-
};
|
|
1324
|
-
};
|
|
1325
|
-
};
|
|
1326
|
-
/** @description Prompt not found */
|
|
1327
|
-
404: {
|
|
1301
|
+
/** @description Invalid input */
|
|
1302
|
+
422: {
|
|
1328
1303
|
headers: {
|
|
1329
1304
|
[name: string]: unknown;
|
|
1330
1305
|
};
|
|
1331
1306
|
content: {
|
|
1332
1307
|
"application/json": {
|
|
1333
1308
|
error: string;
|
|
1309
|
+
message?: string;
|
|
1334
1310
|
};
|
|
1335
1311
|
};
|
|
1336
1312
|
};
|
|
@@ -1342,6 +1318,7 @@ interface operations {
|
|
|
1342
1318
|
content: {
|
|
1343
1319
|
"application/json": {
|
|
1344
1320
|
error: string;
|
|
1321
|
+
message?: string;
|
|
1345
1322
|
};
|
|
1346
1323
|
};
|
|
1347
1324
|
};
|
|
@@ -1376,8 +1353,8 @@ interface operations {
|
|
|
1376
1353
|
};
|
|
1377
1354
|
content: {
|
|
1378
1355
|
"application/json": {
|
|
1379
|
-
|
|
1380
|
-
|
|
1356
|
+
error: string;
|
|
1357
|
+
message?: string;
|
|
1381
1358
|
};
|
|
1382
1359
|
};
|
|
1383
1360
|
};
|
|
@@ -1388,8 +1365,8 @@ interface operations {
|
|
|
1388
1365
|
};
|
|
1389
1366
|
content: {
|
|
1390
1367
|
"application/json": {
|
|
1391
|
-
|
|
1392
|
-
|
|
1368
|
+
error: string;
|
|
1369
|
+
message?: string;
|
|
1393
1370
|
};
|
|
1394
1371
|
};
|
|
1395
1372
|
};
|
|
@@ -1401,6 +1378,7 @@ interface operations {
|
|
|
1401
1378
|
content: {
|
|
1402
1379
|
"application/json": {
|
|
1403
1380
|
error: string;
|
|
1381
|
+
message?: string;
|
|
1404
1382
|
};
|
|
1405
1383
|
};
|
|
1406
1384
|
};
|
|
@@ -1412,6 +1390,7 @@ interface operations {
|
|
|
1412
1390
|
content: {
|
|
1413
1391
|
"application/json": {
|
|
1414
1392
|
error: string;
|
|
1393
|
+
message?: string;
|
|
1415
1394
|
};
|
|
1416
1395
|
};
|
|
1417
1396
|
};
|
|
@@ -1436,56 +1415,60 @@ interface operations {
|
|
|
1436
1415
|
content: {
|
|
1437
1416
|
"application/json": {
|
|
1438
1417
|
id: string;
|
|
1439
|
-
|
|
1418
|
+
handle: string | null;
|
|
1419
|
+
/** @enum {string} */
|
|
1420
|
+
scope: "ORGANIZATION" | "PROJECT";
|
|
1421
|
+
name: string;
|
|
1422
|
+
updatedAt: string;
|
|
1440
1423
|
projectId: string;
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
commitMessage?: string | null;
|
|
1424
|
+
organizationId: string;
|
|
1425
|
+
versionId: string;
|
|
1426
|
+
authorId?: string | null;
|
|
1445
1427
|
version: number;
|
|
1446
1428
|
createdAt: string;
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1429
|
+
commitMessage?: string | null;
|
|
1430
|
+
prompt: string;
|
|
1431
|
+
/** @default [] */
|
|
1432
|
+
messages: {
|
|
1433
|
+
/** @enum {string} */
|
|
1434
|
+
role: "user" | "assistant" | "system";
|
|
1435
|
+
content: string;
|
|
1436
|
+
}[];
|
|
1437
|
+
inputs: {
|
|
1438
|
+
identifier: string;
|
|
1439
|
+
/** @enum {string} */
|
|
1440
|
+
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
1441
|
+
}[];
|
|
1442
|
+
outputs: {
|
|
1443
|
+
identifier: string;
|
|
1444
|
+
/** @enum {string} */
|
|
1445
|
+
type: "str" | "float" | "bool" | "json_schema";
|
|
1446
|
+
json_schema?: {
|
|
1447
|
+
type: string;
|
|
1455
1448
|
} & {
|
|
1456
1449
|
[key: string]: unknown;
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
type: string;
|
|
1469
|
-
} & {
|
|
1470
|
-
[key: string]: unknown;
|
|
1450
|
+
};
|
|
1451
|
+
}[];
|
|
1452
|
+
model: string;
|
|
1453
|
+
temperature?: number;
|
|
1454
|
+
maxTokens?: number;
|
|
1455
|
+
demonstrations?: {
|
|
1456
|
+
id?: string;
|
|
1457
|
+
name?: string;
|
|
1458
|
+
inline?: {
|
|
1459
|
+
records: {
|
|
1460
|
+
[key: string]: string[];
|
|
1471
1461
|
};
|
|
1472
|
-
|
|
1473
|
-
model: string;
|
|
1474
|
-
temperature?: number;
|
|
1475
|
-
max_tokens?: number;
|
|
1476
|
-
demonstrations?: {
|
|
1477
|
-
columns: {
|
|
1478
|
-
id: string;
|
|
1462
|
+
columnTypes: {
|
|
1479
1463
|
name: string;
|
|
1480
|
-
/** @enum {string} */
|
|
1481
1464
|
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1482
1465
|
}[];
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
promptingTechnique?: {
|
|
1469
|
+
/** @enum {string} */
|
|
1470
|
+
type: "few_shot" | "in_context" | "chain_of_thought";
|
|
1471
|
+
demonstrations?: {
|
|
1489
1472
|
id?: string;
|
|
1490
1473
|
name?: string;
|
|
1491
1474
|
inline?: {
|
|
@@ -1498,17 +1481,16 @@ interface operations {
|
|
|
1498
1481
|
}[];
|
|
1499
1482
|
};
|
|
1500
1483
|
};
|
|
1501
|
-
prompting_technique?: {
|
|
1502
|
-
ref?: string;
|
|
1503
|
-
};
|
|
1504
1484
|
};
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1485
|
+
responseFormat?: {
|
|
1486
|
+
/** @enum {string} */
|
|
1487
|
+
type: "json_schema";
|
|
1488
|
+
json_schema: {
|
|
1489
|
+
name: string;
|
|
1490
|
+
schema: Record<string, never>;
|
|
1491
|
+
} | null;
|
|
1492
|
+
};
|
|
1493
|
+
}[];
|
|
1512
1494
|
};
|
|
1513
1495
|
};
|
|
1514
1496
|
/** @description Bad Request */
|
|
@@ -1518,8 +1500,8 @@ interface operations {
|
|
|
1518
1500
|
};
|
|
1519
1501
|
content: {
|
|
1520
1502
|
"application/json": {
|
|
1521
|
-
|
|
1522
|
-
|
|
1503
|
+
error: string;
|
|
1504
|
+
message?: string;
|
|
1523
1505
|
};
|
|
1524
1506
|
};
|
|
1525
1507
|
};
|
|
@@ -1530,8 +1512,8 @@ interface operations {
|
|
|
1530
1512
|
};
|
|
1531
1513
|
content: {
|
|
1532
1514
|
"application/json": {
|
|
1533
|
-
|
|
1534
|
-
|
|
1515
|
+
error: string;
|
|
1516
|
+
message?: string;
|
|
1535
1517
|
};
|
|
1536
1518
|
};
|
|
1537
1519
|
};
|
|
@@ -1543,6 +1525,7 @@ interface operations {
|
|
|
1543
1525
|
content: {
|
|
1544
1526
|
"application/json": {
|
|
1545
1527
|
error: string;
|
|
1528
|
+
message?: string;
|
|
1546
1529
|
};
|
|
1547
1530
|
};
|
|
1548
1531
|
};
|
|
@@ -1554,12 +1537,13 @@ interface operations {
|
|
|
1554
1537
|
content: {
|
|
1555
1538
|
"application/json": {
|
|
1556
1539
|
error: string;
|
|
1540
|
+
message?: string;
|
|
1557
1541
|
};
|
|
1558
1542
|
};
|
|
1559
1543
|
};
|
|
1560
1544
|
};
|
|
1561
1545
|
};
|
|
1562
|
-
|
|
1546
|
+
postApiPromptsByIdSync: {
|
|
1563
1547
|
parameters: {
|
|
1564
1548
|
query?: never;
|
|
1565
1549
|
header?: never;
|
|
@@ -1571,26 +1555,14 @@ interface operations {
|
|
|
1571
1555
|
requestBody?: {
|
|
1572
1556
|
content: {
|
|
1573
1557
|
"application/json": {
|
|
1574
|
-
id?: string;
|
|
1575
|
-
authorId?: string | null;
|
|
1576
|
-
projectId: string;
|
|
1577
|
-
configId: string;
|
|
1578
|
-
/** @constant */
|
|
1579
|
-
schemaVersion: "1.0";
|
|
1580
|
-
commitMessage: string;
|
|
1581
|
-
version: number;
|
|
1582
|
-
createdAt?: string;
|
|
1583
1558
|
configData: {
|
|
1584
|
-
version?: number;
|
|
1585
1559
|
prompt: string;
|
|
1586
1560
|
/** @default [] */
|
|
1587
|
-
messages?:
|
|
1561
|
+
messages?: {
|
|
1588
1562
|
/** @enum {string} */
|
|
1589
1563
|
role: "user" | "assistant" | "system";
|
|
1590
1564
|
content: string;
|
|
1591
|
-
}
|
|
1592
|
-
[key: string]: unknown;
|
|
1593
|
-
})[];
|
|
1565
|
+
}[];
|
|
1594
1566
|
inputs: {
|
|
1595
1567
|
identifier: string;
|
|
1596
1568
|
/** @enum {string} */
|
|
@@ -1610,18 +1582,6 @@ interface operations {
|
|
|
1610
1582
|
temperature?: number;
|
|
1611
1583
|
max_tokens?: number;
|
|
1612
1584
|
demonstrations?: {
|
|
1613
|
-
columns: {
|
|
1614
|
-
id: string;
|
|
1615
|
-
name: string;
|
|
1616
|
-
/** @enum {string} */
|
|
1617
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1618
|
-
}[];
|
|
1619
|
-
/** @default [] */
|
|
1620
|
-
rows?: ({
|
|
1621
|
-
id: string;
|
|
1622
|
-
} & {
|
|
1623
|
-
[key: string]: unknown;
|
|
1624
|
-
})[];
|
|
1625
1585
|
id?: string;
|
|
1626
1586
|
name?: string;
|
|
1627
1587
|
inline?: {
|
|
@@ -1635,43 +1595,67 @@ interface operations {
|
|
|
1635
1595
|
};
|
|
1636
1596
|
};
|
|
1637
1597
|
prompting_technique?: {
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1598
|
+
/** @enum {string} */
|
|
1599
|
+
type: "few_shot" | "in_context" | "chain_of_thought";
|
|
1600
|
+
demonstrations?: {
|
|
1601
|
+
id?: string;
|
|
1602
|
+
name?: string;
|
|
1603
|
+
inline?: {
|
|
1604
|
+
records: {
|
|
1605
|
+
[key: string]: string[];
|
|
1606
|
+
};
|
|
1607
|
+
columnTypes: {
|
|
1608
|
+
name: string;
|
|
1609
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1610
|
+
}[];
|
|
1611
|
+
};
|
|
1612
|
+
};
|
|
1613
|
+
};
|
|
1614
|
+
response_format?: {
|
|
1615
|
+
/** @enum {string} */
|
|
1616
|
+
type: "json_schema";
|
|
1617
|
+
json_schema: {
|
|
1618
|
+
name: string;
|
|
1619
|
+
schema: Record<string, never>;
|
|
1620
|
+
} | null;
|
|
1621
|
+
};
|
|
1622
|
+
};
|
|
1623
|
+
localVersion?: number;
|
|
1624
|
+
commitMessage?: string;
|
|
1644
1625
|
};
|
|
1645
1626
|
};
|
|
1646
1627
|
};
|
|
1647
1628
|
responses: {
|
|
1648
|
-
/** @description
|
|
1629
|
+
/** @description Sync result */
|
|
1649
1630
|
200: {
|
|
1650
1631
|
headers: {
|
|
1651
1632
|
[name: string]: unknown;
|
|
1652
1633
|
};
|
|
1653
1634
|
content: {
|
|
1654
1635
|
"application/json": {
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1636
|
+
/** @enum {string} */
|
|
1637
|
+
action: "created" | "updated" | "conflict" | "up_to_date";
|
|
1638
|
+
prompt?: {
|
|
1639
|
+
id: string;
|
|
1640
|
+
handle: string | null;
|
|
1641
|
+
/** @enum {string} */
|
|
1642
|
+
scope: "ORGANIZATION" | "PROJECT";
|
|
1643
|
+
name: string;
|
|
1644
|
+
updatedAt: string;
|
|
1645
|
+
projectId: string;
|
|
1646
|
+
organizationId: string;
|
|
1647
|
+
versionId: string;
|
|
1648
|
+
authorId?: string | null;
|
|
1649
|
+
version: number;
|
|
1650
|
+
createdAt: string;
|
|
1651
|
+
commitMessage?: string | null;
|
|
1666
1652
|
prompt: string;
|
|
1667
1653
|
/** @default [] */
|
|
1668
|
-
messages:
|
|
1654
|
+
messages: {
|
|
1669
1655
|
/** @enum {string} */
|
|
1670
1656
|
role: "user" | "assistant" | "system";
|
|
1671
1657
|
content: string;
|
|
1672
|
-
}
|
|
1673
|
-
[key: string]: unknown;
|
|
1674
|
-
})[];
|
|
1658
|
+
}[];
|
|
1675
1659
|
inputs: {
|
|
1676
1660
|
identifier: string;
|
|
1677
1661
|
/** @enum {string} */
|
|
@@ -1689,20 +1673,8 @@ interface operations {
|
|
|
1689
1673
|
}[];
|
|
1690
1674
|
model: string;
|
|
1691
1675
|
temperature?: number;
|
|
1692
|
-
|
|
1676
|
+
maxTokens?: number;
|
|
1693
1677
|
demonstrations?: {
|
|
1694
|
-
columns: {
|
|
1695
|
-
id: string;
|
|
1696
|
-
name: string;
|
|
1697
|
-
/** @enum {string} */
|
|
1698
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1699
|
-
}[];
|
|
1700
|
-
/** @default [] */
|
|
1701
|
-
rows: ({
|
|
1702
|
-
id: string;
|
|
1703
|
-
} & {
|
|
1704
|
-
[key: string]: unknown;
|
|
1705
|
-
})[];
|
|
1706
1678
|
id?: string;
|
|
1707
1679
|
name?: string;
|
|
1708
1680
|
inline?: {
|
|
@@ -1715,16 +1687,102 @@ interface operations {
|
|
|
1715
1687
|
}[];
|
|
1716
1688
|
};
|
|
1717
1689
|
};
|
|
1718
|
-
|
|
1719
|
-
|
|
1690
|
+
promptingTechnique?: {
|
|
1691
|
+
/** @enum {string} */
|
|
1692
|
+
type: "few_shot" | "in_context" | "chain_of_thought";
|
|
1693
|
+
demonstrations?: {
|
|
1694
|
+
id?: string;
|
|
1695
|
+
name?: string;
|
|
1696
|
+
inline?: {
|
|
1697
|
+
records: {
|
|
1698
|
+
[key: string]: string[];
|
|
1699
|
+
};
|
|
1700
|
+
columnTypes: {
|
|
1701
|
+
name: string;
|
|
1702
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1703
|
+
}[];
|
|
1704
|
+
};
|
|
1705
|
+
};
|
|
1706
|
+
};
|
|
1707
|
+
responseFormat?: {
|
|
1708
|
+
/** @enum {string} */
|
|
1709
|
+
type: "json_schema";
|
|
1710
|
+
json_schema: {
|
|
1711
|
+
name: string;
|
|
1712
|
+
schema: Record<string, never>;
|
|
1713
|
+
} | null;
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
1716
|
+
conflictInfo?: {
|
|
1717
|
+
localVersion: number;
|
|
1718
|
+
remoteVersion: number;
|
|
1719
|
+
differences: string[];
|
|
1720
|
+
remoteConfigData: {
|
|
1721
|
+
prompt: string;
|
|
1722
|
+
/** @default [] */
|
|
1723
|
+
messages: {
|
|
1724
|
+
/** @enum {string} */
|
|
1725
|
+
role: "user" | "assistant" | "system";
|
|
1726
|
+
content: string;
|
|
1727
|
+
}[];
|
|
1728
|
+
inputs: {
|
|
1729
|
+
identifier: string;
|
|
1730
|
+
/** @enum {string} */
|
|
1731
|
+
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
1732
|
+
}[];
|
|
1733
|
+
outputs: {
|
|
1734
|
+
identifier: string;
|
|
1735
|
+
/** @enum {string} */
|
|
1736
|
+
type: "str" | "float" | "bool" | "json_schema";
|
|
1737
|
+
json_schema?: {
|
|
1738
|
+
type: string;
|
|
1739
|
+
} & {
|
|
1740
|
+
[key: string]: unknown;
|
|
1741
|
+
};
|
|
1742
|
+
}[];
|
|
1743
|
+
model: string;
|
|
1744
|
+
temperature?: number;
|
|
1745
|
+
max_tokens?: number;
|
|
1746
|
+
demonstrations?: {
|
|
1747
|
+
id?: string;
|
|
1748
|
+
name?: string;
|
|
1749
|
+
inline?: {
|
|
1750
|
+
records: {
|
|
1751
|
+
[key: string]: string[];
|
|
1752
|
+
};
|
|
1753
|
+
columnTypes: {
|
|
1754
|
+
name: string;
|
|
1755
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1756
|
+
}[];
|
|
1757
|
+
};
|
|
1758
|
+
};
|
|
1759
|
+
prompting_technique?: {
|
|
1760
|
+
/** @enum {string} */
|
|
1761
|
+
type: "few_shot" | "in_context" | "chain_of_thought";
|
|
1762
|
+
demonstrations?: {
|
|
1763
|
+
id?: string;
|
|
1764
|
+
name?: string;
|
|
1765
|
+
inline?: {
|
|
1766
|
+
records: {
|
|
1767
|
+
[key: string]: string[];
|
|
1768
|
+
};
|
|
1769
|
+
columnTypes: {
|
|
1770
|
+
name: string;
|
|
1771
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1772
|
+
}[];
|
|
1773
|
+
};
|
|
1774
|
+
};
|
|
1775
|
+
};
|
|
1776
|
+
response_format?: {
|
|
1777
|
+
/** @enum {string} */
|
|
1778
|
+
type: "json_schema";
|
|
1779
|
+
json_schema: {
|
|
1780
|
+
name: string;
|
|
1781
|
+
schema: Record<string, never>;
|
|
1782
|
+
} | null;
|
|
1783
|
+
};
|
|
1720
1784
|
};
|
|
1721
1785
|
};
|
|
1722
|
-
author?: {
|
|
1723
|
-
name: string;
|
|
1724
|
-
} | null;
|
|
1725
|
-
handle: string | null;
|
|
1726
|
-
/** @enum {string} */
|
|
1727
|
-
scope: "ORGANIZATION" | "PROJECT";
|
|
1728
1786
|
};
|
|
1729
1787
|
};
|
|
1730
1788
|
};
|
|
@@ -1735,31 +1793,20 @@ interface operations {
|
|
|
1735
1793
|
};
|
|
1736
1794
|
content: {
|
|
1737
1795
|
"application/json": {
|
|
1738
|
-
|
|
1739
|
-
|
|
1796
|
+
error: string;
|
|
1797
|
+
message?: string;
|
|
1740
1798
|
};
|
|
1741
1799
|
};
|
|
1742
1800
|
};
|
|
1743
1801
|
/** @description Unauthorized */
|
|
1744
1802
|
401: {
|
|
1745
|
-
headers: {
|
|
1746
|
-
[name: string]: unknown;
|
|
1747
|
-
};
|
|
1748
|
-
content: {
|
|
1749
|
-
"application/json": {
|
|
1750
|
-
/** @enum {string} */
|
|
1751
|
-
error: "Unauthorized";
|
|
1752
|
-
};
|
|
1753
|
-
};
|
|
1754
|
-
};
|
|
1755
|
-
/** @description Prompt not found */
|
|
1756
|
-
404: {
|
|
1757
1803
|
headers: {
|
|
1758
1804
|
[name: string]: unknown;
|
|
1759
1805
|
};
|
|
1760
1806
|
content: {
|
|
1761
1807
|
"application/json": {
|
|
1762
1808
|
error: string;
|
|
1809
|
+
message?: string;
|
|
1763
1810
|
};
|
|
1764
1811
|
};
|
|
1765
1812
|
};
|
|
@@ -1771,11 +1818,28 @@ interface operations {
|
|
|
1771
1818
|
content: {
|
|
1772
1819
|
"application/json": {
|
|
1773
1820
|
error: string;
|
|
1821
|
+
message?: string;
|
|
1774
1822
|
};
|
|
1775
1823
|
};
|
|
1776
1824
|
};
|
|
1777
1825
|
};
|
|
1778
1826
|
};
|
|
1827
|
+
postApiDatasetBySlugEntries: {
|
|
1828
|
+
parameters: {
|
|
1829
|
+
query?: never;
|
|
1830
|
+
header?: never;
|
|
1831
|
+
path: {
|
|
1832
|
+
slug: string;
|
|
1833
|
+
};
|
|
1834
|
+
cookie?: never;
|
|
1835
|
+
};
|
|
1836
|
+
requestBody?: {
|
|
1837
|
+
content: {
|
|
1838
|
+
"application/json": components["schemas"]["DatasetPostEntries"];
|
|
1839
|
+
};
|
|
1840
|
+
};
|
|
1841
|
+
responses: never;
|
|
1842
|
+
};
|
|
1779
1843
|
getApiDatasetBySlugOrId: {
|
|
1780
1844
|
parameters: {
|
|
1781
1845
|
query?: never;
|
|
@@ -1814,7 +1878,6 @@ interface operations {
|
|
|
1814
1878
|
};
|
|
1815
1879
|
content: {
|
|
1816
1880
|
"application/json": {
|
|
1817
|
-
error?: string;
|
|
1818
1881
|
/** @default error */
|
|
1819
1882
|
status: string;
|
|
1820
1883
|
message: string;
|
|
@@ -1828,7 +1891,6 @@ interface operations {
|
|
|
1828
1891
|
};
|
|
1829
1892
|
content: {
|
|
1830
1893
|
"application/json": {
|
|
1831
|
-
error?: string;
|
|
1832
1894
|
/** @default error */
|
|
1833
1895
|
status: string;
|
|
1834
1896
|
message: string;
|
|
@@ -1842,22 +1904,339 @@ interface operations {
|
|
|
1842
1904
|
};
|
|
1843
1905
|
content: {
|
|
1844
1906
|
"application/json": {
|
|
1845
|
-
error
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1907
|
+
/** @default error */
|
|
1908
|
+
status: string;
|
|
1909
|
+
message: string;
|
|
1910
|
+
};
|
|
1911
|
+
};
|
|
1912
|
+
};
|
|
1913
|
+
/** @description Unprocessable Entity */
|
|
1914
|
+
422: {
|
|
1915
|
+
headers: {
|
|
1916
|
+
[name: string]: unknown;
|
|
1917
|
+
};
|
|
1918
|
+
content: {
|
|
1919
|
+
"application/json": {
|
|
1920
|
+
/** @default error */
|
|
1921
|
+
status: string;
|
|
1922
|
+
message: string;
|
|
1923
|
+
};
|
|
1924
|
+
};
|
|
1925
|
+
};
|
|
1926
|
+
/** @description Internal Server Error */
|
|
1927
|
+
500: {
|
|
1928
|
+
headers: {
|
|
1929
|
+
[name: string]: unknown;
|
|
1930
|
+
};
|
|
1931
|
+
content: {
|
|
1932
|
+
"application/json": {
|
|
1933
|
+
/** @default error */
|
|
1934
|
+
status: string;
|
|
1935
|
+
message: string;
|
|
1936
|
+
};
|
|
1937
|
+
};
|
|
1938
|
+
};
|
|
1939
|
+
};
|
|
1940
|
+
};
|
|
1941
|
+
getApiPrompts: {
|
|
1942
|
+
parameters: {
|
|
1943
|
+
query?: never;
|
|
1944
|
+
header?: never;
|
|
1945
|
+
path?: never;
|
|
1946
|
+
cookie?: never;
|
|
1947
|
+
};
|
|
1948
|
+
requestBody?: never;
|
|
1949
|
+
responses: {
|
|
1950
|
+
/** @description Success */
|
|
1951
|
+
200: {
|
|
1952
|
+
headers: {
|
|
1953
|
+
[name: string]: unknown;
|
|
1954
|
+
};
|
|
1955
|
+
content: {
|
|
1956
|
+
"application/json": {
|
|
1957
|
+
id: string;
|
|
1958
|
+
handle: string | null;
|
|
1959
|
+
/** @enum {string} */
|
|
1960
|
+
scope: "ORGANIZATION" | "PROJECT";
|
|
1961
|
+
name: string;
|
|
1962
|
+
updatedAt: string;
|
|
1963
|
+
projectId: string;
|
|
1964
|
+
organizationId: string;
|
|
1965
|
+
versionId: string;
|
|
1966
|
+
authorId?: string | null;
|
|
1967
|
+
version: number;
|
|
1968
|
+
createdAt: string;
|
|
1969
|
+
commitMessage?: string | null;
|
|
1970
|
+
prompt: string;
|
|
1971
|
+
/** @default [] */
|
|
1972
|
+
messages: {
|
|
1973
|
+
/** @enum {string} */
|
|
1974
|
+
role: "user" | "assistant" | "system";
|
|
1975
|
+
content: string;
|
|
1976
|
+
}[];
|
|
1977
|
+
inputs: {
|
|
1978
|
+
identifier: string;
|
|
1979
|
+
/** @enum {string} */
|
|
1980
|
+
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
1981
|
+
}[];
|
|
1982
|
+
outputs: {
|
|
1983
|
+
identifier: string;
|
|
1984
|
+
/** @enum {string} */
|
|
1985
|
+
type: "str" | "float" | "bool" | "json_schema";
|
|
1986
|
+
json_schema?: {
|
|
1987
|
+
type: string;
|
|
1988
|
+
} & {
|
|
1989
|
+
[key: string]: unknown;
|
|
1990
|
+
};
|
|
1991
|
+
}[];
|
|
1992
|
+
model: string;
|
|
1993
|
+
temperature?: number;
|
|
1994
|
+
maxTokens?: number;
|
|
1995
|
+
demonstrations?: {
|
|
1996
|
+
id?: string;
|
|
1997
|
+
name?: string;
|
|
1998
|
+
inline?: {
|
|
1999
|
+
records: {
|
|
2000
|
+
[key: string]: string[];
|
|
2001
|
+
};
|
|
2002
|
+
columnTypes: {
|
|
2003
|
+
name: string;
|
|
2004
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
2005
|
+
}[];
|
|
2006
|
+
};
|
|
2007
|
+
};
|
|
2008
|
+
promptingTechnique?: {
|
|
2009
|
+
/** @enum {string} */
|
|
2010
|
+
type: "few_shot" | "in_context" | "chain_of_thought";
|
|
2011
|
+
demonstrations?: {
|
|
2012
|
+
id?: string;
|
|
2013
|
+
name?: string;
|
|
2014
|
+
inline?: {
|
|
2015
|
+
records: {
|
|
2016
|
+
[key: string]: string[];
|
|
2017
|
+
};
|
|
2018
|
+
columnTypes: {
|
|
2019
|
+
name: string;
|
|
2020
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
2021
|
+
}[];
|
|
2022
|
+
};
|
|
2023
|
+
};
|
|
2024
|
+
};
|
|
2025
|
+
responseFormat?: {
|
|
2026
|
+
/** @enum {string} */
|
|
2027
|
+
type: "json_schema";
|
|
2028
|
+
json_schema: {
|
|
2029
|
+
name: string;
|
|
2030
|
+
schema: Record<string, never>;
|
|
2031
|
+
} | null;
|
|
2032
|
+
};
|
|
2033
|
+
}[];
|
|
2034
|
+
};
|
|
2035
|
+
};
|
|
2036
|
+
/** @description Bad Request */
|
|
2037
|
+
400: {
|
|
2038
|
+
headers: {
|
|
2039
|
+
[name: string]: unknown;
|
|
2040
|
+
};
|
|
2041
|
+
content: {
|
|
2042
|
+
"application/json": {
|
|
2043
|
+
error: string;
|
|
2044
|
+
message?: string;
|
|
2045
|
+
};
|
|
2046
|
+
};
|
|
2047
|
+
};
|
|
2048
|
+
/** @description Unauthorized */
|
|
2049
|
+
401: {
|
|
2050
|
+
headers: {
|
|
2051
|
+
[name: string]: unknown;
|
|
2052
|
+
};
|
|
2053
|
+
content: {
|
|
2054
|
+
"application/json": {
|
|
2055
|
+
error: string;
|
|
2056
|
+
message?: string;
|
|
2057
|
+
};
|
|
2058
|
+
};
|
|
2059
|
+
};
|
|
2060
|
+
/** @description Internal Server Error */
|
|
2061
|
+
500: {
|
|
2062
|
+
headers: {
|
|
2063
|
+
[name: string]: unknown;
|
|
2064
|
+
};
|
|
2065
|
+
content: {
|
|
2066
|
+
"application/json": {
|
|
2067
|
+
error: string;
|
|
2068
|
+
message?: string;
|
|
2069
|
+
};
|
|
2070
|
+
};
|
|
2071
|
+
};
|
|
2072
|
+
};
|
|
2073
|
+
};
|
|
2074
|
+
postApiPrompts: {
|
|
2075
|
+
parameters: {
|
|
2076
|
+
query?: never;
|
|
2077
|
+
header?: never;
|
|
2078
|
+
path?: never;
|
|
2079
|
+
cookie?: never;
|
|
2080
|
+
};
|
|
2081
|
+
requestBody?: {
|
|
2082
|
+
content: {
|
|
2083
|
+
"application/json": {
|
|
2084
|
+
handle: string;
|
|
2085
|
+
/**
|
|
2086
|
+
* @default PROJECT
|
|
2087
|
+
* @enum {string}
|
|
2088
|
+
*/
|
|
2089
|
+
scope?: "ORGANIZATION" | "PROJECT";
|
|
2090
|
+
model?: string;
|
|
2091
|
+
temperature?: number;
|
|
2092
|
+
maxTokens?: number;
|
|
2093
|
+
commitMessage?: string;
|
|
2094
|
+
authorId?: string;
|
|
2095
|
+
prompt?: string;
|
|
2096
|
+
messages?: {
|
|
2097
|
+
/** @enum {string} */
|
|
2098
|
+
role: "user" | "assistant" | "system";
|
|
2099
|
+
content: string;
|
|
2100
|
+
}[];
|
|
2101
|
+
inputs?: {
|
|
2102
|
+
identifier: string;
|
|
2103
|
+
/** @enum {string} */
|
|
2104
|
+
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
2105
|
+
}[];
|
|
2106
|
+
outputs?: {
|
|
2107
|
+
identifier: string;
|
|
2108
|
+
/** @enum {string} */
|
|
2109
|
+
type: "str" | "float" | "bool" | "json_schema";
|
|
2110
|
+
json_schema?: {
|
|
2111
|
+
type: string;
|
|
2112
|
+
} & {
|
|
2113
|
+
[key: string]: unknown;
|
|
2114
|
+
};
|
|
2115
|
+
}[];
|
|
2116
|
+
/** @enum {string} */
|
|
2117
|
+
schemaVersion?: "1.0";
|
|
2118
|
+
};
|
|
2119
|
+
};
|
|
2120
|
+
};
|
|
2121
|
+
responses: {
|
|
2122
|
+
/** @description Success */
|
|
2123
|
+
200: {
|
|
2124
|
+
headers: {
|
|
2125
|
+
[name: string]: unknown;
|
|
2126
|
+
};
|
|
2127
|
+
content: {
|
|
2128
|
+
"application/json": {
|
|
2129
|
+
id: string;
|
|
2130
|
+
handle: string | null;
|
|
2131
|
+
/** @enum {string} */
|
|
2132
|
+
scope: "ORGANIZATION" | "PROJECT";
|
|
2133
|
+
name: string;
|
|
2134
|
+
updatedAt: string;
|
|
2135
|
+
projectId: string;
|
|
2136
|
+
organizationId: string;
|
|
2137
|
+
versionId: string;
|
|
2138
|
+
authorId?: string | null;
|
|
2139
|
+
version: number;
|
|
2140
|
+
createdAt: string;
|
|
2141
|
+
commitMessage?: string | null;
|
|
2142
|
+
prompt: string;
|
|
2143
|
+
/** @default [] */
|
|
2144
|
+
messages: {
|
|
2145
|
+
/** @enum {string} */
|
|
2146
|
+
role: "user" | "assistant" | "system";
|
|
2147
|
+
content: string;
|
|
2148
|
+
}[];
|
|
2149
|
+
inputs: {
|
|
2150
|
+
identifier: string;
|
|
2151
|
+
/** @enum {string} */
|
|
2152
|
+
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
2153
|
+
}[];
|
|
2154
|
+
outputs: {
|
|
2155
|
+
identifier: string;
|
|
2156
|
+
/** @enum {string} */
|
|
2157
|
+
type: "str" | "float" | "bool" | "json_schema";
|
|
2158
|
+
json_schema?: {
|
|
2159
|
+
type: string;
|
|
2160
|
+
} & {
|
|
2161
|
+
[key: string]: unknown;
|
|
2162
|
+
};
|
|
2163
|
+
}[];
|
|
2164
|
+
model: string;
|
|
2165
|
+
temperature?: number;
|
|
2166
|
+
maxTokens?: number;
|
|
2167
|
+
demonstrations?: {
|
|
2168
|
+
id?: string;
|
|
2169
|
+
name?: string;
|
|
2170
|
+
inline?: {
|
|
2171
|
+
records: {
|
|
2172
|
+
[key: string]: string[];
|
|
2173
|
+
};
|
|
2174
|
+
columnTypes: {
|
|
2175
|
+
name: string;
|
|
2176
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
2177
|
+
}[];
|
|
2178
|
+
};
|
|
2179
|
+
};
|
|
2180
|
+
promptingTechnique?: {
|
|
2181
|
+
/** @enum {string} */
|
|
2182
|
+
type: "few_shot" | "in_context" | "chain_of_thought";
|
|
2183
|
+
demonstrations?: {
|
|
2184
|
+
id?: string;
|
|
2185
|
+
name?: string;
|
|
2186
|
+
inline?: {
|
|
2187
|
+
records: {
|
|
2188
|
+
[key: string]: string[];
|
|
2189
|
+
};
|
|
2190
|
+
columnTypes: {
|
|
2191
|
+
name: string;
|
|
2192
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
2193
|
+
}[];
|
|
2194
|
+
};
|
|
2195
|
+
};
|
|
2196
|
+
};
|
|
2197
|
+
responseFormat?: {
|
|
2198
|
+
/** @enum {string} */
|
|
2199
|
+
type: "json_schema";
|
|
2200
|
+
json_schema: {
|
|
2201
|
+
name: string;
|
|
2202
|
+
schema: Record<string, never>;
|
|
2203
|
+
} | null;
|
|
2204
|
+
};
|
|
2205
|
+
};
|
|
2206
|
+
};
|
|
2207
|
+
};
|
|
2208
|
+
/** @description Bad Request */
|
|
2209
|
+
400: {
|
|
2210
|
+
headers: {
|
|
2211
|
+
[name: string]: unknown;
|
|
2212
|
+
};
|
|
2213
|
+
content: {
|
|
2214
|
+
"application/json": {
|
|
2215
|
+
error: string;
|
|
2216
|
+
message?: string;
|
|
2217
|
+
};
|
|
2218
|
+
};
|
|
2219
|
+
};
|
|
2220
|
+
/** @description Unauthorized */
|
|
2221
|
+
401: {
|
|
2222
|
+
headers: {
|
|
2223
|
+
[name: string]: unknown;
|
|
2224
|
+
};
|
|
2225
|
+
content: {
|
|
2226
|
+
"application/json": {
|
|
2227
|
+
error: string;
|
|
2228
|
+
message?: string;
|
|
1849
2229
|
};
|
|
1850
2230
|
};
|
|
1851
2231
|
};
|
|
1852
|
-
/** @description
|
|
1853
|
-
|
|
2232
|
+
/** @description Conflict */
|
|
2233
|
+
409: {
|
|
1854
2234
|
headers: {
|
|
1855
2235
|
[name: string]: unknown;
|
|
1856
2236
|
};
|
|
1857
2237
|
content: {
|
|
1858
2238
|
"application/json": {
|
|
1859
|
-
|
|
1860
|
-
status: string;
|
|
2239
|
+
error: string;
|
|
1861
2240
|
message: string;
|
|
1862
2241
|
};
|
|
1863
2242
|
};
|
|
@@ -1869,10 +2248,8 @@ interface operations {
|
|
|
1869
2248
|
};
|
|
1870
2249
|
content: {
|
|
1871
2250
|
"application/json": {
|
|
1872
|
-
error
|
|
1873
|
-
|
|
1874
|
-
status: string;
|
|
1875
|
-
message: string;
|
|
2251
|
+
error: string;
|
|
2252
|
+
message?: string;
|
|
1876
2253
|
};
|
|
1877
2254
|
};
|
|
1878
2255
|
};
|
|
@@ -2006,6 +2383,7 @@ interface operations {
|
|
|
2006
2383
|
content: {
|
|
2007
2384
|
"application/json": {
|
|
2008
2385
|
error: string;
|
|
2386
|
+
message?: string;
|
|
2009
2387
|
};
|
|
2010
2388
|
};
|
|
2011
2389
|
};
|
|
@@ -2017,6 +2395,7 @@ interface operations {
|
|
|
2017
2395
|
content: {
|
|
2018
2396
|
"application/json": {
|
|
2019
2397
|
error: string;
|
|
2398
|
+
message?: string;
|
|
2020
2399
|
};
|
|
2021
2400
|
};
|
|
2022
2401
|
};
|
|
@@ -2051,6 +2430,7 @@ interface operations {
|
|
|
2051
2430
|
content: {
|
|
2052
2431
|
"application/json": {
|
|
2053
2432
|
error: string;
|
|
2433
|
+
message?: string;
|
|
2054
2434
|
};
|
|
2055
2435
|
};
|
|
2056
2436
|
};
|
|
@@ -2062,6 +2442,7 @@ interface operations {
|
|
|
2062
2442
|
content: {
|
|
2063
2443
|
"application/json": {
|
|
2064
2444
|
error: string;
|
|
2445
|
+
message?: string;
|
|
2065
2446
|
};
|
|
2066
2447
|
};
|
|
2067
2448
|
};
|
|
@@ -2073,163 +2454,167 @@ interface operations {
|
|
|
2073
2454
|
content: {
|
|
2074
2455
|
"application/json": {
|
|
2075
2456
|
error: string;
|
|
2457
|
+
message?: string;
|
|
2076
2458
|
};
|
|
2077
2459
|
};
|
|
2078
2460
|
};
|
|
2079
2461
|
};
|
|
2080
2462
|
};
|
|
2081
|
-
|
|
2463
|
+
getIndex: {
|
|
2082
2464
|
parameters: {
|
|
2083
2465
|
query?: never;
|
|
2084
2466
|
header?: never;
|
|
2085
|
-
path
|
|
2086
|
-
id: string;
|
|
2087
|
-
};
|
|
2467
|
+
path?: never;
|
|
2088
2468
|
cookie?: never;
|
|
2089
2469
|
};
|
|
2090
|
-
requestBody?:
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2470
|
+
requestBody?: never;
|
|
2471
|
+
responses: {
|
|
2472
|
+
/** @description Success */
|
|
2473
|
+
200: {
|
|
2474
|
+
headers: {
|
|
2475
|
+
[name: string]: unknown;
|
|
2476
|
+
};
|
|
2477
|
+
content: {
|
|
2478
|
+
"application/json": {
|
|
2479
|
+
id: string;
|
|
2480
|
+
handle: string | null;
|
|
2481
|
+
/** @enum {string} */
|
|
2482
|
+
scope: "ORGANIZATION" | "PROJECT";
|
|
2483
|
+
name: string;
|
|
2484
|
+
updatedAt: string;
|
|
2485
|
+
projectId: string;
|
|
2486
|
+
organizationId: string;
|
|
2487
|
+
version: number;
|
|
2488
|
+
versionId: string;
|
|
2489
|
+
versionCreatedAt: string;
|
|
2490
|
+
model: string;
|
|
2095
2491
|
prompt: string;
|
|
2096
|
-
|
|
2097
|
-
messages?: ({
|
|
2492
|
+
messages: {
|
|
2098
2493
|
/** @enum {string} */
|
|
2099
2494
|
role: "user" | "assistant" | "system";
|
|
2100
2495
|
content: string;
|
|
2101
|
-
} & {
|
|
2102
|
-
[key: string]: unknown;
|
|
2103
|
-
})[];
|
|
2104
|
-
inputs: {
|
|
2105
|
-
identifier: string;
|
|
2106
|
-
/** @enum {string} */
|
|
2107
|
-
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
2108
2496
|
}[];
|
|
2109
|
-
|
|
2110
|
-
identifier: string;
|
|
2497
|
+
response_format: {
|
|
2111
2498
|
/** @enum {string} */
|
|
2112
|
-
type: "
|
|
2113
|
-
json_schema
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
[key: string]: unknown;
|
|
2117
|
-
};
|
|
2118
|
-
}[];
|
|
2119
|
-
model: string;
|
|
2120
|
-
temperature?: number;
|
|
2121
|
-
max_tokens?: number;
|
|
2122
|
-
demonstrations?: {
|
|
2123
|
-
id?: string;
|
|
2124
|
-
name?: string;
|
|
2125
|
-
inline?: {
|
|
2126
|
-
records: {
|
|
2127
|
-
[key: string]: string[];
|
|
2128
|
-
};
|
|
2129
|
-
columnTypes: {
|
|
2130
|
-
name: string;
|
|
2131
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
2132
|
-
}[];
|
|
2499
|
+
type: "json_schema";
|
|
2500
|
+
json_schema: {
|
|
2501
|
+
name: string;
|
|
2502
|
+
schema: Record<string, never>;
|
|
2133
2503
|
};
|
|
2134
|
-
};
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2504
|
+
} | null;
|
|
2505
|
+
}[];
|
|
2506
|
+
};
|
|
2507
|
+
};
|
|
2508
|
+
/** @description Bad Request */
|
|
2509
|
+
400: {
|
|
2510
|
+
headers: {
|
|
2511
|
+
[name: string]: unknown;
|
|
2512
|
+
};
|
|
2513
|
+
content: {
|
|
2514
|
+
"application/json": {
|
|
2515
|
+
error: string;
|
|
2138
2516
|
};
|
|
2139
|
-
|
|
2140
|
-
|
|
2517
|
+
};
|
|
2518
|
+
};
|
|
2519
|
+
/** @description Unauthorized */
|
|
2520
|
+
401: {
|
|
2521
|
+
headers: {
|
|
2522
|
+
[name: string]: unknown;
|
|
2523
|
+
};
|
|
2524
|
+
content: {
|
|
2525
|
+
"application/json": {
|
|
2526
|
+
error: string;
|
|
2527
|
+
};
|
|
2528
|
+
};
|
|
2529
|
+
};
|
|
2530
|
+
/** @description Internal Server Error */
|
|
2531
|
+
500: {
|
|
2532
|
+
headers: {
|
|
2533
|
+
[name: string]: unknown;
|
|
2534
|
+
};
|
|
2535
|
+
content: {
|
|
2536
|
+
"application/json": {
|
|
2537
|
+
error: string;
|
|
2538
|
+
};
|
|
2539
|
+
};
|
|
2540
|
+
};
|
|
2541
|
+
};
|
|
2542
|
+
};
|
|
2543
|
+
postIndex: {
|
|
2544
|
+
parameters: {
|
|
2545
|
+
query?: never;
|
|
2546
|
+
header?: never;
|
|
2547
|
+
path?: never;
|
|
2548
|
+
cookie?: never;
|
|
2549
|
+
};
|
|
2550
|
+
requestBody?: {
|
|
2551
|
+
content: {
|
|
2552
|
+
"application/json": {
|
|
2553
|
+
handle: string;
|
|
2554
|
+
/**
|
|
2555
|
+
* @default PROJECT
|
|
2556
|
+
* @enum {string}
|
|
2557
|
+
*/
|
|
2558
|
+
scope?: "ORGANIZATION" | "PROJECT";
|
|
2559
|
+
authorId?: string;
|
|
2560
|
+
prompt?: string;
|
|
2561
|
+
messages?: {
|
|
2562
|
+
/** @enum {string} */
|
|
2563
|
+
role: "user" | "assistant" | "system";
|
|
2564
|
+
content: string;
|
|
2565
|
+
}[];
|
|
2566
|
+
inputs?: {
|
|
2567
|
+
identifier: string;
|
|
2568
|
+
/** @enum {string} */
|
|
2569
|
+
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
2570
|
+
}[];
|
|
2571
|
+
outputs?: {
|
|
2572
|
+
identifier: string;
|
|
2573
|
+
/** @enum {string} */
|
|
2574
|
+
type: "str" | "float" | "bool" | "json_schema";
|
|
2575
|
+
json_schema?: {
|
|
2576
|
+
type: string;
|
|
2577
|
+
} & {
|
|
2578
|
+
[key: string]: unknown;
|
|
2579
|
+
};
|
|
2580
|
+
}[];
|
|
2141
2581
|
};
|
|
2142
2582
|
};
|
|
2143
2583
|
};
|
|
2144
2584
|
responses: {
|
|
2145
|
-
/** @description
|
|
2585
|
+
/** @description Success */
|
|
2146
2586
|
200: {
|
|
2147
2587
|
headers: {
|
|
2148
2588
|
[name: string]: unknown;
|
|
2149
2589
|
};
|
|
2150
2590
|
content: {
|
|
2151
2591
|
"application/json": {
|
|
2592
|
+
id: string;
|
|
2593
|
+
handle: string | null;
|
|
2152
2594
|
/** @enum {string} */
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2595
|
+
scope: "ORGANIZATION" | "PROJECT";
|
|
2596
|
+
name: string;
|
|
2597
|
+
updatedAt: string;
|
|
2598
|
+
projectId: string;
|
|
2599
|
+
organizationId: string;
|
|
2600
|
+
version: number;
|
|
2601
|
+
versionId: string;
|
|
2602
|
+
versionCreatedAt: string;
|
|
2603
|
+
model: string;
|
|
2604
|
+
prompt: string;
|
|
2605
|
+
messages: {
|
|
2157
2606
|
/** @enum {string} */
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
/** @enum {string} */
|
|
2168
|
-
role: "user" | "assistant" | "system";
|
|
2169
|
-
content: string;
|
|
2170
|
-
} & {
|
|
2171
|
-
[key: string]: unknown;
|
|
2172
|
-
})[];
|
|
2173
|
-
response_format: {
|
|
2174
|
-
/** @enum {string} */
|
|
2175
|
-
type: "json_schema";
|
|
2176
|
-
json_schema: {
|
|
2177
|
-
name: string;
|
|
2178
|
-
schema: Record<string, never>;
|
|
2179
|
-
};
|
|
2180
|
-
} | null;
|
|
2181
|
-
};
|
|
2182
|
-
conflictInfo?: {
|
|
2183
|
-
localVersion: number;
|
|
2184
|
-
remoteVersion: number;
|
|
2185
|
-
differences: string[];
|
|
2186
|
-
remoteConfigData: {
|
|
2187
|
-
version?: number;
|
|
2188
|
-
prompt: string;
|
|
2189
|
-
/** @default [] */
|
|
2190
|
-
messages: ({
|
|
2191
|
-
/** @enum {string} */
|
|
2192
|
-
role: "user" | "assistant" | "system";
|
|
2193
|
-
content: string;
|
|
2194
|
-
} & {
|
|
2195
|
-
[key: string]: unknown;
|
|
2196
|
-
})[];
|
|
2197
|
-
inputs: {
|
|
2198
|
-
identifier: string;
|
|
2199
|
-
/** @enum {string} */
|
|
2200
|
-
type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
|
|
2201
|
-
}[];
|
|
2202
|
-
outputs: {
|
|
2203
|
-
identifier: string;
|
|
2204
|
-
/** @enum {string} */
|
|
2205
|
-
type: "str" | "float" | "bool" | "json_schema";
|
|
2206
|
-
json_schema?: {
|
|
2207
|
-
type: string;
|
|
2208
|
-
} & {
|
|
2209
|
-
[key: string]: unknown;
|
|
2210
|
-
};
|
|
2211
|
-
}[];
|
|
2212
|
-
model: string;
|
|
2213
|
-
temperature?: number;
|
|
2214
|
-
max_tokens?: number;
|
|
2215
|
-
demonstrations?: {
|
|
2216
|
-
id?: string;
|
|
2217
|
-
name?: string;
|
|
2218
|
-
inline?: {
|
|
2219
|
-
records: {
|
|
2220
|
-
[key: string]: string[];
|
|
2221
|
-
};
|
|
2222
|
-
columnTypes: {
|
|
2223
|
-
name: string;
|
|
2224
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
2225
|
-
}[];
|
|
2226
|
-
};
|
|
2227
|
-
};
|
|
2228
|
-
prompting_technique?: {
|
|
2229
|
-
ref?: string;
|
|
2230
|
-
};
|
|
2607
|
+
role: "user" | "assistant" | "system";
|
|
2608
|
+
content: string;
|
|
2609
|
+
}[];
|
|
2610
|
+
response_format: {
|
|
2611
|
+
/** @enum {string} */
|
|
2612
|
+
type: "json_schema";
|
|
2613
|
+
json_schema: {
|
|
2614
|
+
name: string;
|
|
2615
|
+
schema: Record<string, never>;
|
|
2231
2616
|
};
|
|
2232
|
-
};
|
|
2617
|
+
} | null;
|
|
2233
2618
|
};
|
|
2234
2619
|
};
|
|
2235
2620
|
};
|
|
@@ -2275,17 +2660,22 @@ type TemplateVariables = Record<string, string | number | boolean | object | nul
|
|
|
2275
2660
|
declare class Prompt implements PromptResponse {
|
|
2276
2661
|
private readonly promptData;
|
|
2277
2662
|
readonly id: string;
|
|
2663
|
+
readonly projectId: string;
|
|
2664
|
+
readonly organizationId: string;
|
|
2278
2665
|
readonly handle: string | null;
|
|
2279
2666
|
readonly scope: "ORGANIZATION" | "PROJECT";
|
|
2280
2667
|
readonly name: string;
|
|
2281
2668
|
readonly updatedAt: string;
|
|
2282
2669
|
readonly version: number;
|
|
2283
2670
|
readonly versionId: string;
|
|
2284
|
-
readonly versionCreatedAt: string;
|
|
2285
2671
|
readonly model: string;
|
|
2286
2672
|
readonly prompt: string;
|
|
2287
2673
|
readonly messages: PromptResponse["messages"];
|
|
2288
|
-
readonly
|
|
2674
|
+
readonly responseFormat: PromptResponse["responseFormat"];
|
|
2675
|
+
readonly authorId: string | null;
|
|
2676
|
+
readonly createdAt: string;
|
|
2677
|
+
readonly inputs: PromptResponse["inputs"];
|
|
2678
|
+
readonly outputs: PromptResponse["outputs"];
|
|
2289
2679
|
constructor(promptData: PromptResponse);
|
|
2290
2680
|
/**
|
|
2291
2681
|
* Get the raw prompt data from the API
|