llama-stack-client 0.0.35 → 0.1.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.
Files changed (490) hide show
  1. package/LICENSE +22 -201
  2. package/README.md +60 -26
  3. package/core.d.ts +7 -7
  4. package/core.d.ts.map +1 -1
  5. package/core.js +44 -19
  6. package/core.js.map +1 -1
  7. package/core.mjs +41 -17
  8. package/core.mjs.map +1 -1
  9. package/error.d.ts +18 -24
  10. package/error.d.ts.map +1 -1
  11. package/error.js +1 -31
  12. package/error.js.map +1 -1
  13. package/error.mjs +1 -31
  14. package/error.mjs.map +1 -1
  15. package/index.d.mts +106 -120
  16. package/index.d.ts +106 -120
  17. package/index.d.ts.map +1 -1
  18. package/index.js +100 -45
  19. package/index.js.map +1 -1
  20. package/index.mjs +84 -44
  21. package/index.mjs.map +1 -1
  22. package/internal/decoders/jsonl.d.ts +12 -0
  23. package/internal/decoders/jsonl.d.ts.map +1 -0
  24. package/internal/decoders/jsonl.js +35 -0
  25. package/internal/decoders/jsonl.js.map +1 -0
  26. package/internal/decoders/jsonl.mjs +31 -0
  27. package/internal/decoders/jsonl.mjs.map +1 -0
  28. package/internal/decoders/line.d.ts +20 -0
  29. package/internal/decoders/line.d.ts.map +1 -0
  30. package/internal/decoders/line.js +88 -0
  31. package/internal/decoders/line.js.map +1 -0
  32. package/internal/decoders/line.mjs +84 -0
  33. package/internal/decoders/line.mjs.map +1 -0
  34. package/internal/qs/formats.d.ts +6 -0
  35. package/internal/qs/formats.d.ts.map +1 -0
  36. package/internal/qs/formats.js +11 -0
  37. package/internal/qs/formats.js.map +1 -0
  38. package/internal/qs/formats.mjs +8 -0
  39. package/internal/qs/formats.mjs.map +1 -0
  40. package/internal/qs/index.d.ts +10 -0
  41. package/internal/qs/index.d.ts.map +1 -0
  42. package/internal/qs/index.js +14 -0
  43. package/internal/qs/index.js.map +1 -0
  44. package/internal/qs/index.mjs +10 -0
  45. package/internal/qs/index.mjs.map +1 -0
  46. package/internal/qs/stringify.d.ts +3 -0
  47. package/internal/qs/stringify.d.ts.map +1 -0
  48. package/internal/qs/stringify.js +280 -0
  49. package/internal/qs/stringify.js.map +1 -0
  50. package/internal/qs/stringify.mjs +276 -0
  51. package/internal/qs/stringify.mjs.map +1 -0
  52. package/internal/qs/types.d.ts +57 -0
  53. package/internal/qs/types.d.ts.map +1 -0
  54. package/internal/qs/types.js +3 -0
  55. package/internal/qs/types.js.map +1 -0
  56. package/internal/qs/types.mjs +2 -0
  57. package/internal/qs/types.mjs.map +1 -0
  58. package/internal/qs/utils.d.ts +14 -0
  59. package/internal/qs/utils.d.ts.map +1 -0
  60. package/internal/qs/utils.js +229 -0
  61. package/internal/qs/utils.js.map +1 -0
  62. package/internal/qs/utils.mjs +217 -0
  63. package/internal/qs/utils.mjs.map +1 -0
  64. package/internal/stream-utils.d.ts +8 -0
  65. package/internal/stream-utils.d.ts.map +1 -0
  66. package/internal/stream-utils.js +39 -0
  67. package/internal/stream-utils.js.map +1 -0
  68. package/internal/stream-utils.mjs +35 -0
  69. package/internal/stream-utils.mjs.map +1 -0
  70. package/package.json +8 -6
  71. package/resources/agents/agents.d.ts +31 -187
  72. package/resources/agents/agents.d.ts.map +1 -1
  73. package/resources/agents/agents.js +15 -32
  74. package/resources/agents/agents.js.map +1 -1
  75. package/resources/agents/agents.mjs +15 -32
  76. package/resources/agents/agents.mjs.map +1 -1
  77. package/resources/agents/index.d.ts +4 -4
  78. package/resources/agents/index.d.ts.map +1 -1
  79. package/resources/agents/index.js +7 -7
  80. package/resources/agents/index.js.map +1 -1
  81. package/resources/agents/index.mjs +3 -3
  82. package/resources/agents/index.mjs.map +1 -1
  83. package/resources/agents/session.d.ts +31 -0
  84. package/resources/agents/session.d.ts.map +1 -0
  85. package/resources/agents/session.js +25 -0
  86. package/resources/agents/session.js.map +1 -0
  87. package/resources/agents/session.mjs +21 -0
  88. package/resources/agents/session.mjs.map +1 -0
  89. package/resources/agents/steps.d.ts +3 -24
  90. package/resources/agents/steps.d.ts.map +1 -1
  91. package/resources/agents/steps.js +2 -14
  92. package/resources/agents/steps.js.map +1 -1
  93. package/resources/agents/steps.mjs +2 -14
  94. package/resources/agents/steps.mjs.map +1 -1
  95. package/resources/agents/turn.d.ts +199 -0
  96. package/resources/agents/turn.d.ts.map +1 -0
  97. package/resources/agents/turn.js +19 -0
  98. package/resources/agents/turn.js.map +1 -0
  99. package/resources/agents/turn.mjs +15 -0
  100. package/resources/agents/turn.mjs.map +1 -0
  101. package/resources/batch-inference.d.ts +23 -56
  102. package/resources/batch-inference.d.ts.map +1 -1
  103. package/resources/batch-inference.js +4 -26
  104. package/resources/batch-inference.js.map +1 -1
  105. package/resources/batch-inference.mjs +4 -26
  106. package/resources/batch-inference.mjs.map +1 -1
  107. package/resources/datasetio.d.ts +25 -0
  108. package/resources/datasetio.d.ts.map +1 -0
  109. package/resources/datasetio.js +19 -0
  110. package/resources/datasetio.js.map +1 -0
  111. package/resources/datasetio.mjs +15 -0
  112. package/resources/datasetio.mjs.map +1 -0
  113. package/resources/datasets.d.ts +34 -46
  114. package/resources/datasets.d.ts.map +1 -1
  115. package/resources/datasets.js +11 -35
  116. package/resources/datasets.js.map +1 -1
  117. package/resources/datasets.mjs +11 -35
  118. package/resources/datasets.mjs.map +1 -1
  119. package/resources/eval/eval.d.ts +62 -0
  120. package/resources/eval/eval.d.ts.map +1 -0
  121. package/resources/{inference/embeddings.js → eval/eval.js} +16 -20
  122. package/resources/eval/eval.js.map +1 -0
  123. package/resources/eval/eval.mjs +18 -0
  124. package/resources/eval/eval.mjs.map +1 -0
  125. package/resources/eval/index.d.ts +3 -0
  126. package/resources/eval/index.d.ts.map +1 -0
  127. package/resources/eval/index.js +9 -0
  128. package/resources/eval/index.js.map +1 -0
  129. package/resources/eval/index.mjs +4 -0
  130. package/resources/eval/index.mjs.map +1 -0
  131. package/resources/eval/jobs.d.ts +13 -0
  132. package/resources/eval/jobs.d.ts.map +1 -0
  133. package/resources/eval/jobs.js +21 -0
  134. package/resources/eval/jobs.js.map +1 -0
  135. package/resources/eval/jobs.mjs +17 -0
  136. package/resources/eval/jobs.mjs.map +1 -0
  137. package/resources/eval-tasks.d.ts +32 -0
  138. package/resources/eval-tasks.d.ts.map +1 -0
  139. package/resources/eval-tasks.js +22 -0
  140. package/resources/eval-tasks.js.map +1 -0
  141. package/resources/eval-tasks.mjs +18 -0
  142. package/resources/eval-tasks.mjs.map +1 -0
  143. package/resources/index.d.ts +23 -15
  144. package/resources/index.d.ts.map +1 -1
  145. package/resources/index.js +33 -17
  146. package/resources/index.js.map +1 -1
  147. package/resources/index.mjs +19 -11
  148. package/resources/index.mjs.map +1 -1
  149. package/resources/inference.d.ts +286 -0
  150. package/resources/inference.d.ts.map +1 -0
  151. package/resources/inference.js +29 -0
  152. package/resources/inference.js.map +1 -0
  153. package/resources/inference.mjs +25 -0
  154. package/resources/inference.mjs.map +1 -0
  155. package/resources/inspect.d.ts +26 -0
  156. package/resources/inspect.d.ts.map +1 -0
  157. package/resources/inspect.js +15 -0
  158. package/resources/inspect.js.map +1 -0
  159. package/resources/inspect.mjs +11 -0
  160. package/resources/inspect.mjs.map +1 -0
  161. package/resources/models.d.ts +21 -36
  162. package/resources/models.d.ts.map +1 -1
  163. package/resources/models.js +11 -27
  164. package/resources/models.js.map +1 -1
  165. package/resources/models.mjs +11 -27
  166. package/resources/models.mjs.map +1 -1
  167. package/resources/post-training/index.d.ts +2 -2
  168. package/resources/post-training/index.d.ts.map +1 -1
  169. package/resources/post-training/index.js +3 -3
  170. package/resources/post-training/index.js.map +1 -1
  171. package/resources/post-training/index.mjs +1 -1
  172. package/resources/post-training/index.mjs.map +1 -1
  173. package/resources/post-training/job.d.ts +47 -0
  174. package/resources/post-training/job.d.ts.map +1 -0
  175. package/resources/post-training/job.js +25 -0
  176. package/resources/post-training/job.js.map +1 -0
  177. package/resources/post-training/job.mjs +21 -0
  178. package/resources/post-training/job.mjs.map +1 -0
  179. package/resources/post-training/post-training.d.ts +95 -142
  180. package/resources/post-training/post-training.d.ts.map +1 -1
  181. package/resources/post-training/post-training.js +8 -29
  182. package/resources/post-training/post-training.js.map +1 -1
  183. package/resources/post-training/post-training.mjs +8 -29
  184. package/resources/post-training/post-training.mjs.map +1 -1
  185. package/resources/providers.d.ts +14 -0
  186. package/resources/providers.d.ts.map +1 -0
  187. package/resources/providers.js +12 -0
  188. package/resources/providers.js.map +1 -0
  189. package/resources/providers.mjs +8 -0
  190. package/resources/providers.mjs.map +1 -0
  191. package/resources/routes.d.ts +14 -0
  192. package/resources/routes.d.ts.map +1 -0
  193. package/resources/routes.js +12 -0
  194. package/resources/routes.js.map +1 -0
  195. package/resources/routes.mjs +8 -0
  196. package/resources/routes.mjs.map +1 -0
  197. package/resources/safety.d.ts +6 -29
  198. package/resources/safety.d.ts.map +1 -1
  199. package/resources/safety.js +2 -14
  200. package/resources/safety.js.map +1 -1
  201. package/resources/safety.mjs +2 -14
  202. package/resources/safety.mjs.map +1 -1
  203. package/resources/scoring-functions.d.ts +53 -0
  204. package/resources/scoring-functions.d.ts.map +1 -0
  205. package/resources/scoring-functions.js +22 -0
  206. package/resources/scoring-functions.js.map +1 -0
  207. package/resources/scoring-functions.mjs +18 -0
  208. package/resources/scoring-functions.mjs.map +1 -0
  209. package/resources/scoring.d.ts +28 -0
  210. package/resources/scoring.d.ts.map +1 -0
  211. package/resources/scoring.js +15 -0
  212. package/resources/scoring.js.map +1 -0
  213. package/resources/scoring.mjs +11 -0
  214. package/resources/scoring.mjs.map +1 -0
  215. package/resources/shared.d.ts +406 -14
  216. package/resources/shared.d.ts.map +1 -1
  217. package/resources/shields.d.ts +21 -32
  218. package/resources/shields.d.ts.map +1 -1
  219. package/resources/shields.js +7 -29
  220. package/resources/shields.js.map +1 -1
  221. package/resources/shields.mjs +7 -29
  222. package/resources/shields.mjs.map +1 -1
  223. package/resources/synthetic-data-generation.d.ts +12 -22
  224. package/resources/synthetic-data-generation.d.ts.map +1 -1
  225. package/resources/synthetic-data-generation.js +5 -17
  226. package/resources/synthetic-data-generation.js.map +1 -1
  227. package/resources/synthetic-data-generation.mjs +3 -15
  228. package/resources/synthetic-data-generation.mjs.map +1 -1
  229. package/resources/telemetry.d.ts +84 -35
  230. package/resources/telemetry.d.ts.map +1 -1
  231. package/resources/telemetry.js +29 -22
  232. package/resources/telemetry.js.map +1 -1
  233. package/resources/telemetry.mjs +29 -22
  234. package/resources/telemetry.mjs.map +1 -1
  235. package/resources/tool-runtime/index.d.ts +3 -0
  236. package/resources/tool-runtime/index.d.ts.map +1 -0
  237. package/resources/tool-runtime/index.js +9 -0
  238. package/resources/tool-runtime/index.js.map +1 -0
  239. package/resources/tool-runtime/index.mjs +4 -0
  240. package/resources/tool-runtime/index.mjs.map +1 -0
  241. package/resources/tool-runtime/rag-tool.d.ts +30 -0
  242. package/resources/tool-runtime/rag-tool.d.ts.map +1 -0
  243. package/resources/tool-runtime/rag-tool.js +25 -0
  244. package/resources/tool-runtime/rag-tool.js.map +1 -0
  245. package/resources/tool-runtime/rag-tool.mjs +21 -0
  246. package/resources/tool-runtime/rag-tool.mjs.map +1 -0
  247. package/resources/tool-runtime/tool-runtime.d.ts +51 -0
  248. package/resources/tool-runtime/tool-runtime.d.ts.map +1 -0
  249. package/resources/{evaluate/evaluate.js → tool-runtime/tool-runtime.js} +29 -18
  250. package/resources/tool-runtime/tool-runtime.js.map +1 -0
  251. package/resources/tool-runtime/tool-runtime.mjs +33 -0
  252. package/resources/tool-runtime/tool-runtime.mjs.map +1 -0
  253. package/resources/toolgroups.d.ts +40 -0
  254. package/resources/toolgroups.d.ts.map +1 -0
  255. package/resources/toolgroups.js +37 -0
  256. package/resources/toolgroups.js.map +1 -0
  257. package/resources/toolgroups.mjs +33 -0
  258. package/resources/toolgroups.mjs.map +1 -0
  259. package/resources/tools.d.ts +41 -0
  260. package/resources/tools.d.ts.map +1 -0
  261. package/resources/tools.js +19 -0
  262. package/resources/tools.js.map +1 -0
  263. package/resources/tools.mjs +15 -0
  264. package/resources/tools.mjs.map +1 -0
  265. package/resources/vector-dbs.d.ts +49 -0
  266. package/resources/vector-dbs.d.ts.map +1 -0
  267. package/resources/vector-dbs.js +24 -0
  268. package/resources/vector-dbs.js.map +1 -0
  269. package/resources/vector-dbs.mjs +20 -0
  270. package/resources/vector-dbs.mjs.map +1 -0
  271. package/resources/vector-io.d.ts +46 -0
  272. package/resources/vector-io.d.ts.map +1 -0
  273. package/resources/vector-io.js +19 -0
  274. package/resources/vector-io.js.map +1 -0
  275. package/resources/vector-io.mjs +15 -0
  276. package/resources/vector-io.mjs.map +1 -0
  277. package/src/core.ts +57 -27
  278. package/src/error.ts +25 -41
  279. package/src/index.ts +457 -153
  280. package/src/internal/decoders/jsonl.ts +41 -0
  281. package/src/internal/decoders/line.ts +114 -0
  282. package/src/internal/qs/LICENSE.md +13 -0
  283. package/src/internal/qs/README.md +3 -0
  284. package/src/internal/qs/formats.ts +9 -0
  285. package/src/internal/qs/index.ts +13 -0
  286. package/src/internal/qs/stringify.ts +388 -0
  287. package/src/internal/qs/types.ts +71 -0
  288. package/src/internal/qs/utils.ts +265 -0
  289. package/src/internal/stream-utils.ts +32 -0
  290. package/src/resources/agents/agents.ts +81 -299
  291. package/src/resources/agents/index.ts +24 -27
  292. package/src/resources/agents/session.ts +76 -0
  293. package/src/resources/agents/steps.ts +14 -40
  294. package/src/resources/agents/turn.ts +322 -0
  295. package/src/resources/batch-inference.ts +33 -84
  296. package/src/resources/datasetio.ts +53 -0
  297. package/src/resources/datasets.ts +70 -82
  298. package/src/resources/eval/eval.ts +107 -0
  299. package/src/resources/eval/index.ts +12 -0
  300. package/src/resources/eval/jobs.ts +36 -0
  301. package/src/resources/eval-tasks.ts +69 -0
  302. package/src/resources/index.ts +141 -65
  303. package/src/resources/inference.ts +395 -0
  304. package/src/resources/inspect.ts +47 -0
  305. package/src/resources/models.ts +46 -66
  306. package/src/resources/post-training/index.ts +14 -14
  307. package/src/resources/post-training/job.ts +96 -0
  308. package/src/resources/post-training/post-training.ts +151 -182
  309. package/src/resources/providers.ts +26 -0
  310. package/src/resources/routes.ts +23 -0
  311. package/src/resources/safety.ts +8 -47
  312. package/src/resources/scoring-functions.ts +108 -0
  313. package/src/resources/scoring.ts +52 -0
  314. package/src/resources/shared.ts +530 -14
  315. package/src/resources/shields.ts +40 -64
  316. package/src/resources/synthetic-data-generation.ts +17 -37
  317. package/src/resources/telemetry.ts +211 -65
  318. package/src/resources/tool-runtime/index.ts +10 -0
  319. package/src/resources/tool-runtime/rag-tool.ts +48 -0
  320. package/src/resources/tool-runtime/tool-runtime.ts +109 -0
  321. package/src/resources/toolgroups.ts +80 -0
  322. package/src/resources/tools.ts +81 -0
  323. package/src/resources/vector-dbs.ts +105 -0
  324. package/src/resources/vector-io.ts +74 -0
  325. package/src/streaming.ts +6 -148
  326. package/src/version.ts +1 -1
  327. package/streaming.d.ts +0 -7
  328. package/streaming.d.ts.map +1 -1
  329. package/streaming.js +8 -123
  330. package/streaming.js.map +1 -1
  331. package/streaming.mjs +4 -118
  332. package/streaming.mjs.map +1 -1
  333. package/version.d.ts +1 -1
  334. package/version.d.ts.map +1 -1
  335. package/version.js +1 -1
  336. package/version.js.map +1 -1
  337. package/version.mjs +1 -1
  338. package/version.mjs.map +1 -1
  339. package/resources/agents/sessions.d.ts +0 -76
  340. package/resources/agents/sessions.d.ts.map +0 -1
  341. package/resources/agents/sessions.js +0 -52
  342. package/resources/agents/sessions.js.map +0 -1
  343. package/resources/agents/sessions.mjs +0 -48
  344. package/resources/agents/sessions.mjs.map +0 -1
  345. package/resources/agents/turns.d.ts +0 -133
  346. package/resources/agents/turns.d.ts.map +0 -1
  347. package/resources/agents/turns.js +0 -38
  348. package/resources/agents/turns.js.map +0 -1
  349. package/resources/agents/turns.mjs +0 -34
  350. package/resources/agents/turns.mjs.map +0 -1
  351. package/resources/evaluate/evaluate.d.ts +0 -29
  352. package/resources/evaluate/evaluate.d.ts.map +0 -1
  353. package/resources/evaluate/evaluate.js.map +0 -1
  354. package/resources/evaluate/evaluate.mjs +0 -22
  355. package/resources/evaluate/evaluate.mjs.map +0 -1
  356. package/resources/evaluate/index.d.ts +0 -6
  357. package/resources/evaluate/index.d.ts.map +0 -1
  358. package/resources/evaluate/index.js +0 -15
  359. package/resources/evaluate/index.js.map +0 -1
  360. package/resources/evaluate/index.mjs +0 -7
  361. package/resources/evaluate/index.mjs.map +0 -1
  362. package/resources/evaluate/jobs/artifacts.d.ts +0 -22
  363. package/resources/evaluate/jobs/artifacts.d.ts.map +0 -1
  364. package/resources/evaluate/jobs/artifacts.js +0 -24
  365. package/resources/evaluate/jobs/artifacts.js.map +0 -1
  366. package/resources/evaluate/jobs/artifacts.mjs +0 -20
  367. package/resources/evaluate/jobs/artifacts.mjs.map +0 -1
  368. package/resources/evaluate/jobs/index.d.ts +0 -5
  369. package/resources/evaluate/jobs/index.d.ts.map +0 -1
  370. package/resources/evaluate/jobs/index.js +0 -13
  371. package/resources/evaluate/jobs/index.js.map +0 -1
  372. package/resources/evaluate/jobs/index.mjs +0 -6
  373. package/resources/evaluate/jobs/index.mjs.map +0 -1
  374. package/resources/evaluate/jobs/jobs.d.ts +0 -56
  375. package/resources/evaluate/jobs/jobs.d.ts.map +0 -1
  376. package/resources/evaluate/jobs/jobs.js +0 -76
  377. package/resources/evaluate/jobs/jobs.js.map +0 -1
  378. package/resources/evaluate/jobs/jobs.mjs +0 -49
  379. package/resources/evaluate/jobs/jobs.mjs.map +0 -1
  380. package/resources/evaluate/jobs/logs.d.ts +0 -22
  381. package/resources/evaluate/jobs/logs.d.ts.map +0 -1
  382. package/resources/evaluate/jobs/logs.js +0 -24
  383. package/resources/evaluate/jobs/logs.js.map +0 -1
  384. package/resources/evaluate/jobs/logs.mjs +0 -20
  385. package/resources/evaluate/jobs/logs.mjs.map +0 -1
  386. package/resources/evaluate/jobs/status.d.ts +0 -22
  387. package/resources/evaluate/jobs/status.d.ts.map +0 -1
  388. package/resources/evaluate/jobs/status.js +0 -24
  389. package/resources/evaluate/jobs/status.js.map +0 -1
  390. package/resources/evaluate/jobs/status.mjs +0 -20
  391. package/resources/evaluate/jobs/status.mjs.map +0 -1
  392. package/resources/evaluate/question-answering.d.ts +0 -22
  393. package/resources/evaluate/question-answering.d.ts.map +0 -1
  394. package/resources/evaluate/question-answering.js +0 -24
  395. package/resources/evaluate/question-answering.js.map +0 -1
  396. package/resources/evaluate/question-answering.mjs +0 -20
  397. package/resources/evaluate/question-answering.mjs.map +0 -1
  398. package/resources/evaluate/summarization.d.ts +0 -4
  399. package/resources/evaluate/summarization.d.ts.map +0 -1
  400. package/resources/evaluate/summarization.js +0 -9
  401. package/resources/evaluate/summarization.js.map +0 -1
  402. package/resources/evaluate/summarization.mjs +0 -5
  403. package/resources/evaluate/summarization.mjs.map +0 -1
  404. package/resources/evaluate/text-generation.d.ts +0 -4
  405. package/resources/evaluate/text-generation.d.ts.map +0 -1
  406. package/resources/evaluate/text-generation.js +0 -9
  407. package/resources/evaluate/text-generation.js.map +0 -1
  408. package/resources/evaluate/text-generation.mjs +0 -5
  409. package/resources/evaluate/text-generation.mjs.map +0 -1
  410. package/resources/evaluations.d.ts +0 -35
  411. package/resources/evaluations.d.ts.map +0 -1
  412. package/resources/evaluations.js +0 -37
  413. package/resources/evaluations.js.map +0 -1
  414. package/resources/evaluations.mjs +0 -33
  415. package/resources/evaluations.mjs.map +0 -1
  416. package/resources/inference/embeddings.d.ts +0 -29
  417. package/resources/inference/embeddings.d.ts.map +0 -1
  418. package/resources/inference/embeddings.js.map +0 -1
  419. package/resources/inference/embeddings.mjs +0 -22
  420. package/resources/inference/embeddings.mjs.map +0 -1
  421. package/resources/inference/index.d.ts +0 -3
  422. package/resources/inference/index.d.ts.map +0 -1
  423. package/resources/inference/index.js +0 -9
  424. package/resources/inference/index.js.map +0 -1
  425. package/resources/inference/index.mjs +0 -4
  426. package/resources/inference/index.mjs.map +0 -1
  427. package/resources/inference/inference.d.ts +0 -172
  428. package/resources/inference/inference.d.ts.map +0 -1
  429. package/resources/inference/inference.js +0 -67
  430. package/resources/inference/inference.js.map +0 -1
  431. package/resources/inference/inference.mjs +0 -40
  432. package/resources/inference/inference.mjs.map +0 -1
  433. package/resources/memory/documents.d.ts +0 -49
  434. package/resources/memory/documents.d.ts.map +0 -1
  435. package/resources/memory/documents.js +0 -39
  436. package/resources/memory/documents.js.map +0 -1
  437. package/resources/memory/documents.mjs +0 -35
  438. package/resources/memory/documents.mjs.map +0 -1
  439. package/resources/memory/index.d.ts +0 -3
  440. package/resources/memory/index.d.ts.map +0 -1
  441. package/resources/memory/index.js +0 -9
  442. package/resources/memory/index.js.map +0 -1
  443. package/resources/memory/index.mjs +0 -4
  444. package/resources/memory/index.mjs.map +0 -1
  445. package/resources/memory/memory.d.ts +0 -158
  446. package/resources/memory/memory.d.ts.map +0 -1
  447. package/resources/memory/memory.js +0 -137
  448. package/resources/memory/memory.js.map +0 -1
  449. package/resources/memory/memory.mjs +0 -110
  450. package/resources/memory/memory.mjs.map +0 -1
  451. package/resources/memory-banks.d.ts +0 -42
  452. package/resources/memory-banks.d.ts.map +0 -1
  453. package/resources/memory-banks.js +0 -40
  454. package/resources/memory-banks.js.map +0 -1
  455. package/resources/memory-banks.mjs +0 -36
  456. package/resources/memory-banks.mjs.map +0 -1
  457. package/resources/post-training/jobs.d.ts +0 -91
  458. package/resources/post-training/jobs.d.ts.map +0 -1
  459. package/resources/post-training/jobs.js +0 -80
  460. package/resources/post-training/jobs.js.map +0 -1
  461. package/resources/post-training/jobs.mjs +0 -76
  462. package/resources/post-training/jobs.mjs.map +0 -1
  463. package/resources/reward-scoring.d.ts +0 -47
  464. package/resources/reward-scoring.d.ts.map +0 -1
  465. package/resources/reward-scoring.js +0 -24
  466. package/resources/reward-scoring.js.map +0 -1
  467. package/resources/reward-scoring.mjs +0 -20
  468. package/resources/reward-scoring.mjs.map +0 -1
  469. package/src/resources/agents/sessions.ts +0 -135
  470. package/src/resources/agents/turns.ts +0 -231
  471. package/src/resources/evaluate/evaluate.ts +0 -35
  472. package/src/resources/evaluate/index.ts +0 -14
  473. package/src/resources/evaluate/jobs/artifacts.ts +0 -42
  474. package/src/resources/evaluate/jobs/index.ts +0 -13
  475. package/src/resources/evaluate/jobs/jobs.ts +0 -99
  476. package/src/resources/evaluate/jobs/logs.ts +0 -42
  477. package/src/resources/evaluate/jobs/status.ts +0 -42
  478. package/src/resources/evaluate/question-answering.ts +0 -42
  479. package/src/resources/evaluate/summarization.ts +0 -5
  480. package/src/resources/evaluate/text-generation.ts +0 -5
  481. package/src/resources/evaluations.ts +0 -73
  482. package/src/resources/inference/embeddings.ts +0 -48
  483. package/src/resources/inference/index.ts +0 -15
  484. package/src/resources/inference/inference.ts +0 -268
  485. package/src/resources/memory/documents.ts +0 -92
  486. package/src/resources/memory/index.ts +0 -23
  487. package/src/resources/memory/memory.ts +0 -297
  488. package/src/resources/memory-banks.ts +0 -84
  489. package/src/resources/post-training/jobs.ts +0 -192
  490. package/src/resources/reward-scoring.ts +0 -82
