notdiamond 1.1.4 → 2.0.0-rc10

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 (441) hide show
  1. package/CHANGELOG.md +143 -0
  2. package/LICENSE +201 -0
  3. package/README.md +642 -96
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +192 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +192 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +463 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +459 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +35 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +32 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/qs/formats.d.mts +7 -0
  109. package/internal/qs/formats.d.mts.map +1 -0
  110. package/internal/qs/formats.d.ts +7 -0
  111. package/internal/qs/formats.d.ts.map +1 -0
  112. package/internal/qs/formats.js +13 -0
  113. package/internal/qs/formats.js.map +1 -0
  114. package/internal/qs/formats.mjs +9 -0
  115. package/internal/qs/formats.mjs.map +1 -0
  116. package/internal/qs/index.d.mts +10 -0
  117. package/internal/qs/index.d.mts.map +1 -0
  118. package/internal/qs/index.d.ts +10 -0
  119. package/internal/qs/index.d.ts.map +1 -0
  120. package/internal/qs/index.js +14 -0
  121. package/internal/qs/index.js.map +1 -0
  122. package/internal/qs/index.mjs +10 -0
  123. package/internal/qs/index.mjs.map +1 -0
  124. package/internal/qs/stringify.d.mts +3 -0
  125. package/internal/qs/stringify.d.mts.map +1 -0
  126. package/internal/qs/stringify.d.ts +3 -0
  127. package/internal/qs/stringify.d.ts.map +1 -0
  128. package/internal/qs/stringify.js +277 -0
  129. package/internal/qs/stringify.js.map +1 -0
  130. package/internal/qs/stringify.mjs +274 -0
  131. package/internal/qs/stringify.mjs.map +1 -0
  132. package/internal/qs/types.d.mts +57 -0
  133. package/internal/qs/types.d.mts.map +1 -0
  134. package/internal/qs/types.d.ts +57 -0
  135. package/internal/qs/types.d.ts.map +1 -0
  136. package/internal/qs/types.js +3 -0
  137. package/internal/qs/types.js.map +1 -0
  138. package/internal/qs/types.mjs +2 -0
  139. package/internal/qs/types.mjs.map +1 -0
  140. package/internal/qs/utils.d.mts +15 -0
  141. package/internal/qs/utils.d.mts.map +1 -0
  142. package/internal/qs/utils.d.ts +15 -0
  143. package/internal/qs/utils.d.ts.map +1 -0
  144. package/internal/qs/utils.js +230 -0
  145. package/internal/qs/utils.js.map +1 -0
  146. package/internal/qs/utils.mjs +217 -0
  147. package/internal/qs/utils.mjs.map +1 -0
  148. package/internal/request-options.d.mts +75 -0
  149. package/internal/request-options.d.mts.map +1 -0
  150. package/internal/request-options.d.ts +75 -0
  151. package/internal/request-options.d.ts.map +1 -0
  152. package/internal/request-options.js +14 -0
  153. package/internal/request-options.js.map +1 -0
  154. package/internal/request-options.mjs +10 -0
  155. package/internal/request-options.mjs.map +1 -0
  156. package/internal/shim-types.d.mts +17 -0
  157. package/internal/shim-types.d.mts.map +1 -0
  158. package/internal/shim-types.d.ts +17 -0
  159. package/internal/shim-types.d.ts.map +1 -0
  160. package/internal/shim-types.js +4 -0
  161. package/internal/shim-types.js.map +1 -0
  162. package/internal/shim-types.mjs +3 -0
  163. package/internal/shim-types.mjs.map +1 -0
  164. package/internal/shims.d.mts +20 -0
  165. package/internal/shims.d.mts.map +1 -0
  166. package/internal/shims.d.ts +20 -0
  167. package/internal/shims.d.ts.map +1 -0
  168. package/internal/shims.js +92 -0
  169. package/internal/shims.js.map +1 -0
  170. package/internal/shims.mjs +85 -0
  171. package/internal/shims.mjs.map +1 -0
  172. package/internal/to-file.d.mts +45 -0
  173. package/internal/to-file.d.mts.map +1 -0
  174. package/internal/to-file.d.ts +45 -0
  175. package/internal/to-file.d.ts.map +1 -0
  176. package/internal/to-file.js +91 -0
  177. package/internal/to-file.js.map +1 -0
  178. package/internal/to-file.mjs +88 -0
  179. package/internal/to-file.mjs.map +1 -0
  180. package/internal/tslib.js +81 -0
  181. package/internal/tslib.mjs +17 -0
  182. package/internal/types.d.mts +69 -0
  183. package/internal/types.d.mts.map +1 -0
  184. package/internal/types.d.ts +69 -0
  185. package/internal/types.d.ts.map +1 -0
  186. package/internal/types.js +4 -0
  187. package/internal/types.js.map +1 -0
  188. package/internal/types.mjs +3 -0
  189. package/internal/types.mjs.map +1 -0
  190. package/internal/uploads.d.mts +42 -0
  191. package/internal/uploads.d.mts.map +1 -0
  192. package/internal/uploads.d.ts +42 -0
  193. package/internal/uploads.d.ts.map +1 -0
  194. package/internal/uploads.js +141 -0
  195. package/internal/uploads.js.map +1 -0
  196. package/internal/uploads.mjs +131 -0
  197. package/internal/uploads.mjs.map +1 -0
  198. package/internal/utils/base64.d.mts +3 -0
  199. package/internal/utils/base64.d.mts.map +1 -0
  200. package/internal/utils/base64.d.ts +3 -0
  201. package/internal/utils/base64.d.ts.map +1 -0
  202. package/internal/utils/base64.js +38 -0
  203. package/internal/utils/base64.js.map +1 -0
  204. package/internal/utils/base64.mjs +33 -0
  205. package/internal/utils/base64.mjs.map +1 -0
  206. package/internal/utils/bytes.d.mts +4 -0
  207. package/internal/utils/bytes.d.mts.map +1 -0
  208. package/internal/utils/bytes.d.ts +4 -0
  209. package/internal/utils/bytes.d.ts.map +1 -0
  210. package/internal/utils/bytes.js +31 -0
  211. package/internal/utils/bytes.js.map +1 -0
  212. package/internal/utils/bytes.mjs +26 -0
  213. package/internal/utils/bytes.mjs.map +1 -0
  214. package/internal/utils/env.d.mts +9 -0
  215. package/internal/utils/env.d.mts.map +1 -0
  216. package/internal/utils/env.d.ts +9 -0
  217. package/internal/utils/env.d.ts.map +1 -0
  218. package/internal/utils/env.js +24 -0
  219. package/internal/utils/env.js.map +1 -0
  220. package/internal/utils/env.mjs +20 -0
  221. package/internal/utils/env.mjs.map +1 -0
  222. package/internal/utils/log.d.mts +37 -0
  223. package/internal/utils/log.d.mts.map +1 -0
  224. package/internal/utils/log.d.ts +37 -0
  225. package/internal/utils/log.d.ts.map +1 -0
  226. package/internal/utils/log.js +85 -0
  227. package/internal/utils/log.js.map +1 -0
  228. package/internal/utils/log.mjs +79 -0
  229. package/internal/utils/log.mjs.map +1 -0
  230. package/internal/utils/path.d.mts +15 -0
  231. package/internal/utils/path.d.mts.map +1 -0
  232. package/internal/utils/path.d.ts +15 -0
  233. package/internal/utils/path.d.ts.map +1 -0
  234. package/internal/utils/path.js +79 -0
  235. package/internal/utils/path.js.map +1 -0
  236. package/internal/utils/path.mjs +74 -0
  237. package/internal/utils/path.mjs.map +1 -0
  238. package/internal/utils/sleep.d.mts +2 -0
  239. package/internal/utils/sleep.d.mts.map +1 -0
  240. package/internal/utils/sleep.d.ts +2 -0
  241. package/internal/utils/sleep.d.ts.map +1 -0
  242. package/internal/utils/sleep.js +7 -0
  243. package/internal/utils/sleep.js.map +1 -0
  244. package/internal/utils/sleep.mjs +3 -0
  245. package/internal/utils/sleep.mjs.map +1 -0
  246. package/internal/utils/uuid.d.mts +5 -0
  247. package/internal/utils/uuid.d.mts.map +1 -0
  248. package/internal/utils/uuid.d.ts +5 -0
  249. package/internal/utils/uuid.d.ts.map +1 -0
  250. package/internal/utils/uuid.js +19 -0
  251. package/internal/utils/uuid.js.map +1 -0
  252. package/internal/utils/uuid.mjs +15 -0
  253. package/internal/utils/uuid.mjs.map +1 -0
  254. package/internal/utils/values.d.mts +18 -0
  255. package/internal/utils/values.d.mts.map +1 -0
  256. package/internal/utils/values.d.ts +18 -0
  257. package/internal/utils/values.d.ts.map +1 -0
  258. package/internal/utils/values.js +112 -0
  259. package/internal/utils/values.js.map +1 -0
  260. package/internal/utils/values.mjs +94 -0
  261. package/internal/utils/values.mjs.map +1 -0
  262. package/internal/utils.d.mts +7 -0
  263. package/internal/utils.d.mts.map +1 -0
  264. package/internal/utils.d.ts +7 -0
  265. package/internal/utils.d.ts.map +1 -0
  266. package/internal/utils.js +11 -0
  267. package/internal/utils.js.map +1 -0
  268. package/internal/utils.mjs +8 -0
  269. package/internal/utils.mjs.map +1 -0
  270. package/package.json +129 -123
  271. package/resource.d.mts +2 -0
  272. package/resource.d.mts.map +1 -0
  273. package/resource.d.ts +2 -0
  274. package/resource.d.ts.map +1 -0
  275. package/resource.js +6 -0
  276. package/resource.js.map +1 -0
  277. package/resource.mjs +2 -0
  278. package/resource.mjs.map +1 -0
  279. package/resources/custom-router.d.mts +145 -0
  280. package/resources/custom-router.d.mts.map +1 -0
  281. package/resources/custom-router.d.ts +145 -0
  282. package/resources/custom-router.d.ts.map +1 -0
  283. package/resources/custom-router.js +83 -0
  284. package/resources/custom-router.js.map +1 -0
  285. package/resources/custom-router.mjs +79 -0
  286. package/resources/custom-router.mjs.map +1 -0
  287. package/resources/index.d.mts +7 -0
  288. package/resources/index.d.mts.map +1 -0
  289. package/resources/index.d.ts +7 -0
  290. package/resources/index.d.ts.map +1 -0
  291. package/resources/index.js +17 -0
  292. package/resources/index.js.map +1 -0
  293. package/resources/index.mjs +8 -0
  294. package/resources/index.mjs.map +1 -0
  295. package/resources/model-router.d.mts +196 -0
  296. package/resources/model-router.d.mts.map +1 -0
  297. package/resources/model-router.d.ts +196 -0
  298. package/resources/model-router.d.ts.map +1 -0
  299. package/resources/model-router.js +70 -0
  300. package/resources/model-router.js.map +1 -0
  301. package/resources/model-router.mjs +66 -0
  302. package/resources/model-router.mjs.map +1 -0
  303. package/resources/models.d.mts +110 -0
  304. package/resources/models.d.mts.map +1 -0
  305. package/resources/models.d.ts +110 -0
  306. package/resources/models.d.ts.map +1 -0
  307. package/resources/models.js +49 -0
  308. package/resources/models.js.map +1 -0
  309. package/resources/models.mjs +45 -0
  310. package/resources/models.mjs.map +1 -0
  311. package/resources/preferences.d.mts +97 -0
  312. package/resources/preferences.d.mts.map +1 -0
  313. package/resources/preferences.d.ts +97 -0
  314. package/resources/preferences.d.ts.map +1 -0
  315. package/resources/preferences.js +70 -0
  316. package/resources/preferences.js.map +1 -0
  317. package/resources/preferences.mjs +66 -0
  318. package/resources/preferences.mjs.map +1 -0
  319. package/resources/prompt-adaptation.d.mts +679 -0
  320. package/resources/prompt-adaptation.d.mts.map +1 -0
  321. package/resources/prompt-adaptation.d.ts +679 -0
  322. package/resources/prompt-adaptation.d.ts.map +1 -0
  323. package/resources/prompt-adaptation.js +266 -0
  324. package/resources/prompt-adaptation.js.map +1 -0
  325. package/resources/prompt-adaptation.mjs +262 -0
  326. package/resources/prompt-adaptation.mjs.map +1 -0
  327. package/resources/report/index.d.mts +3 -0
  328. package/resources/report/index.d.mts.map +1 -0
  329. package/resources/report/index.d.ts +3 -0
  330. package/resources/report/index.d.ts.map +1 -0
  331. package/resources/report/index.js +9 -0
  332. package/resources/report/index.js.map +1 -0
  333. package/resources/report/index.mjs +4 -0
  334. package/resources/report/index.mjs.map +1 -0
  335. package/resources/report/metrics.d.mts +87 -0
  336. package/resources/report/metrics.d.mts.map +1 -0
  337. package/resources/report/metrics.d.ts +87 -0
  338. package/resources/report/metrics.d.ts.map +1 -0
  339. package/resources/report/metrics.js +57 -0
  340. package/resources/report/metrics.js.map +1 -0
  341. package/resources/report/metrics.mjs +53 -0
  342. package/resources/report/metrics.mjs.map +1 -0
  343. package/resources/report/report.d.mts +10 -0
  344. package/resources/report/report.d.mts.map +1 -0
  345. package/resources/report/report.d.ts +10 -0
  346. package/resources/report/report.d.ts.map +1 -0
  347. package/resources/report/report.js +17 -0
  348. package/resources/report/report.js.map +1 -0
  349. package/resources/report/report.mjs +12 -0
  350. package/resources/report/report.mjs.map +1 -0
  351. package/resources/report.d.mts +2 -0
  352. package/resources/report.d.mts.map +1 -0
  353. package/resources/report.d.ts +2 -0
  354. package/resources/report.d.ts.map +1 -0
  355. package/resources/report.js +6 -0
  356. package/resources/report.js.map +1 -0
  357. package/resources/report.mjs +3 -0
  358. package/resources/report.mjs.map +1 -0
  359. package/resources.d.mts +2 -0
  360. package/resources.d.mts.map +1 -0
  361. package/resources.d.ts +2 -0
  362. package/resources.d.ts.map +1 -0
  363. package/resources.js +5 -0
  364. package/resources.js.map +1 -0
  365. package/resources.mjs +2 -0
  366. package/resources.mjs.map +1 -0
  367. package/src/api-promise.ts +2 -0
  368. package/src/client.ts +791 -0
  369. package/src/core/README.md +3 -0
  370. package/src/core/api-promise.ts +92 -0
  371. package/src/core/error.ts +130 -0
  372. package/src/core/resource.ts +11 -0
  373. package/src/core/uploads.ts +2 -0
  374. package/src/error.ts +2 -0
  375. package/src/index.ts +22 -0
  376. package/src/internal/README.md +3 -0
  377. package/src/internal/builtin-types.ts +93 -0
  378. package/src/internal/detect-platform.ts +196 -0
  379. package/src/internal/errors.ts +33 -0
  380. package/src/internal/headers.ts +97 -0
  381. package/src/internal/parse.ts +50 -0
  382. package/src/internal/qs/LICENSE.md +13 -0
  383. package/src/internal/qs/README.md +3 -0
  384. package/src/internal/qs/formats.ts +10 -0
  385. package/src/internal/qs/index.ts +13 -0
  386. package/src/internal/qs/stringify.ts +385 -0
  387. package/src/internal/qs/types.ts +71 -0
  388. package/src/internal/qs/utils.ts +265 -0
  389. package/src/internal/request-options.ts +91 -0
  390. package/src/internal/shim-types.ts +26 -0
  391. package/src/internal/shims.ts +107 -0
  392. package/src/internal/to-file.ts +154 -0
  393. package/src/internal/types.ts +95 -0
  394. package/src/internal/uploads.ts +187 -0
  395. package/src/internal/utils/base64.ts +40 -0
  396. package/src/internal/utils/bytes.ts +32 -0
  397. package/src/internal/utils/env.ts +20 -0
  398. package/src/internal/utils/log.ts +126 -0
  399. package/src/internal/utils/path.ts +88 -0
  400. package/src/internal/utils/sleep.ts +3 -0
  401. package/src/internal/utils/uuid.ts +17 -0
  402. package/src/internal/utils/values.ts +105 -0
  403. package/src/internal/utils.ts +8 -0
  404. package/src/lib/.keep +4 -0
  405. package/src/resource.ts +2 -0
  406. package/src/resources/custom-router.ts +168 -0
  407. package/src/resources/index.ts +33 -0
  408. package/src/resources/model-router.ts +224 -0
  409. package/src/resources/models.ts +133 -0
  410. package/src/resources/preferences.ts +121 -0
  411. package/src/resources/prompt-adaptation.ts +770 -0
  412. package/src/resources/report/index.ts +4 -0
  413. package/src/resources/report/metrics.ts +99 -0
  414. package/src/resources/report/report.ts +19 -0
  415. package/src/resources/report.ts +3 -0
  416. package/src/resources.ts +1 -0
  417. package/src/tsconfig.json +11 -0
  418. package/src/uploads.ts +2 -0
  419. package/src/version.ts +1 -0
  420. package/uploads.d.mts +2 -0
  421. package/uploads.d.mts.map +1 -0
  422. package/uploads.d.ts +2 -0
  423. package/uploads.d.ts.map +1 -0
  424. package/uploads.js +6 -0
  425. package/uploads.js.map +1 -0
  426. package/uploads.mjs +2 -0
  427. package/uploads.mjs.map +1 -0
  428. package/version.d.mts +2 -0
  429. package/version.d.mts.map +1 -0
  430. package/version.d.ts +2 -0
  431. package/version.d.ts.map +1 -0
  432. package/version.js +5 -0
  433. package/version.js.map +1 -0
  434. package/version.mjs +2 -0
  435. package/version.mjs.map +1 -0
  436. package/LICENCE +0 -21
  437. package/dist/index.cjs +0 -601
  438. package/dist/index.d.cts +0 -228
  439. package/dist/index.d.mts +0 -228
  440. package/dist/index.d.ts +0 -228
  441. package/dist/index.mjs +0 -580
