langwatch 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/add-LBBS4I3H.js +114 -0
  2. package/dist/add-LBBS4I3H.js.map +1 -0
  3. package/dist/add-RD3ZKFAT.mjs +114 -0
  4. package/dist/add-RD3ZKFAT.mjs.map +1 -0
  5. package/dist/chunk-2JU376G7.js +242 -0
  6. package/dist/chunk-2JU376G7.js.map +1 -0
  7. package/dist/chunk-2ODBGSBI.js +4 -0
  8. package/dist/{chunk-G3AUABT7.js.map → chunk-2ODBGSBI.js.map} +1 -1
  9. package/dist/chunk-3GKPQB4R.mjs +242 -0
  10. package/dist/chunk-3GKPQB4R.mjs.map +1 -0
  11. package/dist/chunk-4NRLVT2U.mjs +35 -0
  12. package/dist/chunk-4NRLVT2U.mjs.map +1 -0
  13. package/dist/{chunk-SVJ7SCGB.js → chunk-52GXX3MA.js} +33 -31
  14. package/dist/chunk-52GXX3MA.js.map +1 -0
  15. package/dist/chunk-5NC5ILKA.js +94 -0
  16. package/dist/chunk-5NC5ILKA.js.map +1 -0
  17. package/dist/{chunk-76KNOWLS.js → chunk-6I4EA43Y.js} +2 -2
  18. package/dist/chunk-6I4EA43Y.js.map +1 -0
  19. package/dist/chunk-DHJKJVY7.mjs +20 -0
  20. package/dist/chunk-DHJKJVY7.mjs.map +1 -0
  21. package/dist/{chunk-VJSOCNPA.js → chunk-DTEKFQ4U.js} +6 -28
  22. package/dist/chunk-DTEKFQ4U.js.map +1 -0
  23. package/dist/chunk-E7UE2MPD.mjs +93 -0
  24. package/dist/chunk-E7UE2MPD.mjs.map +1 -0
  25. package/dist/chunk-F6E4XQQU.js +20 -0
  26. package/dist/chunk-F6E4XQQU.js.map +1 -0
  27. package/dist/chunk-FJLK5CFL.js +37 -0
  28. package/dist/chunk-FJLK5CFL.js.map +1 -0
  29. package/dist/{chunk-Z5J5UI5E.mjs → chunk-GJSEBQXF.mjs} +139 -107
  30. package/dist/chunk-GJSEBQXF.mjs.map +1 -0
  31. package/dist/chunk-HA3LI5IK.js +35 -0
  32. package/dist/chunk-HA3LI5IK.js.map +1 -0
  33. package/dist/chunk-HJU67C7H.js +93 -0
  34. package/dist/chunk-HJU67C7H.js.map +1 -0
  35. package/dist/{chunk-PMBEK6YE.mjs → chunk-J7ICRUU4.mjs} +5 -3
  36. package/dist/{chunk-PMBEK6YE.mjs.map → chunk-J7ICRUU4.mjs.map} +1 -1
  37. package/dist/{chunk-HPC6Z7J4.js → chunk-PWZBLTHR.js} +3 -3
  38. package/dist/{chunk-HPC6Z7J4.js.map → chunk-PWZBLTHR.js.map} +1 -1
  39. package/dist/chunk-SMXXAVMB.js +100 -0
  40. package/dist/chunk-SMXXAVMB.js.map +1 -0
  41. package/dist/{chunk-CSC3CMIT.mjs → chunk-STV4ZVNA.mjs} +2 -2
  42. package/dist/chunk-T5AZMMVS.mjs +94 -0
  43. package/dist/chunk-T5AZMMVS.mjs.map +1 -0
  44. package/dist/{chunk-4BZATFKJ.mjs → chunk-UU33HCCZ.mjs} +4 -26
  45. package/dist/{chunk-4BZATFKJ.mjs.map → chunk-UU33HCCZ.mjs.map} +1 -1
  46. package/dist/{chunk-PTJ6AAI7.js → chunk-VGHLQXKB.js} +138 -106
  47. package/dist/chunk-VGHLQXKB.js.map +1 -0
  48. package/dist/chunk-W5ZEP3CI.mjs +100 -0
  49. package/dist/chunk-W5ZEP3CI.mjs.map +1 -0
  50. package/dist/chunk-Y666BJA5.mjs +4 -0
  51. package/dist/{chunk-X62YT4WB.mjs → chunk-YFUZF7JM.mjs} +2 -2
  52. package/dist/chunk-YFUZF7JM.mjs.map +1 -0
  53. package/dist/chunk-YN4436PK.mjs +37 -0
  54. package/dist/chunk-YN4436PK.mjs.map +1 -0
  55. package/dist/cli/index.d.mts +1 -0
  56. package/dist/cli/index.d.ts +1 -0
  57. package/dist/cli/index.js +106 -0
  58. package/dist/cli/index.js.map +1 -0
  59. package/dist/cli/index.mjs +106 -0
  60. package/dist/cli/index.mjs.map +1 -0
  61. package/dist/client-browser.js +12 -10
  62. package/dist/client-browser.js.map +1 -1
  63. package/dist/client-browser.mjs +5 -3
  64. package/dist/client-browser.mjs.map +1 -1
  65. package/dist/client-node.js +11 -9
  66. package/dist/client-node.js.map +1 -1
  67. package/dist/client-node.mjs +7 -5
  68. package/dist/client-node.mjs.map +1 -1
  69. package/dist/create-G5MTGOOH.js +70 -0
  70. package/dist/create-G5MTGOOH.js.map +1 -0
  71. package/dist/create-QUZYBMQB.mjs +70 -0
  72. package/dist/create-QUZYBMQB.mjs.map +1 -0
  73. package/dist/evaluation/index.js +5 -4
  74. package/dist/evaluation/index.js.map +1 -1
  75. package/dist/evaluation/index.mjs +4 -3
  76. package/dist/index.d.mts +2 -2
  77. package/dist/index.d.ts +2 -2
  78. package/dist/index.js +10 -7
  79. package/dist/index.js.map +1 -1
  80. package/dist/index.mjs +9 -6
  81. package/dist/init-H67RW22E.mjs +16 -0
  82. package/dist/init-H67RW22E.mjs.map +1 -0
  83. package/dist/init-XU2JFY6N.js +16 -0
  84. package/dist/init-XU2JFY6N.js.map +1 -0
  85. package/dist/list-7NPSX2E4.mjs +136 -0
  86. package/dist/list-7NPSX2E4.mjs.map +1 -0
  87. package/dist/list-ZXFLAF52.js +136 -0
  88. package/dist/list-ZXFLAF52.js.map +1 -0
  89. package/dist/login-76NQIHKR.js +110 -0
  90. package/dist/login-76NQIHKR.js.map +1 -0
  91. package/dist/login-EK4WVOI2.mjs +110 -0
  92. package/dist/login-EK4WVOI2.mjs.map +1 -0
  93. package/dist/observability/index.d.mts +3 -3
  94. package/dist/observability/index.d.ts +3 -3
  95. package/dist/observability/index.js +5 -4
  96. package/dist/observability/index.js.map +1 -1
  97. package/dist/observability/index.mjs +4 -3
  98. package/dist/observability/instrumentation/langchain/index.d.mts +2 -2
  99. package/dist/observability/instrumentation/langchain/index.d.ts +2 -2
  100. package/dist/observability/instrumentation/langchain/index.js +29 -27
  101. package/dist/observability/instrumentation/langchain/index.js.map +1 -1
  102. package/dist/observability/instrumentation/langchain/index.mjs +5 -3
  103. package/dist/observability/instrumentation/langchain/index.mjs.map +1 -1
  104. package/dist/prompt/index.d.mts +2 -2
  105. package/dist/prompt/index.d.ts +2 -2
  106. package/dist/prompt/index.js +8 -4
  107. package/dist/prompt/index.js.map +1 -1
  108. package/dist/prompt/index.mjs +10 -6
  109. package/dist/{prompt-BXJWdbQp.d.mts → prompt-D-jpMrLS.d.mts} +245 -0
  110. package/dist/{prompt-BXJWdbQp.d.ts → prompt-D-jpMrLS.d.ts} +245 -0
  111. package/dist/remove-SDJYEPAY.mjs +106 -0
  112. package/dist/remove-SDJYEPAY.mjs.map +1 -0
  113. package/dist/remove-XBNGIVMR.js +106 -0
  114. package/dist/remove-XBNGIVMR.js.map +1 -0
  115. package/dist/sync-EISKGPTL.js +403 -0
  116. package/dist/sync-EISKGPTL.js.map +1 -0
  117. package/dist/sync-ST2IWXSB.mjs +403 -0
  118. package/dist/sync-ST2IWXSB.mjs.map +1 -0
  119. package/dist/{trace-G2312klE.d.ts → trace-CqaKo0kZ.d.ts} +1 -1
  120. package/dist/{trace-D-bZOuqb.d.mts → trace-DtVc5GhF.d.mts} +1 -1
  121. package/package.json +13 -2
  122. package/dist/chunk-76KNOWLS.js.map +0 -1
  123. package/dist/chunk-G3AUABT7.js +0 -4
  124. package/dist/chunk-OM7VY3XT.mjs +0 -4
  125. package/dist/chunk-PTJ6AAI7.js.map +0 -1
  126. package/dist/chunk-SVJ7SCGB.js.map +0 -1
  127. package/dist/chunk-VJSOCNPA.js.map +0 -1
  128. package/dist/chunk-X62YT4WB.mjs.map +0 -1
  129. package/dist/chunk-Z5J5UI5E.mjs.map +0 -1
  130. /package/dist/{chunk-CSC3CMIT.mjs.map → chunk-STV4ZVNA.mjs.map} +0 -0
  131. /package/dist/{chunk-OM7VY3XT.mjs.map → chunk-Y666BJA5.mjs.map} +0 -0