@@ -1 +1 @@
1
- {"version":3,"file":"safety.mjs","sourceRoot":"","sources":["../src/resources/safety.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC,SAAS,CAAC,MAA6B,EAAE,OAA6B;QACpE,MAAM,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACjF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE;gBACP,GAAG,CAAC,uBAAuB,IAAI,IAAI,CAAC,CAAC;oBACnC,EAAE,2BAA2B,EAAE,uBAAuB,EAAE;oBAC1D,CAAC,CAAC,SAAS,CAAC;gBACZ,GAAG,OAAO,EAAE,OAAO;aACpB;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAyCD,WAAiB,MAAM;AAGvB,CAAC,EAHgB,MAAM,KAAN,MAAM,QAGtB"}
1
+ {"version":3,"file":"safety.mjs","sourceRoot":"","sources":["../src/resources/safety.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC,SAAS,CAAC,IAA2B,EAAE,OAA6B;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF"}
@@ -0,0 +1,53 @@
1
+ import { APIResource } from "../resource.js";
2
+ import * as Core from "../core.js";
3
+ import * as Shared from "./shared.js";
4
+ export declare class ScoringFunctions extends APIResource {
5
+ retrieve(scoringFnId: string, options?: Core.RequestOptions): Core.APIPromise<ScoringFn | null>;
6
+ list(options?: Core.RequestOptions): Core.APIPromise<ScoringFunctionListResponse>;
7
+ register(body: ScoringFunctionRegisterParams, options?: Core.RequestOptions): Core.APIPromise<void>;
8
+ }
9
+ export interface ListScoringFunctionsResponse {
10
+ data: ScoringFunctionListResponse;
11
+ }
12
+ export interface ScoringFn {
13
+ identifier: string;
14
+ metadata: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
15
+ provider_id: string;
16
+ provider_resource_id: string;
17
+ return_type: Shared.ReturnType;
18
+ type: 'scoring_function';
19
+ description?: string;
20
+ params?: ScoringFnParams;
21
+ }
22
+ export type ScoringFnParams = ScoringFnParams.LlmAsJudgeScoringFnParams | ScoringFnParams.RegexParserScoringFnParams | ScoringFnParams.BasicScoringFnParams;
23
+ export declare namespace ScoringFnParams {
24
+ interface LlmAsJudgeScoringFnParams {
25
+ judge_model: string;
26
+ type: 'llm_as_judge';
27
+ aggregation_functions?: Array<'average' | 'median' | 'categorical_count' | 'accuracy'>;
28
+ judge_score_regexes?: Array<string>;
29
+ prompt_template?: string;
30
+ }
31
+ interface RegexParserScoringFnParams {
32
+ type: 'regex_parser';
33
+ aggregation_functions?: Array<'average' | 'median' | 'categorical_count' | 'accuracy'>;
34
+ parsing_regexes?: Array<string>;
35
+ }
36
+ interface BasicScoringFnParams {
37
+ type: 'basic';
38
+ aggregation_functions?: Array<'average' | 'median' | 'categorical_count' | 'accuracy'>;
39
+ }
40
+ }
41
+ export type ScoringFunctionListResponse = Array<ScoringFn>;
42
+ export interface ScoringFunctionRegisterParams {
43
+ description: string;
44
+ return_type: Shared.ReturnType;
45
+ scoring_fn_id: string;
46
+ params?: ScoringFnParams;
47
+ provider_id?: string;
48
+ provider_scoring_fn_id?: string;
49
+ }
50
+ export declare namespace ScoringFunctions {
51
+ export { type ListScoringFunctionsResponse as ListScoringFunctionsResponse, type ScoringFn as ScoringFn, type ScoringFnParams as ScoringFnParams, type ScoringFunctionListResponse as ScoringFunctionListResponse, type ScoringFunctionRegisterParams as ScoringFunctionRegisterParams, };
52
+ }
53
+ //# sourceMappingURL=scoring-functions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scoring-functions.d.ts","sourceRoot":"","sources":["../src/resources/scoring-functions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC;IAI/F,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAQjF,QAAQ,CAAC,IAAI,EAAE,6BAA6B,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAOpG;AAED,MAAM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U,CAAC,CAAC;KACxF;CACF;AAED,MAAM,MAAM,2BAA2B,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;AAE3D,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,MAAM,CAAC,UAAU,CAAC;IAE/B,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE,eAAe,CAAC;IAEzB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ScoringFunctions = void 0;
5
+ const resource_1 = require("../resource.js");
6
+ class ScoringFunctions extends resource_1.APIResource {
7
+ retrieve(scoringFnId, options) {
8
+ return this._client.get(`/v1/scoring-functions/${scoringFnId}`, options);
9
+ }
10
+ list(options) {
11
+ return this._client.get('/v1/scoring-functions', options)._thenUnwrap((obj) => obj.data);
12
+ }
13
+ register(body, options) {
14
+ return this._client.post('/v1/scoring-functions', {
15
+ body,
16
+ ...options,
17
+ headers: { Accept: '*/*', ...options?.headers },
18
+ });
19
+ }
20
+ }
21
+ exports.ScoringFunctions = ScoringFunctions;
22
+ //# sourceMappingURL=scoring-functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scoring-functions.js","sourceRoot":"","sources":["../src/resources/scoring-functions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAI1C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C,QAAQ,CAAC,WAAmB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED,IAAI,CAAC,OAA6B;QAChC,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAGlD,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,QAAQ,CAAC,IAAmC,EAAE,OAA6B;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE;YAChD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AApBD,4CAoBC"}
@@ -0,0 +1,18 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../resource.mjs";
3
+ export class ScoringFunctions extends APIResource {
4
+ retrieve(scoringFnId, options) {
5
+ return this._client.get(`/v1/scoring-functions/${scoringFnId}`, options);
6
+ }
7
+ list(options) {
8
+ return this._client.get('/v1/scoring-functions', options)._thenUnwrap((obj) => obj.data);
9
+ }
10
+ register(body, options) {
11
+ return this._client.post('/v1/scoring-functions', {
12
+ body,
13
+ ...options,
14
+ headers: { Accept: '*/*', ...options?.headers },
15
+ });
16
+ }
17
+ }
18
+ //# sourceMappingURL=scoring-functions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scoring-functions.mjs","sourceRoot":"","sources":["../src/resources/scoring-functions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C,QAAQ,CAAC,WAAmB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED,IAAI,CAAC,OAA6B;QAChC,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAGlD,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,QAAQ,CAAC,IAAmC,EAAE,OAA6B;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE;YAChD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,28 @@
1
+ import { APIResource } from "../resource.js";
2
+ import * as Core from "../core.js";
3
+ import * as ScoringFunctionsAPI from "./scoring-functions.js";
4
+ import * as Shared from "./shared.js";
5
+ export declare class Scoring extends APIResource {
6
+ score(body: ScoringScoreParams, options?: Core.RequestOptions): Core.APIPromise<ScoringScoreResponse>;
7
+ scoreBatch(body: ScoringScoreBatchParams, options?: Core.RequestOptions): Core.APIPromise<ScoringScoreBatchResponse>;
8
+ }
9
+ export interface ScoringScoreResponse {
10
+ results: Record<string, Shared.ScoringResult>;
11
+ }
12
+ export interface ScoringScoreBatchResponse {
13
+ results: Record<string, Shared.ScoringResult>;
14
+ dataset_id?: string;
15
+ }
16
+ export interface ScoringScoreParams {
17
+ input_rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
18
+ scoring_functions: Record<string, ScoringFunctionsAPI.ScoringFnParams | null>;
19
+ }
20
+ export interface ScoringScoreBatchParams {
21
+ dataset_id: string;
22
+ save_results_dataset: boolean;
23
+ scoring_functions: Record<string, ScoringFunctionsAPI.ScoringFnParams | null>;
24
+ }
25
+ export declare namespace Scoring {
26
+ export { type ScoringScoreResponse as ScoringScoreResponse, type ScoringScoreBatchResponse as ScoringScoreBatchResponse, type ScoringScoreParams as ScoringScoreParams, type ScoringScoreBatchParams as ScoringScoreBatchParams, };
27
+ }
28
+ //# sourceMappingURL=scoring.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scoring.d.ts","sourceRoot":"","sources":["../src/resources/scoring.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,mBAAmB,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,qBAAa,OAAQ,SAAQ,WAAW;IACtC,KAAK,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAIrG,UAAU,CACR,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC;CAG9C;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;IAE9C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;IAE/F,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;CAC/E;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IAEnB,oBAAoB,EAAE,OAAO,CAAC;IAE9B,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;CAC/E;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Scoring = void 0;
5
+ const resource_1 = require("../resource.js");
6
+ class Scoring extends resource_1.APIResource {
7
+ score(body, options) {
8
+ return this._client.post('/v1/scoring/score', { body, ...options });
9
+ }
10
+ scoreBatch(body, options) {
11
+ return this._client.post('/v1/scoring/score-batch', { body, ...options });
12
+ }
13
+ }
14
+ exports.Scoring = Scoring;
15
+ //# sourceMappingURL=scoring.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scoring.js","sourceRoot":"","sources":["../src/resources/scoring.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAK1C,MAAa,OAAQ,SAAQ,sBAAW;IACtC,KAAK,CAAC,IAAwB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,UAAU,CACR,IAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAXD,0BAWC"}
@@ -0,0 +1,11 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../resource.mjs";
3
+ export class Scoring extends APIResource {
4
+ score(body, options) {
5
+ return this._client.post('/v1/scoring/score', { body, ...options });
6
+ }
7
+ scoreBatch(body, options) {
8
+ return this._client.post('/v1/scoring/score-batch', { body, ...options });
9
+ }
10
+ }
11
+ //# sourceMappingURL=scoring.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scoring.mjs","sourceRoot":"","sources":["../src/resources/scoring.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC,KAAK,CAAC,IAAwB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,UAAU,CACR,IAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
@@ -1,26 +1,381 @@
1
- export interface Attachment {
2
- content: string | Array<string>;
3
- mime_type: string;
1
+ import * as Shared from "./shared.js";
2
+ import * as InferenceAPI from "./inference.js";
3
+ import * as ToolRuntimeAPI from "./tool-runtime/tool-runtime.js";
4
+ export interface AgentConfig {
5
+ enable_session_persistence: boolean;
6
+ instructions: string;
7
+ max_infer_iters: number;
8
+ model: string;
9
+ client_tools?: Array<ToolRuntimeAPI.ToolDef>;
10
+ input_shields?: Array<string>;
11
+ output_shields?: Array<string>;
12
+ /**
13
+ * Configuration for JSON schema-guided response generation.
14
+ */
15
+ response_format?: ResponseFormat;
16
+ sampling_params?: SamplingParams;
17
+ /**
18
+ * Whether tool use is required or automatic. This is a hint to the model which may
19
+ * not be followed. It depends on the Instruction Following capabilities of the
20
+ * model.
21
+ */
22
+ tool_choice?: 'auto' | 'required';
23
+ /**
24
+ * Prompt format for calling custom / zero shot tools.
25
+ */
26
+ tool_prompt_format?: 'json' | 'function_tag' | 'python_list';
27
+ toolgroups?: Array<string | AgentConfig.UnionMember1>;
28
+ }
29
+ export declare namespace AgentConfig {
30
+ interface UnionMember1 {
31
+ args: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
32
+ name: string;
33
+ }
4
34
  }
5
35
  export interface BatchCompletion {
6
- completion_message_batch: Array<CompletionMessage>;
36
+ batch: Array<InferenceAPI.CompletionResponse>;
37
+ }
38
+ /**
39
+ * Response from a chat completion request.
40
+ */
41
+ export interface ChatCompletionResponse {
42
+ /**
43
+ * The complete response message
44
+ */
45
+ completion_message: CompletionMessage;
46
+ /**
47
+ * Optional log probabilities for generated tokens
48
+ */
49
+ logprobs?: Array<InferenceAPI.TokenLogProbs>;
7
50
  }
51
+ /**
52
+ * A message containing the model's (assistant) response in a chat conversation.
53
+ */
8
54
  export interface CompletionMessage {
9
- content: string | Array<string>;
55
+ /**
56
+ * The content of the model's response
57
+ */
58
+ content: InterleavedContent;
59
+ /**
60
+ * Must be "assistant" to identify this as the model's response
61
+ */
10
62
  role: 'assistant';
63
+ /**
64
+ * Reason why the model stopped generating. Options are: -
65
+ * `StopReason.end_of_turn`: The model finished generating the entire response. -
66
+ * `StopReason.end_of_message`: The model finished generating but generated a
67
+ * partial response -- usually, a tool call. The user may call the tool and
68
+ * continue the conversation with the tool's response. -
69
+ * `StopReason.out_of_tokens`: The model ran out of token budget.
70
+ */
11
71
  stop_reason: 'end_of_turn' | 'end_of_message' | 'out_of_tokens';
72
+ /**
73
+ * List of tool calls. Each tool call is a ToolCall object.
74
+ */
12
75
  tool_calls: Array<ToolCall>;
13
76
  }
77
+ export type ContentDelta = ContentDelta.TextDelta | ContentDelta.ImageDelta | ContentDelta.ToolCallDelta;
78
+ export declare namespace ContentDelta {
79
+ interface TextDelta {
80
+ text: string;
81
+ type: 'text';
82
+ }
83
+ interface ImageDelta {
84
+ image: string;
85
+ type: 'image';
86
+ }
87
+ interface ToolCallDelta {
88
+ parse_status: 'started' | 'in_progress' | 'failed' | 'succeeded';
89
+ tool_call: string | Shared.ToolCall;
90
+ type: 'tool_call';
91
+ }
92
+ }
93
+ export interface Document {
94
+ /**
95
+ * A image content item
96
+ */
97
+ content: string | Document.ImageContentItem | Document.TextContentItem | Array<InterleavedContentItem> | URL;
98
+ document_id: string;
99
+ metadata: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
100
+ mime_type?: string;
101
+ }
102
+ export declare namespace Document {
103
+ /**
104
+ * A image content item
105
+ */
106
+ interface ImageContentItem {
107
+ /**
108
+ * Image as a base64 encoded string or an URL
109
+ */
110
+ image: ImageContentItem.Image;
111
+ /**
112
+ * Discriminator type of the content item. Always "image"
113
+ */
114
+ type: 'image';
115
+ }
116
+ namespace ImageContentItem {
117
+ /**
118
+ * Image as a base64 encoded string or an URL
119
+ */
120
+ interface Image {
121
+ /**
122
+ * base64 encoded image data as string
123
+ */
124
+ data?: string;
125
+ /**
126
+ * A URL of the image or data URL in the format of data:image/{type};base64,{data}.
127
+ * Note that URL could have length limits.
128
+ */
129
+ url?: Shared.URL;
130
+ }
131
+ }
132
+ /**
133
+ * A text content item
134
+ */
135
+ interface TextContentItem {
136
+ /**
137
+ * Text content
138
+ */
139
+ text: string;
140
+ /**
141
+ * Discriminator type of the content item. Always "text"
142
+ */
143
+ type: 'text';
144
+ }
145
+ }
146
+ /**
147
+ * A image content item
148
+ */
149
+ export type InterleavedContent = string | InterleavedContent.ImageContentItem | InterleavedContent.TextContentItem | Array<InterleavedContentItem>;
150
+ export declare namespace InterleavedContent {
151
+ /**
152
+ * A image content item
153
+ */
154
+ interface ImageContentItem {
155
+ /**
156
+ * Image as a base64 encoded string or an URL
157
+ */
158
+ image: ImageContentItem.Image;
159
+ /**
160
+ * Discriminator type of the content item. Always "image"
161
+ */
162
+ type: 'image';
163
+ }
164
+ namespace ImageContentItem {
165
+ /**
166
+ * Image as a base64 encoded string or an URL
167
+ */
168
+ interface Image {
169
+ /**
170
+ * base64 encoded image data as string
171
+ */
172
+ data?: string;
173
+ /**
174
+ * A URL of the image or data URL in the format of data:image/{type};base64,{data}.
175
+ * Note that URL could have length limits.
176
+ */
177
+ url?: Shared.URL;
178
+ }
179
+ }
180
+ /**
181
+ * A text content item
182
+ */
183
+ interface TextContentItem {
184
+ /**
185
+ * Text content
186
+ */
187
+ text: string;
188
+ /**
189
+ * Discriminator type of the content item. Always "text"
190
+ */
191
+ type: 'text';
192
+ }
193
+ }
194
+ /**
195
+ * A image content item
196
+ */
197
+ export type InterleavedContentItem = InterleavedContentItem.ImageContentItem | InterleavedContentItem.TextContentItem;
198
+ export declare namespace InterleavedContentItem {
199
+ /**
200
+ * A image content item
201
+ */
202
+ interface ImageContentItem {
203
+ /**
204
+ * Image as a base64 encoded string or an URL
205
+ */
206
+ image: ImageContentItem.Image;
207
+ /**
208
+ * Discriminator type of the content item. Always "image"
209
+ */
210
+ type: 'image';
211
+ }
212
+ namespace ImageContentItem {
213
+ /**
214
+ * Image as a base64 encoded string or an URL
215
+ */
216
+ interface Image {
217
+ /**
218
+ * base64 encoded image data as string
219
+ */
220
+ data?: string;
221
+ /**
222
+ * A URL of the image or data URL in the format of data:image/{type};base64,{data}.
223
+ * Note that URL could have length limits.
224
+ */
225
+ url?: Shared.URL;
226
+ }
227
+ }
228
+ /**
229
+ * A text content item
230
+ */
231
+ interface TextContentItem {
232
+ /**
233
+ * Text content
234
+ */
235
+ text: string;
236
+ /**
237
+ * Discriminator type of the content item. Always "text"
238
+ */
239
+ type: 'text';
240
+ }
241
+ }
242
+ /**
243
+ * A message from the user in a chat conversation.
244
+ */
245
+ export type Message = UserMessage | SystemMessage | ToolResponseMessage | CompletionMessage;
246
+ export type ParamType = ParamType.StringType | ParamType.NumberType | ParamType.BooleanType | ParamType.ArrayType | ParamType.ObjectType | ParamType.JsonType | ParamType.UnionType | ParamType.ChatCompletionInputType | ParamType.CompletionInputType | ParamType.AgentTurnInputType;
247
+ export declare namespace ParamType {
248
+ interface StringType {
249
+ type: 'string';
250
+ }
251
+ interface NumberType {
252
+ type: 'number';
253
+ }
254
+ interface BooleanType {
255
+ type: 'boolean';
256
+ }
257
+ interface ArrayType {
258
+ type: 'array';
259
+ }
260
+ interface ObjectType {
261
+ type: 'object';
262
+ }
263
+ interface JsonType {
264
+ type: 'json';
265
+ }
266
+ interface UnionType {
267
+ type: 'union';
268
+ }
269
+ interface ChatCompletionInputType {
270
+ type: 'chat_completion_input';
271
+ }
272
+ interface CompletionInputType {
273
+ type: 'completion_input';
274
+ }
275
+ interface AgentTurnInputType {
276
+ type: 'agent_turn_input';
277
+ }
278
+ }
279
+ export interface QueryConfig {
280
+ max_chunks: number;
281
+ max_tokens_in_context: number;
282
+ query_generator_config: QueryGeneratorConfig;
283
+ }
284
+ export type QueryGeneratorConfig = QueryGeneratorConfig.DefaultRagQueryGeneratorConfig | QueryGeneratorConfig.LlmragQueryGeneratorConfig;
285
+ export declare namespace QueryGeneratorConfig {
286
+ interface DefaultRagQueryGeneratorConfig {
287
+ separator: string;
288
+ type: 'default';
289
+ }
290
+ interface LlmragQueryGeneratorConfig {
291
+ model: string;
292
+ template: string;
293
+ type: 'llm';
294
+ }
295
+ }
296
+ export interface QueryResult {
297
+ /**
298
+ * A image content item
299
+ */
300
+ content?: InterleavedContent;
301
+ }
302
+ /**
303
+ * Configuration for JSON schema-guided response generation.
304
+ */
305
+ export type ResponseFormat = ResponseFormat.JsonSchemaResponseFormat | ResponseFormat.GrammarResponseFormat;
306
+ export declare namespace ResponseFormat {
307
+ /**
308
+ * Configuration for JSON schema-guided response generation.
309
+ */
310
+ interface JsonSchemaResponseFormat {
311
+ /**
312
+ * The JSON schema the response should conform to. In a Python SDK, this is often a
313
+ * `pydantic` model.
314
+ */
315
+ json_schema: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
316
+ /**
317
+ * Must be "json_schema" to identify this format type
318
+ */
319
+ type: 'json_schema';
320
+ }
321
+ /**
322
+ * Configuration for grammar-guided response generation.
323
+ */
324
+ interface GrammarResponseFormat {
325
+ /**
326
+ * The BNF grammar specification the response should conform to
327
+ */
328
+ bnf: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
329
+ /**
330
+ * Must be "grammar" to identify this format type
331
+ */
332
+ type: 'grammar';
333
+ }
334
+ }
335
+ export interface ReturnType {
336
+ type: 'string' | 'number' | 'boolean' | 'array' | 'object' | 'json' | 'union' | 'chat_completion_input' | 'completion_input' | 'agent_turn_input';
337
+ }
338
+ export interface SafetyViolation {
339
+ metadata: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
340
+ violation_level: 'info' | 'warn' | 'error';
341
+ user_message?: string;
342
+ }
14
343
  export interface SamplingParams {
15
- strategy: 'greedy' | 'top_p' | 'top_k';
344
+ strategy: SamplingParams.GreedySamplingStrategy | SamplingParams.TopPSamplingStrategy | SamplingParams.TopKSamplingStrategy;
16
345
  max_tokens?: number;
17
346
  repetition_penalty?: number;
18
- temperature?: number;
19
- top_k?: number;
20
- top_p?: number;
21
347
  }
348
+ export declare namespace SamplingParams {
349
+ interface GreedySamplingStrategy {
350
+ type: 'greedy';
351
+ }
352
+ interface TopPSamplingStrategy {
353
+ type: 'top_p';
354
+ temperature?: number;
355
+ top_p?: number;
356
+ }
357
+ interface TopKSamplingStrategy {
358
+ top_k: number;
359
+ type: 'top_k';
360
+ }
361
+ }
362
+ export interface ScoringResult {
363
+ aggregated_results: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
364
+ score_rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
365
+ }
366
+ /**
367
+ * A system message providing instructions or context to the model.
368
+ */
22
369
  export interface SystemMessage {
23
- content: string | Array<string>;
370
+ /**
371
+ * The content of the "system prompt". If multiple system messages are provided,
372
+ * they are concatenated. The underlying Llama Stack code may also add other system
373
+ * messages (for example, for formatting tool definitions).
374
+ */
375
+ content: InterleavedContent;
376
+ /**
377
+ * Must be "system" to identify this as a system message
378
+ */
24
379
  role: 'system';
25
380
  }
26
381
  export interface ToolCall {
@@ -28,15 +383,52 @@ export interface ToolCall {
28
383
  call_id: string;
29
384
  tool_name: 'brave_search' | 'wolfram_alpha' | 'photogen' | 'code_interpreter' | (string & {});
30
385
  }
386
+ export interface ToolParamDefinition {
387
+ param_type: string;
388
+ default?: boolean | number | string | Array<unknown> | unknown | null;
389
+ description?: string;
390
+ required?: boolean;
391
+ }
392
+ /**
393
+ * A message representing the result of a tool invocation.
394
+ */
31
395
  export interface ToolResponseMessage {
396
+ /**
397
+ * Unique identifier for the tool call this response is for
398
+ */
32
399
  call_id: string;
33
- content: string | Array<string>;
34
- role: 'ipython';
400
+ /**
401
+ * The response content from the tool
402
+ */
403
+ content: InterleavedContent;
404
+ /**
405
+ * Must be "tool" to identify this as a tool response
406
+ */
407
+ role: 'tool';
408
+ /**
409
+ * Name of the tool that was called
410
+ */
35
411
  tool_name: 'brave_search' | 'wolfram_alpha' | 'photogen' | 'code_interpreter' | (string & {});
36
412
  }
413
+ export interface URL {
414
+ uri: string;
415
+ }
416
+ /**
417
+ * A message from the user in a chat conversation.
418
+ */
37
419
  export interface UserMessage {
38
- content: string | Array<string>;
420
+ /**
421
+ * The content of the message, which can include text and other media
422
+ */
423
+ content: InterleavedContent;
424
+ /**
425
+ * Must be "user" to identify this as a user message
426
+ */
39
427
  role: 'user';
40
- context?: string | Array<string>;
428
+ /**
429
+ * (Optional) This field is used internally by Llama Stack to pass RAG context.
430
+ * This field may be removed in the API in the future.
431
+ */
432
+ context?: InterleavedContent;
41
433
  }
42
434
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names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