@@ -0,0 +1,679 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import * as PromptAdaptationAPI from "./prompt-adaptation.mjs";
3
+ import { APIPromise } from "../core/api-promise.mjs";
4
+ import { RequestOptions } from "../internal/request-options.mjs";
5
+ export declare class PromptAdaptation extends APIResource {
6
+ /**
7
+ * Adapt your prompt from one LLM to work optimally across different target LLMs.
8
+ *
9
+ * This endpoint automatically optimizes your prompt (system prompt + user message
10
+ * template) to achieve better performance when switching between different
11
+ * language models. Each model has unique characteristics, and what works well for
12
+ * GPT-4 might not work as well for Claude or Gemini.
13
+ *
14
+ * **How Prompt Adaptation Works:**
15
+ *
16
+ * 1. You provide your current prompt optimized for an origin model
17
+ * 2. You specify target models you want to adapt to
18
+ * 3. You provide evaluation examples (golden records) with expected answers
19
+ * 4. The system runs optimization to find the best prompt for each target model
20
+ * 5. You receive adapted prompts that perform well on your target models
21
+ *
22
+ * **Evaluation Metrics:** Choose either a standard metric or provide custom
23
+ * evaluation:
24
+ *
25
+ * - **Standard metrics**: LLMaaJ:SQL, LLMaaJ:Sem_Sim_1/3/10 (semantic similarity),
26
+ * JSON_Match
27
+ * - **Custom evaluation**: Provide evaluation_config with your own LLM judge,
28
+ * prompt, and cutoff
29
+ *
30
+ * **Dataset Requirements:**
31
+ *
32
+ * - Minimum 25 examples in train_goldens (more examples = better adaptation)
33
+ * - Each example must have fields matching your template placeholders
34
+ * - Supervised evaluation requires 'answer' field in each golden record
35
+ * - Unsupervised evaluation can work without answers
36
+ *
37
+ * **Training Time:**
38
+ *
39
+ * - Processing is asynchronous and typically takes 10-30 minutes
40
+ * - Time depends on: number of target models, dataset size, model availability
41
+ * - Use the returned adaptation_run_id to check status and retrieve results
42
+ *
43
+ * **Subscription Tiers:**
44
+ *
45
+ * - Free: 1 target model
46
+ * - Starter: 3 target models
47
+ * - Startup: 5 target models
48
+ * - Enterprise: 10 target models
49
+ *
50
+ * **Best Practices:**
51
+ *
52
+ * 1. Use diverse, representative examples from your production workload
53
+ * 2. Include examples for best results (25 minimum)
54
+ * 3. Ensure consistent evaluation across all examples
55
+ * 4. Test both train_goldens and test_goldens split for validation
56
+ * 5. Use the same model versions you'll use in production
57
+ *
58
+ * **Example Workflow:**
59
+ *
60
+ * ```
61
+ * 1. POST /v2/prompt/adapt - Submit adaptation request
62
+ * 2. GET /v2/prompt/adaptStatus/{id} - Poll status until completed
63
+ * 3. GET /v2/prompt/adaptResults/{id} - Retrieve optimized prompts
64
+ * 4. Use optimized prompts in production with target models
65
+ * ```
66
+ *
67
+ * **Related Documentation:** See
68
+ * https://docs.notdiamond.ai/docs/adapting-prompts-to-new-models for detailed
69
+ * guide.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * const promptAdaptation = await client.promptAdaptation.create({
74
+ * fields: ['question'],
75
+ * system_prompt: 'You are a helpful assistant that answers questions accurately.',
76
+ * target_models: [
77
+ * { provider: 'anthropic', model: 'claude-sonnet-4-5-20250929' },
78
+ * { provider: 'google', model: 'gemini-2.5-flash' },
79
+ * ],
80
+ * template: 'Question: {question}\nAnswer:',
81
+ * evaluation_metric: 'LLMaaJ:Sem_Sim_3',
82
+ * origin_model: { provider: 'openai', model: 'gpt-4o' },
83
+ * test_goldens: [
84
+ * {
85
+ * fields: { ... },
86
+ * answer: '9',
87
+ * },
88
+ * {
89
+ * fields: { ... },
90
+ * answer: 'Pacific Ocean',
91
+ * },
92
+ * ],
93
+ * train_goldens: [
94
+ * {
95
+ * fields: { ... },
96
+ * answer: '4',
97
+ * },
98
+ * {
99
+ * fields: { ... },
100
+ * answer: 'Paris',
101
+ * },
102
+ * {
103
+ * fields: { ... },
104
+ * answer: 'William Shakespeare',
105
+ * },
106
+ * {
107
+ * fields: { ... },
108
+ * answer: 'Water',
109
+ * },
110
+ * {
111
+ * fields: { ... },
112
+ * answer: '7',
113
+ * },
114
+ * ],
115
+ * });
116
+ * ```
117
+ */
118
+ create(body: PromptAdaptationCreateParams, options?: RequestOptions): APIPromise<PromptAdaptationCreateResponse>;
119
+ /**
120
+ * Retrieve the complete results of a prompt adaptation run, including optimized
121
+ * prompts for all target models.
122
+ *
123
+ * This endpoint returns the adapted prompts and evaluation metrics for each target
124
+ * model in your adaptation request. Call this endpoint after the adaptation status
125
+ * is 'completed' to get your optimized prompts.
126
+ *
127
+ * **Response Structure:**
128
+ *
129
+ * - **origin_model**: Baseline performance of your original prompt on the origin
130
+ * model
131
+ * - Includes: system_prompt, user_message_template, score, evaluation metrics,
132
+ * cost
133
+ * - **target_models**: Array of results for each target model
134
+ * - Includes: optimized system_prompt, user_message_template, template_fields
135
+ * - pre_optimization_score: Performance before adaptation
136
+ * - post_optimization_score: Performance after adaptation
137
+ * - Evaluation metrics and cost information
138
+ *
139
+ * **Using Adapted Prompts:**
140
+ *
141
+ * 1. Extract the `system_prompt` and `user_message_template` from each target
142
+ * model result
143
+ * 2. Use `user_message_template_fields` to know which fields to substitute
144
+ * 3. Apply the optimized prompts when calling the respective target models
145
+ * 4. Compare pre/post optimization scores to see improvement
146
+ *
147
+ * **Evaluation Scores:**
148
+ *
149
+ * - Scores range from 0-10 (higher is better)
150
+ * - Compare origin_model score with target_models pre_optimization_score for
151
+ * baseline
152
+ * - Compare pre_optimization_score with post_optimization_score to see improvement
153
+ * from adaptation
154
+ * - Typical improvements range from 5-30% on evaluation metrics
155
+ *
156
+ * **Status Handling:**
157
+ *
158
+ * - If adaptation is still processing, target model results will have
159
+ * `result_status: "processing"`
160
+ * - Only completed target models will have system_prompt and template values
161
+ * - Failed target models will have `result_status: "failed"` with null values
162
+ *
163
+ * **Cost Information:**
164
+ *
165
+ * - Each model result includes cost in USD for the adaptation process
166
+ * - Costs vary based on model pricing and number of evaluation examples
167
+ * - Typical range: $0.10 - $2.00 per target model
168
+ *
169
+ * **Best Practices:**
170
+ *
171
+ * 1. Wait for status 'completed' before calling this endpoint
172
+ * 2. Check result_status for each target model
173
+ * 3. Validate that post_optimization_score > pre_optimization_score
174
+ * 4. Save optimized prompts for production use
175
+ * 5. A/B test adapted prompts against originals in production
176
+ *
177
+ * @example
178
+ * ```ts
179
+ * const response =
180
+ * await client.promptAdaptation.getAdaptResults(
181
+ * 'adaptation_run_id',
182
+ * );
183
+ * ```
184
+ */
185
+ getAdaptResults(adaptationRunID: string, options?: RequestOptions): APIPromise<PromptAdaptationGetAdaptResultsResponse>;
186
+ /**
187
+ * Check the status of a prompt adaptation run.
188
+ *
189
+ * Use this endpoint to poll the status of your adaptation request. Processing is
190
+ * asynchronous, so you'll need to check periodically until the status indicates
191
+ * completion.
192
+ *
193
+ * **Status Values:**
194
+ *
195
+ * - `created`: Initial state, not yet processing
196
+ * - `queued`: Waiting for processing capacity (check queue_position)
197
+ * - `processing`: Currently optimizing prompts
198
+ * - `completed`: All target models have been processed successfully
199
+ * - `failed`: One or more target models failed to process
200
+ *
201
+ * **Polling Recommendations:**
202
+ *
203
+ * - Poll every 30-60 seconds during processing
204
+ * - Check queue_position if status is 'queued' to estimate wait time
205
+ * - Stop polling once status is 'completed' or 'failed'
206
+ * - Use GET /v2/prompt/adaptResults to retrieve results after completion
207
+ *
208
+ * **Queue Position:**
209
+ *
210
+ * - Only present when status is 'queued'
211
+ * - Lower numbers mean earlier processing (position 1 is next)
212
+ * - Typical wait time: 1-5 minutes per position
213
+ *
214
+ * **Note:** This endpoint only returns status information. To get the actual
215
+ * adapted prompts and evaluation results, use GET /v2/prompt/adaptResults once
216
+ * status is 'completed'.
217
+ *
218
+ * @example
219
+ * ```ts
220
+ * const response =
221
+ * await client.promptAdaptation.getAdaptStatus(
222
+ * 'adaptation_run_id',
223
+ * );
224
+ * ```
225
+ */
226
+ getAdaptStatus(adaptationRunID: string, options?: RequestOptions): APIPromise<PromptAdaptationGetAdaptStatusResponse>;
227
+ /**
228
+ * Get LLM usage costs for a specific prompt adaptation run.
229
+ *
230
+ * This endpoint returns the total cost and detailed usage records for all LLM
231
+ * requests made during a prompt adaptation run. Use this to track costs associated
232
+ * with optimizing prompts for different target models.
233
+ *
234
+ * **Cost Breakdown:**
235
+ *
236
+ * - Total cost across all models used in the adaptation
237
+ * - Individual usage records with provider, model, tokens, and costs
238
+ * - Timestamps for each LLM request
239
+ * - Task type (e.g., optimization, evaluation)
240
+ *
241
+ * **Access Control:**
242
+ *
243
+ * - Only accessible by the user who created the adaptation run
244
+ * - Requires prompt adaptation access
245
+ *
246
+ * @example
247
+ * ```ts
248
+ * const response = await client.promptAdaptation.getCosts(
249
+ * 'adaptation_run_id',
250
+ * );
251
+ * ```
252
+ */
253
+ getCosts(adaptationRunID: string, options?: RequestOptions): APIPromise<PromptAdaptationGetCostsResponse>;
254
+ }
255
+ /**
256
+ * A training or test example for prompt adaptation.
257
+ */
258
+ export interface GoldenRecord {
259
+ /**
260
+ * Dictionary mapping field names to their values. Keys must match the fields
261
+ * specified in the template
262
+ */
263
+ fields: {
264
+ [key: string]: string;
265
+ };
266
+ /**
267
+ * Expected answer for supervised evaluation. Required for supervised metrics,
268
+ * optional for unsupervised
269
+ */
270
+ answer?: string | null;
271
+ }
272
+ /**
273
+ * Status enum for asynchronous jobs (prompt adaptation, custom router training,
274
+ * etc.).
275
+ *
276
+ * Represents the current state of a long-running operation:
277
+ *
278
+ * - **created**: Job has been initialized but not yet queued
279
+ * - **queued**: Job is waiting in the queue to be processed
280
+ * - **processing**: Job is currently being executed
281
+ * - **completed**: Job finished successfully and results are available
282
+ * - **failed**: Job encountered an error and did not complete
283
+ */
284
+ export type JobStatus = 'created' | 'queued' | 'processing' | 'completed' | 'failed';
285
+ /**
286
+ * Model for specifying an LLM provider in API requests.
287
+ */
288
+ export interface RequestProvider {
289
+ /**
290
+ * Model name (e.g., 'gpt-4o', 'claude-sonnet-4-5-20250929')
291
+ */
292
+ model: string;
293
+ /**
294
+ * Provider name (e.g., 'openai', 'anthropic', 'google')
295
+ */
296
+ provider: string;
297
+ /**
298
+ * Maximum context length for the model (required for custom models)
299
+ */
300
+ context_length?: number | null;
301
+ /**
302
+ * Input token price per million tokens in USD (required for custom models)
303
+ */
304
+ input_price?: number | null;
305
+ /**
306
+ * Whether this is a custom model not in Not Diamond's supported model list
307
+ */
308
+ is_custom?: boolean;
309
+ /**
310
+ * Average latency in seconds (required for custom models)
311
+ */
312
+ latency?: number | null;
313
+ /**
314
+ * Output token price per million tokens in USD (required for custom models)
315
+ */
316
+ output_price?: number | null;
317
+ }
318
+ /**
319
+ * Response model for POST /v2/prompt/adapt endpoint.
320
+ *
321
+ * Returned immediately after submitting a prompt adaptation request. The
322
+ * adaptation process runs asynchronously, so use the returned adaptation_run_id to
323
+ * track progress and retrieve results when complete.
324
+ *
325
+ * **Next steps:**
326
+ *
327
+ * 1. Store the adaptation_run_id
328
+ * 2. Poll GET /v2/prompt/adaptStatus/{adaptation_run_id} to check progress
329
+ * 3. When status is 'completed', retrieve optimized prompts from GET
330
+ * /v2/prompt/adaptResults/{adaptation_run_id}
331
+ * 4. Use the optimized prompts with your target models
332
+ */
333
+ export interface PromptAdaptationCreateResponse {
334
+ /**
335
+ * Unique identifier for this adaptation run. Use this to poll status and retrieve
336
+ * optimized prompts when complete
337
+ */
338
+ adaptation_run_id: string;
339
+ }
340
+ /**
341
+ * Response model for GET /v2/prompt/adaptResults/{adaptation_run_id} endpoint.
342
+ *
343
+ * Contains the complete results of a prompt adaptation run, including optimized
344
+ * prompts and evaluation metrics for all target models. Use this to retrieve your
345
+ * adapted prompts after the adaptation status is 'completed'.
346
+ *
347
+ * The response includes:
348
+ *
349
+ * - Baseline performance of your original prompt on the origin model
350
+ * - Optimized prompts for each target model with pre/post optimization scores
351
+ * - Evaluation metrics and cost information for each model
352
+ */
353
+ export interface PromptAdaptationGetAdaptResultsResponse {
354
+ /**
355
+ * Unique ID for this adaptation run
356
+ */
357
+ id: string;
358
+ /**
359
+ * Timestamp when this adaptation run was created
360
+ */
361
+ created_at: string;
362
+ /**
363
+ * Overall status of the adaptation run (queued, running, completed, failed)
364
+ */
365
+ job_status: JobStatus;
366
+ /**
367
+ * Results for each target model with optimized prompts and improvement scores
368
+ */
369
+ target_models: Array<PromptAdaptationGetAdaptResultsResponse.TargetModel>;
370
+ /**
371
+ * Timestamp of last update to this adaptation run
372
+ */
373
+ updated_at: string | null;
374
+ evaluation_config?: string | null;
375
+ evaluation_metric?: string | null;
376
+ /**
377
+ * Metrics for the LLM requests made during the adaptation run (e.g.,
378
+ * total_requests, avg_latency)
379
+ */
380
+ llm_request_metrics?: {
381
+ [key: string]: number;
382
+ };
383
+ /**
384
+ * Baseline results for the origin model in prompt adaptation.
385
+ *
386
+ * Part of AdaptationRunResultsResponse. Contains the performance metrics and
387
+ * prompt configuration for your original prompt on the origin model. This serves
388
+ * as the baseline to compare against optimized prompts for target models.
389
+ *
390
+ * **Fields include:**
391
+ *
392
+ * - Original system prompt and user message template
393
+ * - Baseline performance score and evaluation metrics
394
+ * - Cost of running the baseline evaluation
395
+ * - Job status for the origin model evaluation
396
+ */
397
+ origin_model?: PromptAdaptationGetAdaptResultsResponse.OriginModel | null;
398
+ }
399
+ export declare namespace PromptAdaptationGetAdaptResultsResponse {
400
+ /**
401
+ * Optimized prompt results for a single target model in prompt adaptation.
402
+ *
403
+ * Part of AdaptationRunResultsResponse. Contains the optimized system prompt and
404
+ * user message template for a specific target model, along with performance scores
405
+ * before and after optimization. Use these optimized prompts with the target model
406
+ * to achieve better performance than the original prompt.
407
+ *
408
+ * **Key metrics:**
409
+ *
410
+ * - **pre_optimization_score**: Performance with original prompt on this target
411
+ * model
412
+ * - **post_optimization_score**: Performance with optimized prompt on this target
413
+ * model
414
+ * - **Score improvement**: post - pre shows how much optimization helped
415
+ *
416
+ * **Usage:**
417
+ *
418
+ * 1. Extract the optimized system_prompt and user_message_template
419
+ * 2. Replace placeholders in user_message_template using fields from your data
420
+ * 3. Use these prompts when calling this target model
421
+ * 4. Compare pre/post scores to see improvement gained
422
+ */
423
+ interface TargetModel {
424
+ cost: number | null;
425
+ model_name: string;
426
+ post_optimization_evals: {
427
+ [key: string]: unknown;
428
+ } | null;
429
+ post_optimization_score: number | null;
430
+ pre_optimization_evals: {
431
+ [key: string]: unknown;
432
+ } | null;
433
+ pre_optimization_score: number | null;
434
+ task_type: string | null;
435
+ /**
436
+ * Status enum for asynchronous jobs (prompt adaptation, custom router training,
437
+ * etc.).
438
+ *
439
+ * Represents the current state of a long-running operation:
440
+ *
441
+ * - **created**: Job has been initialized but not yet queued
442
+ * - **queued**: Job is waiting in the queue to be processed
443
+ * - **processing**: Job is currently being executed
444
+ * - **completed**: Job finished successfully and results are available
445
+ * - **failed**: Job encountered an error and did not complete
446
+ */
447
+ result_status?: PromptAdaptationAPI.JobStatus | null;
448
+ /**
449
+ * Optimized system prompt for this target model. Use this as the system message in
450
+ * your LLM calls
451
+ */
452
+ system_prompt?: string | null;
453
+ /**
454
+ * Optimized user message template with placeholders. Substitute fields using your
455
+ * data before calling the LLM
456
+ */
457
+ user_message_template?: string | null;
458
+ /**
459
+ * List of field names to substitute in the template (e.g., ['question',
460
+ * 'context']). These match the curly-brace placeholders in user_message_template
461
+ */
462
+ user_message_template_fields?: Array<string> | null;
463
+ }
464
+ /**
465
+ * Baseline results for the origin model in prompt adaptation.
466
+ *
467
+ * Part of AdaptationRunResultsResponse. Contains the performance metrics and
468
+ * prompt configuration for your original prompt on the origin model. This serves
469
+ * as the baseline to compare against optimized prompts for target models.
470
+ *
471
+ * **Fields include:**
472
+ *
473
+ * - Original system prompt and user message template
474
+ * - Baseline performance score and evaluation metrics
475
+ * - Cost of running the baseline evaluation
476
+ * - Job status for the origin model evaluation
477
+ */
478
+ interface OriginModel {
479
+ cost: number | null;
480
+ evals: {
481
+ [key: string]: unknown;
482
+ } | null;
483
+ model_name: string | null;
484
+ score: number | null;
485
+ /**
486
+ * Status enum for asynchronous jobs (prompt adaptation, custom router training,
487
+ * etc.).
488
+ *
489
+ * Represents the current state of a long-running operation:
490
+ *
491
+ * - **created**: Job has been initialized but not yet queued
492
+ * - **queued**: Job is waiting in the queue to be processed
493
+ * - **processing**: Job is currently being executed
494
+ * - **completed**: Job finished successfully and results are available
495
+ * - **failed**: Job encountered an error and did not complete
496
+ */
497
+ result_status?: PromptAdaptationAPI.JobStatus | null;
498
+ /**
499
+ * Original system prompt used for the origin model
500
+ */
501
+ system_prompt?: string | null;
502
+ /**
503
+ * Original user message template used for the origin model
504
+ */
505
+ user_message_template?: string | null;
506
+ }
507
+ }
508
+ /**
509
+ * Response model for GET /v2/prompt/adaptStatus/{adaptation_run_id} endpoint.
510
+ *
511
+ * Returns the current status of an asynchronous prompt adaptation job. Poll this
512
+ * endpoint periodically to track progress. When status is 'completed', you can
513
+ * retrieve the optimized prompts using the /adaptResults endpoint.
514
+ *
515
+ * **Status values:**
516
+ *
517
+ * - **created**: Job has been initialized
518
+ * - **queued**: Waiting in queue (check queue_position for your place in line)
519
+ * - **processing**: Currently running optimization
520
+ * - **completed**: Finished successfully, results available via /adaptResults
521
+ * - **failed**: Encountered an error during processing
522
+ *
523
+ * **Polling recommendations:**
524
+ *
525
+ * - Poll every 30-60 seconds while status is incomplete
526
+ * - Stop polling once status is 'completed' or 'failed'
527
+ * - Adaptation typically takes 10-30 minutes total
528
+ */
529
+ export interface PromptAdaptationGetAdaptStatusResponse {
530
+ /**
531
+ * Unique identifier for this adaptation run. Use this to poll status and retrieve
532
+ * optimized prompts when complete
533
+ */
534
+ adaptation_run_id: string;
535
+ /**
536
+ * Current status of the adaptation run. Poll until this is 'completed' or 'failed'
537
+ */
538
+ status: JobStatus;
539
+ /**
540
+ * Position in queue when status is 'queued'. Lower numbers process sooner. Null
541
+ * when not queued
542
+ */
543
+ queue_position?: number | null;
544
+ }
545
+ /**
546
+ * Response model for GET /v2/prompt/adapt/{adaptation_run_id}/costs endpoint.
547
+ *
548
+ * Contains the total LLM costs and detailed usage records for a prompt adaptation
549
+ * run. Use this to track costs associated with optimizing prompts for different
550
+ * target models.
551
+ */
552
+ export interface PromptAdaptationGetCostsResponse {
553
+ /**
554
+ * Unique identifier for the adaptation run
555
+ */
556
+ adaptation_run_id: string;
557
+ /**
558
+ * Total cost in USD across all LLM requests in this adaptation run
559
+ */
560
+ total_cost: number;
561
+ /**
562
+ * Detailed usage records for each LLM request made during the adaptation
563
+ */
564
+ usage_records: Array<PromptAdaptationGetCostsResponse.UsageRecord>;
565
+ }
566
+ export declare namespace PromptAdaptationGetCostsResponse {
567
+ /**
568
+ * Individual LLM usage record with token counts and cost breakdown.
569
+ *
570
+ * Returned by GET /llm-usage endpoint and included in AdaptationRunCostResponse.
571
+ * Each record represents a single LLM API call with detailed usage metrics.
572
+ */
573
+ interface UsageRecord {
574
+ /**
575
+ * Unique identifier for this usage record
576
+ */
577
+ id: string;
578
+ /**
579
+ * Adaptation run ID this usage is associated with
580
+ */
581
+ adaptation_run_id: string;
582
+ /**
583
+ * Cost of input tokens in USD
584
+ */
585
+ input_cost: number;
586
+ /**
587
+ * Number of input tokens consumed
588
+ */
589
+ input_tokens: number;
590
+ /**
591
+ * Model name (e.g., 'gpt-4', 'claude-3-opus-20240229')
592
+ */
593
+ model: string;
594
+ /**
595
+ * Organization ID associated with the request
596
+ */
597
+ organization_id: string;
598
+ /**
599
+ * Cost of output tokens in USD
600
+ */
601
+ output_cost: number;
602
+ /**
603
+ * Number of output tokens generated
604
+ */
605
+ output_tokens: number;
606
+ /**
607
+ * LLM provider (e.g., 'openai', 'anthropic', 'google')
608
+ */
609
+ provider: string;
610
+ /**
611
+ * Type of task (e.g., 'optimization', 'evaluation')
612
+ */
613
+ task_type: string;
614
+ /**
615
+ * Unix timestamp when the request was made
616
+ */
617
+ timestamp: number;
618
+ /**
619
+ * Total cost (input + output) in USD
620
+ */
621
+ total_cost: number;
622
+ /**
623
+ * User ID who made the request
624
+ */
625
+ user_id: string;
626
+ }
627
+ }
628
+ export interface PromptAdaptationCreateParams {
629
+ /**
630
+ * List of field names that will be substituted into the template. Must match keys
631
+ * in golden records
632
+ */
633
+ fields: Array<string>;
634
+ /**
635
+ * System prompt to use with the origin model. This sets the context and role for
636
+ * the LLM
637
+ */
638
+ system_prompt: string;
639
+ /**
640
+ * List of models to adapt the prompt for. Maximum count depends on your
641
+ * subscription tier (Free: 1, Starter: 3, Startup: 5, Enterprise: 10)
642
+ */
643
+ target_models: Array<RequestProvider>;
644
+ /**
645
+ * User message template with placeholders for fields. Use curly braces for field
646
+ * substitution
647
+ */
648
+ template: string;
649
+ evaluation_config?: string | null;
650
+ evaluation_metric?: string | null;
651
+ /**
652
+ * Training examples (legacy parameter). Use train_goldens and test_goldens for
653
+ * better control. Minimum 25 examples
654
+ */
655
+ goldens?: Array<GoldenRecord> | null;
656
+ /**
657
+ * Model for specifying an LLM provider in API requests.
658
+ */
659
+ origin_model?: RequestProvider | null;
660
+ /**
661
+ * Optional baseline score for the origin model. If provided, can skip origin model
662
+ * evaluation
663
+ */
664
+ origin_model_evaluation_score?: number | null;
665
+ /**
666
+ * Test examples for evaluation. Required if train_goldens is provided. Used to
667
+ * measure final performance on held-out data
668
+ */
669
+ test_goldens?: Array<GoldenRecord> | null;
670
+ /**
671
+ * Training examples for prompt optimization. Minimum 25 examples required. Cannot
672
+ * be used with 'goldens' parameter
673
+ */
674
+ train_goldens?: Array<GoldenRecord> | null;
675
+ }
676
+ export declare namespace PromptAdaptation {
677
+ export { type GoldenRecord as GoldenRecord, type JobStatus as JobStatus, type RequestProvider as RequestProvider, type PromptAdaptationCreateResponse as PromptAdaptationCreateResponse, type PromptAdaptationGetAdaptResultsResponse as PromptAdaptationGetAdaptResultsResponse, type PromptAdaptationGetAdaptStatusResponse as PromptAdaptationGetAdaptStatusResponse, type PromptAdaptationGetCostsResponse as PromptAdaptationGetCostsResponse, type PromptAdaptationCreateParams as PromptAdaptationCreateParams, };
678
+ }
679
+ //# sourceMappingURL=prompt-adaptation.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-adaptation.d.mts","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+GG;IACH,MAAM,CACJ,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiEG;IACH,eAAe,CACb,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uCAAuC,CAAC;IAItD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,cAAc,CACZ,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sCAAsC,CAAC;IAIrD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,G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