@@ -724,6 +724,23 @@ interface paths {
724
724
  patch?: never;
725
725
  trace?: never;
726
726
  };
727
+ "/api/prompts/{id}/sync": {
728
+ parameters: {
729
+ query?: never;
730
+ header?: never;
731
+ path?: never;
732
+ cookie?: never;
733
+ };
734
+ get?: never;
735
+ put?: never;
736
+ /** @description Sync/upsert a prompt with local content */
737
+ post: operations["postApiPromptsByIdSync"];
738
+ delete?: never;
739
+ options?: never;
740
+ head?: never;
741
+ patch?: never;
742
+ trace?: never;
743
+ };
727
744
  }
728
745
  interface components {
729
746
  schemas: {
@@ -903,6 +920,9 @@ interface operations {
903
920
  schema: Record<string, never>;
904
921
  };
905
922
  } | null;
923
+ handle: string | null;
924
+ /** @enum {string} */
925
+ scope: "ORGANIZATION" | "PROJECT";
906
926
  }[];
907
927
  };
908
928
  };
@@ -954,6 +974,12 @@ interface operations {
954
974
  content: {
955
975
  "application/json": {
956
976
  name: string;
977
+ handle?: string;
978
+ /**
979
+ * @default PROJECT
980
+ * @enum {string}
981
+ */
982
+ scope?: "ORGANIZATION" | "PROJECT";
957
983
  };
958
984
  };
959
985
  };
@@ -988,6 +1014,9 @@ interface operations {
988
1014
  schema: Record<string, never>;
989
1015
  };
990
1016
  } | null;
1017
+ handle: string | null;
1018
+ /** @enum {string} */
1019
+ scope: "ORGANIZATION" | "PROJECT";
991
1020
  };
992
1021
  };
993
1022
  };
@@ -1069,6 +1098,9 @@ interface operations {
1069
1098
  schema: Record<string, never>;
1070
1099
  };
1071
1100
  } | null;
1101
+ handle: string | null;
1102
+ /** @enum {string} */
1103
+ scope: "ORGANIZATION" | "PROJECT";
1072
1104
  };
1073
1105
  };
1074
1106
  };
@@ -1133,6 +1165,9 @@ interface operations {
1133
1165
  content: {
1134
1166
  "application/json": {
1135
1167
  name: string;
1168
+ handle?: string;
1169
+ /** @enum {string} */
1170
+ scope?: "ORGANIZATION" | "PROJECT";
1136
1171
  };
1137
1172
  };
1138
1173
  };
@@ -1147,6 +1182,9 @@ interface operations {
1147
1182
  id: string;
1148
1183
  name: string;
1149
1184
  updatedAt: string;
1185
+ handle: string | null;
1186
+ /** @enum {string} */
1187
+ scope: "ORGANIZATION" | "PROJECT";
1150
1188
  };
1151
1189
  };
1152
1190
  };
@@ -1353,6 +1391,12 @@ interface operations {
1353
1391
  ref?: string;
1354
1392
  };
1355
1393
  };
1394
+ author?: {
1395
+ name: string;
1396
+ } | null;
1397
+ handle: string | null;
1398
+ /** @enum {string} */
1399
+ scope: "ORGANIZATION" | "PROJECT";
1356
1400
  };
1357
1401
  };
1358
1402
  };
@@ -1483,6 +1527,9 @@ interface operations {
1483
1527
  ref?: string;
1484
1528
  };
1485
1529
  };
1530
+ author?: {
1531
+ name: string;
1532
+ } | null;
1486
1533
  };
1487
1534
  };
1488
1535
  };
@@ -1561,6 +1608,12 @@ interface operations {
1561
1608
  ref?: string;
1562
1609
  };
1563
1610
  };
1611
+ author?: {
1612
+ name: string;
1613
+ } | null;
1614
+ handle: string | null;
1615
+ /** @enum {string} */
1616
+ scope: "ORGANIZATION" | "PROJECT";
1564
1617
  };
1565
1618
  };
1566
1619
  };
@@ -1914,6 +1967,196 @@ interface operations {
1914
1967
  };
1915
1968
  };
1916
1969
  };
1970
+ postApiPromptsByIdSync: {
1971
+ parameters: {
1972
+ query?: never;
1973
+ header?: never;
1974
+ path: {
1975
+ id: string;
1976
+ };
1977
+ cookie?: never;
1978
+ };
1979
+ requestBody?: {
1980
+ content: {
1981
+ "application/json": {
1982
+ configData: {
1983
+ version?: number;
1984
+ prompt: string;
1985
+ /** @default [] */
1986
+ messages?: ({
1987
+ /** @enum {string} */
1988
+ role: "user" | "assistant" | "system";
1989
+ content: string;
1990
+ } & {
1991
+ [key: string]: unknown;
1992
+ })[];
1993
+ inputs: {
1994
+ identifier: string;
1995
+ /** @enum {string} */
1996
+ type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
1997
+ }[];
1998
+ outputs: {
1999
+ identifier: string;
2000
+ /** @enum {string} */
2001
+ type: "str" | "float" | "bool" | "json_schema";
2002
+ json_schema?: {
2003
+ type: string;
2004
+ } & {
2005
+ [key: string]: unknown;
2006
+ };
2007
+ }[];
2008
+ model: string;
2009
+ temperature?: number;
2010
+ max_tokens?: number;
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
+ prompting_technique?: {
2025
+ ref?: string;
2026
+ };
2027
+ };
2028
+ localVersion?: number;
2029
+ commitMessage?: string;
2030
+ };
2031
+ };
2032
+ };
2033
+ responses: {
2034
+ /** @description Sync result */
2035
+ 200: {
2036
+ headers: {
2037
+ [name: string]: unknown;
2038
+ };
2039
+ content: {
2040
+ "application/json": {
2041
+ /** @enum {string} */
2042
+ action: "created" | "updated" | "conflict" | "up_to_date";
2043
+ prompt?: {
2044
+ id: string;
2045
+ handle: string | null;
2046
+ /** @enum {string} */
2047
+ scope: "ORGANIZATION" | "PROJECT";
2048
+ name: string;
2049
+ updatedAt: string;
2050
+ version: number;
2051
+ versionId: string;
2052
+ versionCreatedAt: string;
2053
+ model: string;
2054
+ prompt: string;
2055
+ messages: ({
2056
+ /** @enum {string} */
2057
+ role: "user" | "assistant" | "system";
2058
+ content: string;
2059
+ } & {
2060
+ [key: string]: unknown;
2061
+ })[];
2062
+ response_format: {
2063
+ /** @enum {string} */
2064
+ type: "json_schema";
2065
+ json_schema: {
2066
+ name: string;
2067
+ schema: Record<string, never>;
2068
+ };
2069
+ } | null;
2070
+ };
2071
+ conflictInfo?: {
2072
+ localVersion: number;
2073
+ remoteVersion: number;
2074
+ differences: string[];
2075
+ remoteConfigData: {
2076
+ version?: number;
2077
+ prompt: string;
2078
+ /** @default [] */
2079
+ messages: ({
2080
+ /** @enum {string} */
2081
+ role: "user" | "assistant" | "system";
2082
+ content: string;
2083
+ } & {
2084
+ [key: string]: unknown;
2085
+ })[];
2086
+ inputs: {
2087
+ identifier: string;
2088
+ /** @enum {string} */
2089
+ type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
2090
+ }[];
2091
+ outputs: {
2092
+ identifier: string;
2093
+ /** @enum {string} */
2094
+ type: "str" | "float" | "bool" | "json_schema";
2095
+ json_schema?: {
2096
+ type: string;
2097
+ } & {
2098
+ [key: string]: unknown;
2099
+ };
2100
+ }[];
2101
+ model: string;
2102
+ temperature?: number;
2103
+ max_tokens?: number;
2104
+ demonstrations?: {
2105
+ id?: string;
2106
+ name?: string;
2107
+ inline?: {
2108
+ records: {
2109
+ [key: string]: string[];
2110
+ };
2111
+ columnTypes: {
2112
+ name: string;
2113
+ type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
2114
+ }[];
2115
+ };
2116
+ };
2117
+ prompting_technique?: {
2118
+ ref?: string;
2119
+ };
2120
+ };
2121
+ };
2122
+ };
2123
+ };
2124
+ };
2125
+ /** @description Bad Request */
2126
+ 400: {
2127
+ headers: {
2128
+ [name: string]: unknown;
2129
+ };
2130
+ content: {
2131
+ "application/json": {
2132
+ error: string;
2133
+ };
2134
+ };
2135
+ };
2136
+ /** @description Unauthorized */
2137
+ 401: {
2138
+ headers: {
2139
+ [name: string]: unknown;
2140
+ };
2141
+ content: {
2142
+ "application/json": {
2143
+ error: string;
2144
+ };
2145
+ };
2146
+ };
2147
+ /** @description Internal Server Error */
2148
+ 500: {
2149
+ headers: {
2150
+ [name: string]: unknown;
2151
+ };
2152
+ content: {
2153
+ "application/json": {
2154
+ error: string;
2155
+ };
2156
+ };
2157
+ };
2158
+ };
2159
+ };
1917
2160
  }
1918
2161
 
1919
2162
  type PromptResponse = NonNullable<paths["/api/prompts/{id}"]["get"]["responses"]["200"]["content"]["application/json"]>;
@@ -1928,6 +2171,8 @@ declare class PromptCompilationError extends Error {
1928
2171
  }
1929
2172
  declare class Prompt implements PromptResponse {
1930
2173
  readonly id: string;
2174
+ readonly handle: string | null;
2175
+ readonly scope: "ORGANIZATION" | "PROJECT";
1931
2176
  readonly name: string;
1932
2177
  readonly updatedAt: string;
1933
2178
  readonly version: number;
@@ -724,6 +724,23 @@ interface paths {
724
724
  patch?: never;
725
725
  trace?: never;
726
726
  };
727
+ "/api/prompts/{id}/sync": {
728
+ parameters: {
729
+ query?: never;
730
+ header?: never;
731
+ path?: never;
732
+ cookie?: never;
733
+ };
734
+ get?: never;
735
+ put?: never;
736
+ /** @description Sync/upsert a prompt with local content */
737
+ post: operations["postApiPromptsByIdSync"];
738
+ delete?: never;
739
+ options?: never;
740
+ head?: never;
741
+ patch?: never;
742
+ trace?: never;
743
+ };
727
744
  }
728
745
  interface components {
729
746
  schemas: {
@@ -903,6 +920,9 @@ interface operations {
903
920
  schema: Record<string, never>;
904
921
  };
905
922
  } | null;
923
+ handle: string | null;
924
+ /** @enum {string} */
925
+ scope: "ORGANIZATION" | "PROJECT";
906
926
  }[];
907
927
  };
908
928
  };
@@ -954,6 +974,12 @@ interface operations {
954
974
  content: {
955
975
  "application/json": {
956
976
  name: string;
977
+ handle?: string;
978
+ /**
979
+ * @default PROJECT
980
+ * @enum {string}
981
+ */
982
+ scope?: "ORGANIZATION" | "PROJECT";
957
983
  };
958
984
  };
959
985
  };
@@ -988,6 +1014,9 @@ interface operations {
988
1014
  schema: Record<string, never>;
989
1015
  };
990
1016
  } | null;
1017
+ handle: string | null;
1018
+ /** @enum {string} */
1019
+ scope: "ORGANIZATION" | "PROJECT";
991
1020
  };
992
1021
  };
993
1022
  };
@@ -1069,6 +1098,9 @@ interface operations {
1069
1098
  schema: Record<string, never>;
1070
1099
  };
1071
1100
  } | null;
1101
+ handle: string | null;
1102
+ /** @enum {string} */
1103
+ scope: "ORGANIZATION" | "PROJECT";
1072
1104
  };
1073
1105
  };
1074
1106
  };
@@ -1133,6 +1165,9 @@ interface operations {
1133
1165
  content: {
1134
1166
  "application/json": {
1135
1167
  name: string;
1168
+ handle?: string;
1169
+ /** @enum {string} */
1170
+ scope?: "ORGANIZATION" | "PROJECT";
1136
1171
  };
1137
1172
  };
1138
1173
  };
@@ -1147,6 +1182,9 @@ interface operations {
1147
1182
  id: string;
1148
1183
  name: string;
1149
1184
  updatedAt: string;
1185
+ handle: string | null;
1186
+ /** @enum {string} */
1187
+ scope: "ORGANIZATION" | "PROJECT";
1150
1188
  };
1151
1189
  };
1152
1190
  };
@@ -1353,6 +1391,12 @@ interface operations {
1353
1391
  ref?: string;
1354
1392
  };
1355
1393
  };
1394
+ author?: {
1395
+ name: string;
1396
+ } | null;
1397
+ handle: string | null;
1398
+ /** @enum {string} */
1399
+ scope: "ORGANIZATION" | "PROJECT";
1356
1400
  };
1357
1401
  };
1358
1402
  };
@@ -1483,6 +1527,9 @@ interface operations {
1483
1527
  ref?: string;
1484
1528
  };
1485
1529
  };
1530
+ author?: {
1531
+ name: string;
1532
+ } | null;
1486
1533
  };
1487
1534
  };
1488
1535
  };
@@ -1561,6 +1608,12 @@ interface operations {
1561
1608
  ref?: string;
1562
1609
  };
1563
1610
  };
1611
+ author?: {
1612
+ name: string;
1613
+ } | null;
1614
+ handle: string | null;
1615
+ /** @enum {string} */
1616
+ scope: "ORGANIZATION" | "PROJECT";
1564
1617
  };
1565
1618
  };
1566
1619
  };
@@ -1914,6 +1967,196 @@ interface operations {
1914
1967
  };
1915
1968
  };
1916
1969
  };
1970
+ postApiPromptsByIdSync: {
1971
+ parameters: {
1972
+ query?: never;
1973
+ header?: never;
1974
+ path: {
1975
+ id: string;
1976
+ };
1977
+ cookie?: never;
1978
+ };
1979
+ requestBody?: {
1980
+ content: {
1981
+ "application/json": {
1982
+ configData: {
1983
+ version?: number;
1984
+ prompt: string;
1985
+ /** @default [] */
1986
+ messages?: ({
1987
+ /** @enum {string} */
1988
+ role: "user" | "assistant" | "system";
1989
+ content: string;
1990
+ } & {
1991
+ [key: string]: unknown;
1992
+ })[];
1993
+ inputs: {
1994
+ identifier: string;
1995
+ /** @enum {string} */
1996
+ type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
1997
+ }[];
1998
+ outputs: {
1999
+ identifier: string;
2000
+ /** @enum {string} */
2001
+ type: "str" | "float" | "bool" | "json_schema";
2002
+ json_schema?: {
2003
+ type: string;
2004
+ } & {
2005
+ [key: string]: unknown;
2006
+ };
2007
+ }[];
2008
+ model: string;
2009
+ temperature?: number;
2010
+ max_tokens?: number;
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
+ prompting_technique?: {
2025
+ ref?: string;
2026
+ };
2027
+ };
2028
+ localVersion?: number;
2029
+ commitMessage?: string;
2030
+ };
2031
+ };
2032
+ };
2033
+ responses: {
2034
+ /** @description Sync result */
2035
+ 200: {
2036
+ headers: {
2037
+ [name: string]: unknown;
2038
+ };
2039
+ content: {
2040
+ "application/json": {
2041
+ /** @enum {string} */
2042
+ action: "created" | "updated" | "conflict" | "up_to_date";
2043
+ prompt?: {
2044
+ id: string;
2045
+ handle: string | null;
2046
+ /** @enum {string} */
2047
+ scope: "ORGANIZATION" | "PROJECT";
2048
+ name: string;
2049
+ updatedAt: string;
2050
+ version: number;
2051
+ versionId: string;
2052
+ versionCreatedAt: string;
2053
+ model: string;
2054
+ prompt: string;
2055
+ messages: ({
2056
+ /** @enum {string} */
2057
+ role: "user" | "assistant" | "system";
2058
+ content: string;
2059
+ } & {
2060
+ [key: string]: unknown;
2061
+ })[];
2062
+ response_format: {
2063
+ /** @enum {string} */
2064
+ type: "json_schema";
2065
+ json_schema: {
2066
+ name: string;
2067
+ schema: Record<string, never>;
2068
+ };
2069
+ } | null;
2070
+ };
2071
+ conflictInfo?: {
2072
+ localVersion: number;
2073
+ remoteVersion: number;
2074
+ differences: string[];
2075
+ remoteConfigData: {
2076
+ version?: number;
2077
+ prompt: string;
2078
+ /** @default [] */
2079
+ messages: ({
2080
+ /** @enum {string} */
2081
+ role: "user" | "assistant" | "system";
2082
+ content: string;
2083
+ } & {
2084
+ [key: string]: unknown;
2085
+ })[];
2086
+ inputs: {
2087
+ identifier: string;
2088
+ /** @enum {string} */
2089
+ type: "str" | "float" | "bool" | "image" | "list[str]" | "list[float]" | "list[int]" | "list[bool]" | "dict";
2090
+ }[];
2091
+ outputs: {
2092
+ identifier: string;
2093
+ /** @enum {string} */
2094
+ type: "str" | "float" | "bool" | "json_schema";
2095
+ json_schema?: {
2096
+ type: string;
2097
+ } & {
2098
+ [key: string]: unknown;
2099
+ };
2100
+ }[];
2101
+ model: string;
2102
+ temperature?: number;
2103
+ max_tokens?: number;
2104
+ demonstrations?: {
2105
+ id?: string;
2106
+ name?: string;
2107
+ inline?: {
2108
+ records: {
2109
+ [key: string]: string[];
2110
+ };
2111
+ columnTypes: {
2112
+ name: string;
2113
+ type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
2114
+ }[];
2115
+ };
2116
+ };
2117
+ prompting_technique?: {
2118
+ ref?: string;
2119
+ };
2120
+ };
2121
+ };
2122
+ };
2123
+ };
2124
+ };
2125
+ /** @description Bad Request */
2126
+ 400: {
2127
+ headers: {
2128
+ [name: string]: unknown;
2129
+ };
2130
+ content: {
2131
+ "application/json": {
2132
+ error: string;
2133
+ };
2134
+ };
2135
+ };
2136
+ /** @description Unauthorized */
2137
+ 401: {
2138
+ headers: {
2139
+ [name: string]: unknown;
2140
+ };
2141
+ content: {
2142
+ "application/json": {
2143
+ error: string;
2144
+ };
2145
+ };
2146
+ };
2147
+ /** @description Internal Server Error */
2148
+ 500: {
2149
+ headers: {
2150
+ [name: string]: unknown;
2151
+ };
2152
+ content: {
2153
+ "application/json": {
2154
+ error: string;
2155
+ };
2156
+ };
2157
+ };
2158
+ };
2159
+ };
1917
2160
  }
1918
2161
 
1919
2162
  type PromptResponse = NonNullable<paths["/api/prompts/{id}"]["get"]["responses"]["200"]["content"]["application/json"]>;
@@ -1928,6 +2171,8 @@ declare class PromptCompilationError extends Error {
1928
2171
  }
1929
2172
  declare class Prompt implements PromptResponse {
1930
2173
  readonly id: string;
2174
+ readonly handle: string | null;
2175
+ readonly scope: "ORGANIZATION" | "PROJECT";
1931
2176
  readonly name: string;
1932
2177
  readonly updatedAt: string;
1933
2178
  readonly version: number;