llama-stack-client 0.3.4-rc3 → 0.4.0-rc1

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 (573) hide show
  1. package/CHANGELOG.md +153 -0
  2. package/README.md +19 -21
  3. package/error.d.ts.map +1 -1
  4. package/error.js +1 -0
  5. package/error.js.map +1 -1
  6. package/error.mjs.map +1 -1
  7. package/index.d.mts +23 -50
  8. package/index.d.ts +23 -50
  9. package/index.d.ts.map +1 -1
  10. package/index.js +20 -29
  11. package/index.js.map +1 -1
  12. package/index.mjs +18 -28
  13. package/index.mjs.map +1 -1
  14. package/lib/response-helpers.d.ts +23 -0
  15. package/lib/response-helpers.d.ts.map +1 -0
  16. package/lib/response-helpers.js +53 -0
  17. package/lib/response-helpers.js.map +1 -0
  18. package/lib/response-helpers.mjs +49 -0
  19. package/lib/response-helpers.mjs.map +1 -0
  20. package/package.json +1 -1
  21. package/pagination.d.ts.map +1 -1
  22. package/pagination.js +2 -4
  23. package/pagination.js.map +1 -1
  24. package/pagination.mjs +1 -4
  25. package/pagination.mjs.map +1 -1
  26. package/resource.d.ts.map +1 -1
  27. package/resource.js.map +1 -1
  28. package/resource.mjs.map +1 -1
  29. package/resources/alpha/alpha.d.ts +22 -0
  30. package/resources/alpha/alpha.d.ts.map +1 -0
  31. package/resources/alpha/alpha.js +57 -0
  32. package/resources/alpha/alpha.js.map +1 -0
  33. package/resources/alpha/alpha.mjs +30 -0
  34. package/resources/alpha/alpha.mjs.map +1 -0
  35. package/resources/{benchmarks.d.ts → alpha/benchmarks.d.ts} +25 -35
  36. package/resources/alpha/benchmarks.d.ts.map +1 -0
  37. package/resources/{benchmarks.js → alpha/benchmarks.js} +18 -4
  38. package/resources/alpha/benchmarks.js.map +1 -0
  39. package/resources/alpha/benchmarks.mjs +44 -0
  40. package/resources/alpha/benchmarks.mjs.map +1 -0
  41. package/resources/alpha/eval/eval.d.ts +160 -0
  42. package/resources/alpha/eval/eval.d.ts.map +1 -0
  43. package/resources/{eval → alpha/eval}/eval.js +7 -6
  44. package/resources/alpha/eval/eval.js.map +1 -0
  45. package/resources/{eval → alpha/eval}/eval.mjs +7 -5
  46. package/resources/alpha/eval/eval.mjs.map +1 -0
  47. package/resources/alpha/eval/index.d.ts +3 -0
  48. package/resources/alpha/eval/index.d.ts.map +1 -0
  49. package/resources/{eval → alpha/eval}/index.js +2 -1
  50. package/resources/alpha/eval/index.js.map +1 -0
  51. package/resources/{eval → alpha/eval}/index.mjs +2 -0
  52. package/resources/alpha/eval/index.mjs.map +1 -0
  53. package/resources/{eval → alpha/eval}/jobs.d.ts +2 -2
  54. package/resources/alpha/eval/jobs.d.ts.map +1 -0
  55. package/resources/{eval → alpha/eval}/jobs.js +6 -5
  56. package/resources/alpha/eval/jobs.js.map +1 -0
  57. package/resources/{eval → alpha/eval}/jobs.mjs +6 -4
  58. package/resources/alpha/eval/jobs.mjs.map +1 -0
  59. package/resources/alpha/eval.d.ts.map +1 -0
  60. package/resources/{eval.js → alpha/eval.js} +1 -0
  61. package/resources/alpha/eval.js.map +1 -0
  62. package/resources/alpha/eval.mjs.map +1 -0
  63. package/resources/alpha/index.d.ts +6 -0
  64. package/resources/alpha/index.d.ts.map +1 -0
  65. package/resources/alpha/index.js +21 -0
  66. package/resources/alpha/index.js.map +1 -0
  67. package/resources/alpha/index.mjs +13 -0
  68. package/resources/alpha/index.mjs.map +1 -0
  69. package/resources/alpha/inference.d.ts +85 -0
  70. package/resources/alpha/inference.d.ts.map +1 -0
  71. package/resources/{agents/steps.js → alpha/inference.js} +9 -8
  72. package/resources/alpha/inference.js.map +1 -0
  73. package/resources/alpha/inference.mjs +17 -0
  74. package/resources/alpha/inference.mjs.map +1 -0
  75. package/resources/alpha/post-training/index.d.ts +3 -0
  76. package/resources/alpha/post-training/index.d.ts.map +1 -0
  77. package/resources/{post-training → alpha/post-training}/index.js +2 -1
  78. package/resources/alpha/post-training/index.js.map +1 -0
  79. package/resources/{post-training → alpha/post-training}/index.mjs +2 -0
  80. package/resources/alpha/post-training/index.mjs.map +1 -0
  81. package/resources/alpha/post-training/job.d.ts +116 -0
  82. package/resources/alpha/post-training/job.d.ts.map +1 -0
  83. package/resources/{post-training → alpha/post-training}/job.js +7 -6
  84. package/resources/alpha/post-training/job.js.map +1 -0
  85. package/resources/{post-training → alpha/post-training}/job.mjs +7 -5
  86. package/resources/alpha/post-training/job.mjs.map +1 -0
  87. package/resources/alpha/post-training/post-training.d.ts +242 -0
  88. package/resources/alpha/post-training/post-training.d.ts.map +1 -0
  89. package/resources/{post-training → alpha/post-training}/post-training.js +5 -4
  90. package/resources/alpha/post-training/post-training.js.map +1 -0
  91. package/resources/{post-training → alpha/post-training}/post-training.mjs +5 -3
  92. package/resources/alpha/post-training/post-training.mjs.map +1 -0
  93. package/resources/alpha/post-training.d.ts.map +1 -0
  94. package/resources/{post-training.js → alpha/post-training.js} +2 -1
  95. package/resources/alpha/post-training.js.map +1 -0
  96. package/resources/{post-training.mjs → alpha/post-training.mjs} +2 -0
  97. package/resources/alpha/post-training.mjs.map +1 -0
  98. package/resources/alpha.d.ts +2 -0
  99. package/resources/alpha.d.ts.map +1 -0
  100. package/resources/alpha.js +25 -0
  101. package/resources/alpha.js.map +1 -0
  102. package/resources/alpha.mjs +9 -0
  103. package/resources/alpha.mjs.map +1 -0
  104. package/resources/batches.d.ts +322 -0
  105. package/resources/batches.d.ts.map +1 -0
  106. package/resources/batches.js +45 -0
  107. package/resources/batches.js.map +1 -0
  108. package/resources/batches.mjs +40 -0
  109. package/resources/batches.mjs.map +1 -0
  110. package/resources/beta/beta.d.ts +10 -0
  111. package/resources/beta/beta.d.ts.map +1 -0
  112. package/resources/{tool-runtime/tool-runtime.js → beta/beta.js} +10 -22
  113. package/resources/beta/beta.js.map +1 -0
  114. package/resources/beta/beta.mjs +18 -0
  115. package/resources/beta/beta.mjs.map +1 -0
  116. package/resources/beta/datasets.d.ts +257 -0
  117. package/resources/beta/datasets.d.ts.map +1 -0
  118. package/resources/{datasets.js → beta/datasets.js} +14 -9
  119. package/resources/beta/datasets.js.map +1 -0
  120. package/resources/{datasets.mjs → beta/datasets.mjs} +14 -8
  121. package/resources/beta/datasets.mjs.map +1 -0
  122. package/resources/beta/index.d.ts +3 -0
  123. package/resources/beta/index.d.ts.map +1 -0
  124. package/resources/beta/index.js +15 -0
  125. package/resources/beta/index.js.map +1 -0
  126. package/resources/beta/index.mjs +10 -0
  127. package/resources/beta/index.mjs.map +1 -0
  128. package/resources/beta.d.ts +2 -0
  129. package/resources/beta.d.ts.map +1 -0
  130. package/resources/{agents.js → beta.js} +4 -3
  131. package/resources/beta.js.map +1 -0
  132. package/resources/beta.mjs +9 -0
  133. package/resources/beta.mjs.map +1 -0
  134. package/resources/chat/chat.d.ts +73 -78
  135. package/resources/chat/chat.d.ts.map +1 -1
  136. package/resources/chat/chat.js +2 -2
  137. package/resources/chat/chat.js.map +1 -1
  138. package/resources/chat/chat.mjs +3 -2
  139. package/resources/chat/chat.mjs.map +1 -1
  140. package/resources/chat/completions.d.ts +756 -1402
  141. package/resources/chat/completions.d.ts.map +1 -1
  142. package/resources/chat/completions.js +8 -14
  143. package/resources/chat/completions.js.map +1 -1
  144. package/resources/chat/completions.mjs +7 -11
  145. package/resources/chat/completions.mjs.map +1 -1
  146. package/resources/chat/index.d.ts +1 -1
  147. package/resources/chat/index.d.ts.map +1 -1
  148. package/resources/chat/index.js +3 -3
  149. package/resources/chat/index.js.map +1 -1
  150. package/resources/chat/index.mjs +3 -1
  151. package/resources/chat/index.mjs.map +1 -1
  152. package/resources/chat.js +2 -1
  153. package/resources/chat.js.map +1 -1
  154. package/resources/chat.mjs +2 -0
  155. package/resources/chat.mjs.map +1 -1
  156. package/resources/completions.d.ts +52 -95
  157. package/resources/completions.d.ts.map +1 -1
  158. package/resources/completions.js +3 -6
  159. package/resources/completions.js.map +1 -1
  160. package/resources/completions.mjs +3 -5
  161. package/resources/completions.mjs.map +1 -1
  162. package/resources/conversations/conversations.d.ts +292 -0
  163. package/resources/conversations/conversations.d.ts.map +1 -0
  164. package/resources/conversations/conversations.js +78 -0
  165. package/resources/conversations/conversations.js.map +1 -0
  166. package/resources/conversations/conversations.mjs +51 -0
  167. package/resources/conversations/conversations.mjs.map +1 -0
  168. package/resources/conversations/index.d.ts +3 -0
  169. package/resources/conversations/index.d.ts.map +1 -0
  170. package/resources/conversations/index.js +16 -0
  171. package/resources/conversations/index.js.map +1 -0
  172. package/resources/conversations/index.mjs +10 -0
  173. package/resources/conversations/index.mjs.map +1 -0
  174. package/resources/conversations/items.d.ts +762 -0
  175. package/resources/conversations/items.d.ts.map +1 -0
  176. package/resources/conversations/items.js +51 -0
  177. package/resources/conversations/items.js.map +1 -0
  178. package/resources/conversations/items.mjs +46 -0
  179. package/resources/conversations/items.mjs.map +1 -0
  180. package/resources/conversations.d.ts +2 -0
  181. package/resources/conversations.d.ts.map +1 -0
  182. package/resources/conversations.js +25 -0
  183. package/resources/conversations.js.map +1 -0
  184. package/resources/conversations.mjs +9 -0
  185. package/resources/conversations.mjs.map +1 -0
  186. package/resources/embeddings.d.ts +10 -52
  187. package/resources/embeddings.d.ts.map +1 -1
  188. package/resources/embeddings.js +5 -2
  189. package/resources/embeddings.js.map +1 -1
  190. package/resources/embeddings.mjs +5 -1
  191. package/resources/embeddings.mjs.map +1 -1
  192. package/resources/files.d.ts +44 -54
  193. package/resources/files.d.ts.map +1 -1
  194. package/resources/files.js +18 -9
  195. package/resources/files.js.map +1 -1
  196. package/resources/files.mjs +18 -8
  197. package/resources/files.mjs.map +1 -1
  198. package/resources/index.d.ts +9 -13
  199. package/resources/index.d.ts.map +1 -1
  200. package/resources/index.js +15 -21
  201. package/resources/index.js.map +1 -1
  202. package/resources/index.mjs +9 -11
  203. package/resources/index.mjs.map +1 -1
  204. package/resources/inspect.d.ts +6 -32
  205. package/resources/inspect.d.ts.map +1 -1
  206. package/resources/inspect.js +6 -1
  207. package/resources/inspect.js.map +1 -1
  208. package/resources/inspect.mjs +6 -0
  209. package/resources/inspect.mjs.map +1 -1
  210. package/resources/models/index.d.ts +2 -2
  211. package/resources/models/index.d.ts.map +1 -1
  212. package/resources/models/index.js +2 -1
  213. package/resources/models/index.js.map +1 -1
  214. package/resources/models/index.mjs +2 -0
  215. package/resources/models/index.mjs.map +1 -1
  216. package/resources/models/models.d.ts +71 -31
  217. package/resources/models/models.d.ts.map +1 -1
  218. package/resources/models/models.js +13 -2
  219. package/resources/models/models.js.map +1 -1
  220. package/resources/models/models.mjs +13 -1
  221. package/resources/models/models.mjs.map +1 -1
  222. package/resources/models/openai.d.ts +2 -16
  223. package/resources/models/openai.d.ts.map +1 -1
  224. package/resources/models/openai.js +3 -2
  225. package/resources/models/openai.js.map +1 -1
  226. package/resources/models/openai.mjs +3 -1
  227. package/resources/models/openai.mjs.map +1 -1
  228. package/resources/models.js +2 -1
  229. package/resources/models.js.map +1 -1
  230. package/resources/models.mjs +2 -0
  231. package/resources/models.mjs.map +1 -1
  232. package/resources/moderations.d.ts +9 -35
  233. package/resources/moderations.d.ts.map +1 -1
  234. package/resources/moderations.js +5 -2
  235. package/resources/moderations.js.map +1 -1
  236. package/resources/moderations.mjs +5 -1
  237. package/resources/moderations.mjs.map +1 -1
  238. package/resources/prompts/index.d.ts +3 -0
  239. package/resources/prompts/index.d.ts.map +1 -0
  240. package/resources/prompts/index.js +15 -0
  241. package/resources/prompts/index.js.map +1 -0
  242. package/resources/prompts/index.mjs +10 -0
  243. package/resources/prompts/index.mjs.map +1 -0
  244. package/resources/prompts/prompts.d.ts +96 -0
  245. package/resources/prompts/prompts.d.ts.map +1 -0
  246. package/resources/{agents/agents.js → prompts/prompts.js} +43 -30
  247. package/resources/prompts/prompts.js.map +1 -0
  248. package/resources/prompts/prompts.mjs +66 -0
  249. package/resources/prompts/prompts.mjs.map +1 -0
  250. package/resources/prompts/versions.d.ts +12 -0
  251. package/resources/prompts/versions.d.ts.map +1 -0
  252. package/resources/prompts/versions.js +23 -0
  253. package/resources/prompts/versions.js.map +1 -0
  254. package/resources/prompts/versions.mjs +19 -0
  255. package/resources/prompts/versions.mjs.map +1 -0
  256. package/resources/prompts.d.ts +2 -0
  257. package/resources/prompts.d.ts.map +1 -0
  258. package/resources/prompts.js +25 -0
  259. package/resources/prompts.js.map +1 -0
  260. package/resources/prompts.mjs +9 -0
  261. package/resources/prompts.mjs.map +1 -0
  262. package/resources/providers.d.ts +4 -6
  263. package/resources/providers.d.ts.map +1 -1
  264. package/resources/providers.js +6 -1
  265. package/resources/providers.js.map +1 -1
  266. package/resources/providers.mjs +6 -0
  267. package/resources/providers.mjs.map +1 -1
  268. package/resources/responses/index.js +2 -1
  269. package/resources/responses/index.js.map +1 -1
  270. package/resources/responses/index.mjs +2 -0
  271. package/resources/responses/index.mjs.map +1 -1
  272. package/resources/responses/input-items.d.ts +190 -151
  273. package/resources/responses/input-items.d.ts.map +1 -1
  274. package/resources/responses/input-items.js +3 -2
  275. package/resources/responses/input-items.js.map +1 -1
  276. package/resources/responses/input-items.mjs +3 -1
  277. package/resources/responses/input-items.mjs.map +1 -1
  278. package/resources/responses/responses.d.ts +1387 -1449
  279. package/resources/responses/responses.d.ts.map +1 -1
  280. package/resources/responses/responses.js +8 -11
  281. package/resources/responses/responses.js.map +1 -1
  282. package/resources/responses/responses.mjs +8 -10
  283. package/resources/responses/responses.mjs.map +1 -1
  284. package/resources/responses.js +2 -1
  285. package/resources/responses.js.map +1 -1
  286. package/resources/responses.mjs +2 -0
  287. package/resources/responses.mjs.map +1 -1
  288. package/resources/routes.d.ts +7 -7
  289. package/resources/routes.d.ts.map +1 -1
  290. package/resources/routes.js +8 -6
  291. package/resources/routes.js.map +1 -1
  292. package/resources/routes.mjs +8 -5
  293. package/resources/routes.mjs.map +1 -1
  294. package/resources/safety.d.ts +144 -10
  295. package/resources/safety.d.ts.map +1 -1
  296. package/resources/safety.js +4 -1
  297. package/resources/safety.js.map +1 -1
  298. package/resources/safety.mjs +4 -0
  299. package/resources/safety.mjs.map +1 -1
  300. package/resources/scoring-functions.d.ts +120 -50
  301. package/resources/scoring-functions.d.ts.map +1 -1
  302. package/resources/scoring-functions.js +15 -1
  303. package/resources/scoring-functions.js.map +1 -1
  304. package/resources/scoring-functions.mjs +15 -0
  305. package/resources/scoring-functions.mjs.map +1 -1
  306. package/resources/scoring.d.ts +85 -26
  307. package/resources/scoring.d.ts.map +1 -1
  308. package/resources/scoring.js +2 -1
  309. package/resources/scoring.js.map +1 -1
  310. package/resources/scoring.mjs +2 -0
  311. package/resources/scoring.mjs.map +1 -1
  312. package/resources/shared.d.ts +125 -629
  313. package/resources/shared.d.ts.map +1 -1
  314. package/resources/shared.js +2 -0
  315. package/resources/shared.js.map +1 -1
  316. package/resources/shared.mjs +2 -0
  317. package/resources/shared.mjs.map +1 -1
  318. package/resources/shields.d.ts +19 -24
  319. package/resources/shields.d.ts.map +1 -1
  320. package/resources/shields.js +6 -1
  321. package/resources/shields.js.map +1 -1
  322. package/resources/shields.mjs +6 -0
  323. package/resources/shields.mjs.map +1 -1
  324. package/resources/tool-runtime.d.ts +151 -1
  325. package/resources/tool-runtime.d.ts.map +1 -1
  326. package/resources/tool-runtime.js +22 -16
  327. package/resources/tool-runtime.js.map +1 -1
  328. package/resources/tool-runtime.mjs +20 -1
  329. package/resources/tool-runtime.mjs.map +1 -1
  330. package/resources/toolgroups.d.ts +27 -37
  331. package/resources/toolgroups.d.ts.map +1 -1
  332. package/resources/toolgroups.js +10 -1
  333. package/resources/toolgroups.js.map +1 -1
  334. package/resources/toolgroups.mjs +10 -0
  335. package/resources/toolgroups.mjs.map +1 -1
  336. package/resources/tools.d.ts +9 -76
  337. package/resources/tools.d.ts.map +1 -1
  338. package/resources/tools.js +4 -1
  339. package/resources/tools.js.map +1 -1
  340. package/resources/tools.mjs +4 -0
  341. package/resources/tools.mjs.map +1 -1
  342. package/resources/vector-io.d.ts +272 -148
  343. package/resources/vector-io.d.ts.map +1 -1
  344. package/resources/vector-io.js +2 -1
  345. package/resources/vector-io.js.map +1 -1
  346. package/resources/vector-io.mjs +2 -0
  347. package/resources/vector-io.mjs.map +1 -1
  348. package/resources/vector-stores/file-batches.d.ts +111 -0
  349. package/resources/vector-stores/file-batches.d.ts.map +1 -0
  350. package/resources/vector-stores/file-batches.js +45 -0
  351. package/resources/vector-stores/file-batches.js.map +1 -0
  352. package/resources/vector-stores/file-batches.mjs +41 -0
  353. package/resources/vector-stores/file-batches.mjs.map +1 -0
  354. package/resources/vector-stores/files.d.ts +83 -135
  355. package/resources/vector-stores/files.d.ts.map +1 -1
  356. package/resources/vector-stores/files.js +15 -14
  357. package/resources/vector-stores/files.js.map +1 -1
  358. package/resources/vector-stores/files.mjs +15 -13
  359. package/resources/vector-stores/files.mjs.map +1 -1
  360. package/resources/vector-stores/index.d.ts +2 -1
  361. package/resources/vector-stores/index.d.ts.map +1 -1
  362. package/resources/vector-stores/index.js +5 -2
  363. package/resources/vector-stores/index.js.map +1 -1
  364. package/resources/vector-stores/index.mjs +3 -0
  365. package/resources/vector-stores/index.mjs.map +1 -1
  366. package/resources/vector-stores/vector-stores.d.ts +118 -217
  367. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  368. package/resources/vector-stores/vector-stores.js +18 -12
  369. package/resources/vector-stores/vector-stores.js.map +1 -1
  370. package/resources/vector-stores/vector-stores.mjs +18 -11
  371. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  372. package/resources/vector-stores.js +2 -1
  373. package/resources/vector-stores.js.map +1 -1
  374. package/resources/vector-stores.mjs +2 -0
  375. package/resources/vector-stores.mjs.map +1 -1
  376. package/src/error.ts +1 -0
  377. package/src/index.ts +82 -252
  378. package/src/lib/response-helpers.ts +60 -0
  379. package/src/pagination.ts +2 -5
  380. package/src/resource.ts +1 -0
  381. package/src/resources/alpha/alpha.ts +85 -0
  382. package/src/resources/{benchmarks.ts → alpha/benchmarks.ts} +36 -37
  383. package/src/resources/{eval → alpha/eval}/eval.ts +83 -65
  384. package/src/resources/{eval → alpha/eval}/index.ts +1 -2
  385. package/src/resources/{eval → alpha/eval}/jobs.ts +6 -6
  386. package/src/resources/{eval.ts → alpha/eval.ts} +1 -0
  387. package/src/resources/alpha/index.ts +34 -0
  388. package/src/resources/alpha/inference.ts +132 -0
  389. package/src/resources/{post-training → alpha/post-training}/index.ts +2 -2
  390. package/src/resources/alpha/post-training/job.ts +182 -0
  391. package/src/resources/alpha/post-training/post-training.ts +369 -0
  392. package/src/resources/{post-training.ts → alpha/post-training.ts} +1 -1
  393. package/src/resources/alpha.ts +9 -0
  394. package/src/resources/batches.ts +572 -0
  395. package/src/resources/beta/beta.ts +41 -0
  396. package/src/resources/beta/datasets.ts +350 -0
  397. package/src/resources/beta/index.ts +20 -0
  398. package/src/resources/{agents.ts → beta.ts} +2 -2
  399. package/src/resources/chat/chat.ts +82 -81
  400. package/src/resources/chat/completions.ts +874 -1484
  401. package/src/resources/chat/index.ts +1 -2
  402. package/src/resources/chat.ts +1 -1
  403. package/src/resources/completions.ts +57 -101
  404. package/src/resources/conversations/conversations.ts +455 -0
  405. package/src/resources/conversations/index.ts +25 -0
  406. package/src/resources/conversations/items.ts +1221 -0
  407. package/src/resources/conversations.ts +9 -0
  408. package/src/resources/embeddings.ts +14 -55
  409. package/src/resources/files.ts +54 -61
  410. package/src/resources/index.ts +33 -109
  411. package/src/resources/inspect.ts +7 -33
  412. package/src/resources/models/index.ts +4 -2
  413. package/src/resources/models/models.ts +79 -30
  414. package/src/resources/models/openai.ts +4 -24
  415. package/src/resources/models.ts +1 -1
  416. package/src/resources/moderations.ts +10 -36
  417. package/src/resources/prompts/index.ts +19 -0
  418. package/src/resources/prompts/prompts.ts +171 -0
  419. package/src/resources/prompts/versions.ts +26 -0
  420. package/src/resources/prompts.ts +9 -0
  421. package/src/resources/providers.ts +5 -7
  422. package/src/resources/responses/index.ts +1 -1
  423. package/src/resources/responses/input-items.ts +293 -161
  424. package/src/resources/responses/responses.ts +2112 -1632
  425. package/src/resources/responses.ts +1 -1
  426. package/src/resources/routes.ts +25 -10
  427. package/src/resources/safety.ts +199 -9
  428. package/src/resources/scoring-functions.ts +168 -52
  429. package/src/resources/scoring.ts +125 -22
  430. package/src/resources/shared.ts +141 -714
  431. package/src/resources/shields.ts +18 -23
  432. package/src/resources/tool-runtime.ts +210 -2
  433. package/src/resources/toolgroups.ts +26 -36
  434. package/src/resources/tools.ts +10 -94
  435. package/src/resources/vector-io.ts +323 -145
  436. package/src/resources/vector-stores/file-batches.ts +201 -0
  437. package/src/resources/vector-stores/files.ts +123 -143
  438. package/src/resources/vector-stores/index.ts +9 -1
  439. package/src/resources/vector-stores/vector-stores.ts +150 -216
  440. package/src/resources/vector-stores.ts +1 -1
  441. package/src/version.ts +1 -1
  442. package/version.d.ts +1 -1
  443. package/version.js +1 -1
  444. package/version.mjs +1 -1
  445. package/resources/agents/agents.d.ts +0 -246
  446. package/resources/agents/agents.d.ts.map +0 -1
  447. package/resources/agents/agents.js.map +0 -1
  448. package/resources/agents/agents.mjs +0 -52
  449. package/resources/agents/agents.mjs.map +0 -1
  450. package/resources/agents/index.d.ts +0 -5
  451. package/resources/agents/index.d.ts.map +0 -1
  452. package/resources/agents/index.js +0 -18
  453. package/resources/agents/index.js.map +0 -1
  454. package/resources/agents/index.mjs +0 -10
  455. package/resources/agents/index.mjs.map +0 -1
  456. package/resources/agents/session.d.ts +0 -98
  457. package/resources/agents/session.d.ts.map +0 -1
  458. package/resources/agents/session.js +0 -42
  459. package/resources/agents/session.js.map +0 -1
  460. package/resources/agents/session.mjs +0 -37
  461. package/resources/agents/session.mjs.map +0 -1
  462. package/resources/agents/steps.d.ts +0 -22
  463. package/resources/agents/steps.d.ts.map +0 -1
  464. package/resources/agents/steps.js.map +0 -1
  465. package/resources/agents/steps.mjs +0 -15
  466. package/resources/agents/steps.mjs.map +0 -1
  467. package/resources/agents/turn.d.ts +0 -461
  468. package/resources/agents/turn.d.ts.map +0 -1
  469. package/resources/agents/turn.js +0 -34
  470. package/resources/agents/turn.js.map +0 -1
  471. package/resources/agents/turn.mjs +0 -29
  472. package/resources/agents/turn.mjs.map +0 -1
  473. package/resources/agents.d.ts +0 -2
  474. package/resources/agents.d.ts.map +0 -1
  475. package/resources/agents.js.map +0 -1
  476. package/resources/agents.mjs +0 -7
  477. package/resources/agents.mjs.map +0 -1
  478. package/resources/benchmarks.d.ts.map +0 -1
  479. package/resources/benchmarks.js.map +0 -1
  480. package/resources/benchmarks.mjs +0 -31
  481. package/resources/benchmarks.mjs.map +0 -1
  482. package/resources/datasets.d.ts +0 -320
  483. package/resources/datasets.d.ts.map +0 -1
  484. package/resources/datasets.js.map +0 -1
  485. package/resources/datasets.mjs.map +0 -1
  486. package/resources/eval/eval.d.ts +0 -159
  487. package/resources/eval/eval.d.ts.map +0 -1
  488. package/resources/eval/eval.js.map +0 -1
  489. package/resources/eval/eval.mjs.map +0 -1
  490. package/resources/eval/index.d.ts +0 -3
  491. package/resources/eval/index.d.ts.map +0 -1
  492. package/resources/eval/index.js.map +0 -1
  493. package/resources/eval/index.mjs.map +0 -1
  494. package/resources/eval/jobs.d.ts.map +0 -1
  495. package/resources/eval/jobs.js.map +0 -1
  496. package/resources/eval/jobs.mjs.map +0 -1
  497. package/resources/eval.d.ts.map +0 -1
  498. package/resources/eval.js.map +0 -1
  499. package/resources/eval.mjs.map +0 -1
  500. package/resources/inference.d.ts +0 -580
  501. package/resources/inference.d.ts.map +0 -1
  502. package/resources/inference.js +0 -54
  503. package/resources/inference.js.map +0 -1
  504. package/resources/inference.mjs +0 -49
  505. package/resources/inference.mjs.map +0 -1
  506. package/resources/post-training/index.d.ts +0 -3
  507. package/resources/post-training/index.d.ts.map +0 -1
  508. package/resources/post-training/index.js.map +0 -1
  509. package/resources/post-training/index.mjs.map +0 -1
  510. package/resources/post-training/job.d.ts +0 -205
  511. package/resources/post-training/job.d.ts.map +0 -1
  512. package/resources/post-training/job.js.map +0 -1
  513. package/resources/post-training/job.mjs.map +0 -1
  514. package/resources/post-training/post-training.d.ts +0 -402
  515. package/resources/post-training/post-training.d.ts.map +0 -1
  516. package/resources/post-training/post-training.js.map +0 -1
  517. package/resources/post-training/post-training.mjs.map +0 -1
  518. package/resources/post-training.d.ts.map +0 -1
  519. package/resources/post-training.js.map +0 -1
  520. package/resources/post-training.mjs.map +0 -1
  521. package/resources/synthetic-data-generation.d.ts +0 -47
  522. package/resources/synthetic-data-generation.d.ts.map +0 -1
  523. package/resources/synthetic-data-generation.js +0 -20
  524. package/resources/synthetic-data-generation.js.map +0 -1
  525. package/resources/synthetic-data-generation.mjs +0 -15
  526. package/resources/synthetic-data-generation.mjs.map +0 -1
  527. package/resources/telemetry.d.ts +0 -519
  528. package/resources/telemetry.d.ts.map +0 -1
  529. package/resources/telemetry.js +0 -70
  530. package/resources/telemetry.js.map +0 -1
  531. package/resources/telemetry.mjs +0 -65
  532. package/resources/telemetry.mjs.map +0 -1
  533. package/resources/tool-runtime/index.d.ts +0 -3
  534. package/resources/tool-runtime/index.d.ts.map +0 -1
  535. package/resources/tool-runtime/index.js +0 -14
  536. package/resources/tool-runtime/index.js.map +0 -1
  537. package/resources/tool-runtime/index.mjs +0 -8
  538. package/resources/tool-runtime/index.mjs.map +0 -1
  539. package/resources/tool-runtime/rag-tool.d.ts +0 -45
  540. package/resources/tool-runtime/rag-tool.d.ts.map +0 -1
  541. package/resources/tool-runtime/rag-tool.js +0 -30
  542. package/resources/tool-runtime/rag-tool.js.map +0 -1
  543. package/resources/tool-runtime/rag-tool.mjs +0 -25
  544. package/resources/tool-runtime/rag-tool.mjs.map +0 -1
  545. package/resources/tool-runtime/tool-runtime.d.ts +0 -132
  546. package/resources/tool-runtime/tool-runtime.d.ts.map +0 -1
  547. package/resources/tool-runtime/tool-runtime.js.map +0 -1
  548. package/resources/tool-runtime/tool-runtime.mjs +0 -29
  549. package/resources/tool-runtime/tool-runtime.mjs.map +0 -1
  550. package/resources/vector-dbs.d.ts +0 -128
  551. package/resources/vector-dbs.d.ts.map +0 -1
  552. package/resources/vector-dbs.js +0 -41
  553. package/resources/vector-dbs.js.map +0 -1
  554. package/resources/vector-dbs.mjs +0 -36
  555. package/resources/vector-dbs.mjs.map +0 -1
  556. package/src/resources/agents/agents.ts +0 -372
  557. package/src/resources/agents/index.ts +0 -44
  558. package/src/resources/agents/session.ts +0 -169
  559. package/src/resources/agents/steps.ts +0 -47
  560. package/src/resources/agents/turn.ts +0 -638
  561. package/src/resources/datasets.ts +0 -413
  562. package/src/resources/inference.ts +0 -768
  563. package/src/resources/post-training/job.ts +0 -274
  564. package/src/resources/post-training/post-training.ts +0 -516
  565. package/src/resources/synthetic-data-generation.ts +0 -65
  566. package/src/resources/telemetry.ts +0 -692
  567. package/src/resources/tool-runtime/index.ts +0 -17
  568. package/src/resources/tool-runtime/rag-tool.ts +0 -69
  569. package/src/resources/tool-runtime/tool-runtime.ts +0 -191
  570. package/src/resources/vector-dbs.ts +0 -191
  571. /package/resources/{eval.d.ts → alpha/eval.d.ts} +0 -0
  572. /package/resources/{eval.mjs → alpha/eval.mjs} +0 -0
  573. /package/resources/{post-training.d.ts → alpha/post-training.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,158 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0-alpha.7 (2025-12-03)
4
+
5
+ Full Changelog: [v0.4.0-alpha.6...v0.4.0-alpha.7](https://github.com/llamastack/llama-stack-client-typescript/compare/v0.4.0-alpha.6...v0.4.0-alpha.7)
6
+
7
+ ### ⚠ BREAKING CHANGES
8
+
9
+ * replace output_text property with getResponseOutputText helper ([#48](https://github.com/llamastack/llama-stack-client-typescript/issues/48))
10
+
11
+ ### Features
12
+
13
+ * add `output_text` property on Response object ([#42](https://github.com/llamastack/llama-stack-client-typescript/issues/42)) ([bced728](https://github.com/llamastack/llama-stack-client-typescript/commit/bced72805f3314f41d03f5d60502204a4e41ee07))
14
+ * add integration tests CI workflow ([#49](https://github.com/llamastack/llama-stack-client-typescript/issues/49)) ([5675ef1](https://github.com/llamastack/llama-stack-client-typescript/commit/5675ef11021ac703ce4fc967544c812030d05361))
15
+ * Add metadata field to request and response ([fdf65b2](https://github.com/llamastack/llama-stack-client-typescript/commit/fdf65b2cd70b350cf3f821ca01e3bf6190440565))
16
+ * **api:** deprecate `toolgroup` and `tool_runtime` apis ([3f75ac5](https://github.com/llamastack/llama-stack-client-typescript/commit/3f75ac506692b7706c978f11b5d4d6e012fd7357))
17
+ * Implement FastAPI router system ([ea26c3e](https://github.com/llamastack/llama-stack-client-typescript/commit/ea26c3e2a340985f2dacf6df86070dbf71d93749))
18
+ * replace output_text property with getResponseOutputText helper ([#48](https://github.com/llamastack/llama-stack-client-typescript/issues/48)) ([53e799e](https://github.com/llamastack/llama-stack-client-typescript/commit/53e799edd1da5fa1566610f83a3f4e5722e46d2c))
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * add test for the exported symbol ([e78b187](https://github.com/llamastack/llama-stack-client-typescript/commit/e78b18756b539acf37a37402c3afb44f97460545))
24
+ * **client:** fix issue with duplicate definitions in Go ([48d4f16](https://github.com/llamastack/llama-stack-client-typescript/commit/48d4f166d3ba438a2b4a9fec3e98d958ea8f035b))
25
+ * Pydantic validation error with list-type metadata in vector search ([#3797](https://github.com/llamastack/llama-stack-client-typescript/issues/3797)) ([e1c40d2](https://github.com/llamastack/llama-stack-client-typescript/commit/e1c40d2a3d6a3abb52f38108f231a9e6bec074ce))
26
+
27
+ ## 0.4.0-alpha.6 (2025-11-18)
28
+
29
+ Full Changelog: [v0.4.0-alpha.5...v0.4.0-alpha.6](https://github.com/llamastack/llama-stack-client-typescript/compare/v0.4.0-alpha.5...v0.4.0-alpha.6)
30
+
31
+ ### Features
32
+
33
+ * Wire through parallel_tool_calls to Responses API ([3b91f14](https://github.com/llamastack/llama-stack-client-typescript/commit/3b91f14e0d40ecffd5f7b0bd55600995f934c616))
34
+
35
+ ## 0.4.0-alpha.5 (2025-11-17)
36
+
37
+ Full Changelog: [v0.4.0-alpha.4...v0.4.0-alpha.5](https://github.com/llamastack/llama-stack-client-typescript/compare/v0.4.0-alpha.4...v0.4.0-alpha.5)
38
+
39
+ ### Bug Fixes
40
+
41
+ * **openapi:** restore embedded request wrappers ([b5604d7](https://github.com/llamastack/llama-stack-client-typescript/commit/b5604d767ace04d82c60c600401d72fa497e68b0))
42
+
43
+ ## 0.4.0-alpha.4 (2025-11-14)
44
+
45
+ Full Changelog: [v0.4.0-alpha.3...v0.4.0-alpha.4](https://github.com/llamastack/llama-stack-client-typescript/compare/v0.4.0-alpha.3...v0.4.0-alpha.4)
46
+
47
+ ### Bug Fixes
48
+
49
+ * **ci:** release doctor workflow had a typo ([c2417e3](https://github.com/llamastack/llama-stack-client-typescript/commit/c2417e399a0c8f14dc3f29c2682d7889d6149069))
50
+
51
+
52
+ ### Chores
53
+
54
+ * use Pydantic to generate OpenAPI schema ([264cd8d](https://github.com/llamastack/llama-stack-client-typescript/commit/264cd8dd9dbba40fb55ef07462c664eb1de7f526))
55
+
56
+ ## 0.4.0-alpha.3 (2025-11-14)
57
+
58
+ Full Changelog: [v0.4.0-alpha.2...v0.4.0-alpha.3](https://github.com/llamastack/llama-stack-client-typescript/compare/v0.4.0-alpha.2...v0.4.0-alpha.3)
59
+
60
+ ### Bug Fixes
61
+
62
+ * MCP authorization parameter implementation ([a5dd454](https://github.com/llamastack/llama-stack-client-typescript/commit/a5dd454c5f2cb64532e642c415ef40eb1001dcd8))
63
+
64
+ ## 0.4.0-alpha.2 (2025-11-13)
65
+
66
+ Full Changelog: [v0.4.0-alpha.1...v0.4.0-alpha.2](https://github.com/llamastack/llama-stack-client-typescript/compare/v0.4.0-alpha.1...v0.4.0-alpha.2)
67
+
68
+ ### Features
69
+
70
+ * add new API filter for all non-deprecated APIs ([b6aeeaf](https://github.com/llamastack/llama-stack-client-typescript/commit/b6aeeaf8de2ec76928f2b52b027b563924cae7af))
71
+ * Adding option to return embeddings and metadata from `/vector_stores/*/files/*/content` and UI updates ([f599d5e](https://github.com/llamastack/llama-stack-client-typescript/commit/f599d5e0cb24af85afaf698ab132e35980094b30))
72
+ * **api:** point models.list() to /v1/openai/v1/models ([bb35776](https://github.com/llamastack/llama-stack-client-typescript/commit/bb35776ec613b3045cf3b3f62e5361d9403fa2a8))
73
+ * **api:** remove agents types ([69aff21](https://github.com/llamastack/llama-stack-client-typescript/commit/69aff218b3c3765a1a6beab4ade48a7096a9082b))
74
+ * **api:** remove openai/v1 endpoints ([96b206c](https://github.com/llamastack/llama-stack-client-typescript/commit/96b206cd531391fe3d0323a276eb342b70a568de))
75
+ * Implement the 'max_tool_calls' parameter for the Responses API ([a9ec6fb](https://github.com/llamastack/llama-stack-client-typescript/commit/a9ec6fb8fea3b839f30a03d2fb61efbfe4c6b007))
76
+
77
+
78
+ ### Bug Fixes
79
+
80
+ * **api:** ensure openapi spec has deprecated routes ([8cd1f46](https://github.com/llamastack/llama-stack-client-typescript/commit/8cd1f4632c395241bddefd19a23abd52eefe2ca3))
81
+
82
+
83
+ ### Chores
84
+
85
+ * **stainless:** add config for file header ([1bc1a46](https://github.com/llamastack/llama-stack-client-typescript/commit/1bc1a460f884257ece4da5d12a3a7a0847bf725a))
86
+ * **stainless:** add config for file header ([61a0e70](https://github.com/llamastack/llama-stack-client-typescript/commit/61a0e705c79716318f88d5f4bec385d20f6a5e3e))
87
+
88
+ ## 0.4.0-alpha.1 (2025-10-31)
89
+
90
+ Full Changelog: [v0.2.23-alpha.1...v0.4.0-alpha.1](https://github.com/llamastack/llama-stack-client-typescript/compare/v0.2.23-alpha.1...v0.4.0-alpha.1)
91
+
92
+ ### ⚠ BREAKING CHANGES
93
+
94
+ * **api:** /v1/inspect only lists v1 apis by default
95
+ * **api:** /v1/inspect only lists v1 apis by default
96
+ * **api:** use input_schema instead of parameters for tools
97
+ * **api:** fixes to remove deprecated inference resources
98
+
99
+ ### Features
100
+
101
+ * **api:** Adding prompts API to stainless config ([5ab8d74](https://github.com/llamastack/llama-stack-client-typescript/commit/5ab8d7423f6a9c26453b36c9daee99d343993d4b))
102
+ * **api:** expires_after changes for /files ([a0b0fb7](https://github.com/llamastack/llama-stack-client-typescript/commit/a0b0fb7aa74668f3f6996c178f9654723b8b0f22))
103
+ * **api:** fix file batches SDK to list_files ([25a0f10](https://github.com/llamastack/llama-stack-client-typescript/commit/25a0f10cffa7de7f1457d65c97259911bc70ab0a))
104
+ * **api:** fixes to remove deprecated inference resources ([367d775](https://github.com/llamastack/llama-stack-client-typescript/commit/367d775c3d5a2fd85bf138d2b175e91b7c185913))
105
+ * **api:** fixes to URLs ([e4f7840](https://github.com/llamastack/llama-stack-client-typescript/commit/e4f78407f74f3ba7597de355c314e1932dd94761))
106
+ * **api:** manual updates ([7d2e375](https://github.com/llamastack/llama-stack-client-typescript/commit/7d2e375bde7bd04ae58cc49fcd5ab7b134b25640))
107
+ * **api:** manual updates ([0302d54](https://github.com/llamastack/llama-stack-client-typescript/commit/0302d54398d87127ab0e9221a8a92760123d235b))
108
+ * **api:** manual updates ([98a596f](https://github.com/llamastack/llama-stack-client-typescript/commit/98a596f677fe2790e4b4765362aa19b6cff8b97e))
109
+ * **api:** manual updates ([c6fb0b6](https://github.com/llamastack/llama-stack-client-typescript/commit/c6fb0b67d8f2e641c13836a17400e51df0b029f1))
110
+ * **api:** manual updates??! ([4dda064](https://github.com/llamastack/llama-stack-client-typescript/commit/4dda06489f003860e138f396c253b40de01103b6))
111
+ * **api:** move datasets to beta, vector_db -> vector_store ([f32c0be](https://github.com/llamastack/llama-stack-client-typescript/commit/f32c0becb1ec0d66129b7fcaa06de3323ee703da))
112
+ * **api:** move post_training and eval under alpha namespace ([aec1d5f](https://github.com/llamastack/llama-stack-client-typescript/commit/aec1d5ff198473ba736bf543ad00c6626cab9b81))
113
+ * **api:** moving { rerank, agents } to `client.alpha.` ([793e069](https://github.com/llamastack/llama-stack-client-typescript/commit/793e0694d75c2af4535bf991d5858cd1f21300b4))
114
+ * **api:** removing openai/v1 ([b5432de](https://github.com/llamastack/llama-stack-client-typescript/commit/b5432de2ad56ff0d2fd5a5b8e1755b5237616b60))
115
+ * **api:** SDKs for vector store file batches ([b0676c8](https://github.com/llamastack/llama-stack-client-typescript/commit/b0676c837bbd835276fea3fe12f435afdbb75ef7))
116
+ * **api:** SDKs for vector store file batches apis ([88731bf](https://github.com/llamastack/llama-stack-client-typescript/commit/88731bfecd6f548ae79cbe2a1125620e488c42a3))
117
+ * **api:** several updates including Conversations, Responses changes, etc. ([e0728d5](https://github.com/llamastack/llama-stack-client-typescript/commit/e0728d5dd59be8723d9f967d6164351eb05528d1))
118
+ * **api:** sync ([7d85013](https://github.com/llamastack/llama-stack-client-typescript/commit/7d850139d1327a215312a82c98b3428ebc7e5f68))
119
+ * **api:** tool api (input_schema, etc.) changes ([06f2bca](https://github.com/llamastack/llama-stack-client-typescript/commit/06f2bcaf0df2e5d462cbe2d9ef3704ab0cfe9248))
120
+ * **api:** updates to vector_store, etc. ([19535c2](https://github.com/llamastack/llama-stack-client-typescript/commit/19535c27147bf6f6861b807d9eeee471b5625148))
121
+ * **api:** updating post /v1/files to have correct multipart/form-data ([f1cf9d6](https://github.com/llamastack/llama-stack-client-typescript/commit/f1cf9d68b6b2569dfb5ea3e2d2c33eff1a832e47))
122
+ * **api:** use input_schema instead of parameters for tools ([8910a12](https://github.com/llamastack/llama-stack-client-typescript/commit/8910a121146aeddcb8f400101e6a2232245097e0))
123
+ * **api:** vector_db_id -> vector_store_id ([079d89d](https://github.com/llamastack/llama-stack-client-typescript/commit/079d89d6522cb4f2eed5e5a09962d94ad800e883))
124
+
125
+
126
+ ### Bug Fixes
127
+
128
+ * **api:** another fix to capture correct responses.create() params ([6acae91](https://github.com/llamastack/llama-stack-client-typescript/commit/6acae910db289080e8f52864f1bdf6d7951d1c3b))
129
+ * **api:** fix the ToolDefParam updates ([5cee3d6](https://github.com/llamastack/llama-stack-client-typescript/commit/5cee3d69650a4c827e12fc046c1d2ec3b2fa9126))
130
+ * **client:** incorrect offset pagination check ([257285f](https://github.com/llamastack/llama-stack-client-typescript/commit/257285f33bb989c9040580dd24251d05f9657bb0))
131
+ * fix stream event model reference ([a71b421](https://github.com/llamastack/llama-stack-client-typescript/commit/a71b421152a609e49e76d01c6e4dd46eb3dbfae0))
132
+
133
+
134
+ ### Chores
135
+
136
+ * **api:** /v1/inspect only lists v1 apis by default ([ae3dc95](https://github.com/llamastack/llama-stack-client-typescript/commit/ae3dc95964c908d219b23d7166780eaab6003ef5))
137
+ * **api:** /v1/inspect only lists v1 apis by default ([e30f51c](https://github.com/llamastack/llama-stack-client-typescript/commit/e30f51c704c39129092255c040bbf5ad90ed0b07))
138
+ * extract some types in mcp docs ([dcc7bb8](https://github.com/llamastack/llama-stack-client-typescript/commit/dcc7bb8b4d940982c2e9c6d1a541636e99fdc5ff))
139
+ * fix readme example ([402f930](https://github.com/llamastack/llama-stack-client-typescript/commit/402f9301d033bb230c9714104fbfa554f3f7cd8f))
140
+ * fix readme examples ([4d5517c](https://github.com/llamastack/llama-stack-client-typescript/commit/4d5517c2b9af2eb6994f5e4b2c033c95d268fb5c))
141
+ * **internal:** codegen related update ([252e0a2](https://github.com/llamastack/llama-stack-client-typescript/commit/252e0a2a38bd8aedab91b401c440a9b10c056cec))
142
+ * **internal:** codegen related update ([34da720](https://github.com/llamastack/llama-stack-client-typescript/commit/34da720c34c35dafb38775243d28dfbdce2497db))
143
+ * **internal:** fix incremental formatting in some cases ([c5c8292](https://github.com/llamastack/llama-stack-client-typescript/commit/c5c8292b631c678efff5498bbab9f5a43bee50b6))
144
+ * **internal:** use npm pack for build uploads ([a246793](https://github.com/llamastack/llama-stack-client-typescript/commit/a24679300cff93fea8ad4bc85e549ecc88198d58))
145
+
146
+
147
+ ### Documentation
148
+
149
+ * update examples ([17b9eb3](https://github.com/llamastack/llama-stack-client-typescript/commit/17b9eb3c40957b63d2a71f7fc21944abcc720d80))
150
+
151
+
152
+ ### Build System
153
+
154
+ * Bump version to 0.2.23 ([16e05ed](https://github.com/llamastack/llama-stack-client-typescript/commit/16e05ed9798233375e19098992632d223c3f5d8d))
155
+
3
156
  ## 0.2.23-alpha.1 (2025-09-26)
4
157
 
5
158
  Full Changelog: [v0.2.19-alpha.1...v0.2.23-alpha.1](https://github.com/llamastack/llama-stack-client-typescript/compare/v0.2.19-alpha.1...v0.2.23-alpha.1)
package/README.md CHANGED
@@ -27,9 +27,7 @@ import LlamaStackClient from 'llama-stack-client';
27
27
 
28
28
  const client = new LlamaStackClient();
29
29
 
30
- const model = await client.models.register({ model_id: 'model_id' });
31
-
32
- console.log(model.identifier);
30
+ const models = await client.models.list();
33
31
  ```
34
32
 
35
33
  ## Streaming responses
@@ -41,13 +39,13 @@ import LlamaStackClient from 'llama-stack-client';
41
39
 
42
40
  const client = new LlamaStackClient();
43
41
 
44
- const stream = await client.inference.chatCompletion({
42
+ const stream = await client.chat.completions.create({
45
43
  messages: [{ content: 'string', role: 'user' }],
46
- model_id: 'model_id',
44
+ model: 'model',
47
45
  stream: true,
48
46
  });
49
- for await (const chatCompletionResponseStreamChunk of stream) {
50
- console.log(chatCompletionResponseStreamChunk.completion_message);
47
+ for await (const chatCompletionChunk of stream) {
48
+ console.log(chatCompletionChunk.id);
51
49
  }
52
50
  ```
53
51
 
@@ -64,11 +62,11 @@ import LlamaStackClient from 'llama-stack-client';
64
62
 
65
63
  const client = new LlamaStackClient();
66
64
 
67
- const params: LlamaStackClient.InferenceChatCompletionParams = {
65
+ const params: LlamaStackClient.Chat.CompletionCreateParams = {
68
66
  messages: [{ content: 'string', role: 'user' }],
69
- model_id: 'model_id',
67
+ model: 'model',
70
68
  };
71
- const chatCompletionResponse: LlamaStackClient.ChatCompletionResponse = await client.inference.chatCompletion(
69
+ const completion: LlamaStackClient.Chat.CompletionCreateResponse = await client.chat.completions.create(
72
70
  params,
73
71
  );
74
72
  ```
@@ -113,8 +111,8 @@ a subclass of `APIError` will be thrown:
113
111
 
114
112
  <!-- prettier-ignore -->
115
113
  ```ts
116
- const chatCompletionResponse = await client.inference
117
- .chatCompletion({ messages: [{ content: 'string', role: 'user' }], model_id: 'model_id' })
114
+ const completion = await client.chat.completions
115
+ .create({ messages: [{ content: 'string', role: 'user' }], model: 'model' })
118
116
  .catch(async (err) => {
119
117
  if (err instanceof LlamaStackClient.APIError) {
120
118
  console.log(err.status); // 400
@@ -155,7 +153,7 @@ const client = new LlamaStackClient({
155
153
  });
156
154
 
157
155
  // Or, configure per-request:
158
- await client.inference.chatCompletion({ messages: [{ content: 'string', role: 'user' }], model_id: 'model_id' }, {
156
+ await client.chat.completions.create({ messages: [{ content: 'string', role: 'user' }], model: 'model' }, {
159
157
  maxRetries: 5,
160
158
  });
161
159
  ```
@@ -172,7 +170,7 @@ const client = new LlamaStackClient({
172
170
  });
173
171
 
174
172
  // Override per-request:
175
- await client.inference.chatCompletion({ messages: [{ content: 'string', role: 'user' }], model_id: 'model_id' }, {
173
+ await client.chat.completions.create({ messages: [{ content: 'string', role: 'user' }], model: 'model' }, {
176
174
  timeout: 5 * 1000,
177
175
  });
178
176
  ```
@@ -193,17 +191,17 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi
193
191
  ```ts
194
192
  const client = new LlamaStackClient();
195
193
 
196
- const response = await client.inference
197
- .chatCompletion({ messages: [{ content: 'string', role: 'user' }], model_id: 'model_id' })
194
+ const response = await client.chat.completions
195
+ .create({ messages: [{ content: 'string', role: 'user' }], model: 'model' })
198
196
  .asResponse();
199
197
  console.log(response.headers.get('X-My-Header'));
200
198
  console.log(response.statusText); // access the underlying Response object
201
199
 
202
- const { data: chatCompletionResponse, response: raw } = await client.inference
203
- .chatCompletion({ messages: [{ content: 'string', role: 'user' }], model_id: 'model_id' })
200
+ const { data: completion, response: raw } = await client.chat.completions
201
+ .create({ messages: [{ content: 'string', role: 'user' }], model: 'model' })
204
202
  .withResponse();
205
203
  console.log(raw.headers.get('X-My-Header'));
206
- console.log(chatCompletionResponse.completion_message);
204
+ console.log(completion.id);
207
205
  ```
208
206
 
209
207
  ### Making custom/undocumented requests
@@ -307,8 +305,8 @@ const client = new LlamaStackClient({
307
305
  });
308
306
 
309
307
  // Override per-request:
310
- await client.inference.chatCompletion(
311
- { messages: [{ content: 'string', role: 'user' }], model_id: 'model_id' },
308
+ await client.chat.completions.create(
309
+ { messages: [{ content: 'string', role: 'user' }], model: 'model' },
312
310
  {
313
311
  httpAgent: new http.Agent({ keepAlive: false }),
314
312
  },
package/error.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":"AAQA,OAAO,EAAe,OAAO,EAAE,MAAM,QAAQ,CAAC;AAE9C,qBAAa,qBAAsB,SAAQ,KAAK;CAAG;AAEnD,qBAAa,QAAQ,CACnB,OAAO,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,EACvD,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAC1D,MAAM,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CACtD,SAAQ,qBAAqB;IAC7B,yDAAyD;IACzD,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;gBAEX,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,QAAQ;IAO1F,OAAO,CAAC,MAAM,CAAC,WAAW;IAqB1B,MAAM,CAAC,QAAQ,CACb,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,EAAE,OAAO,GAAG,SAAS,GAC3B,QAAQ;CAyCZ;AAED,qBAAa,iBAAkB,SAAQ,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;gBAClE,EAAE,OAAO,EAAE,G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AAa,mBAAoB,SAAQ,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CAAG;AAElE,qBAAa,qBAAsB,SAAQ,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CAAG;AAEpE,qBAAa,aAAc,SAAQ,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CAAG;AAE5D,qBAAa,aAAc,SAAQ,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CAAG;AAE5D,qBAAa,wBAAyB,SAAQ,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CAAG;AAEvE,qBAAa,cAAe,SAAQ,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CAAG;AAE7D,qBAAa,mBAAoB,SAAQ,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAAG"}
package/error.js CHANGED
@@ -6,6 +6,7 @@
6
6
  // the root directory of this source tree.
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.InternalServerError = exports.RateLimitError = exports.UnprocessableEntityError = exports.ConflictError = exports.NotFoundError = exports.PermissionDeniedError = exports.AuthenticationError = exports.BadRequestError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIUserAbortError = exports.APIError = exports.LlamaStackClientError = void 0;
9
+ //
9
10
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
10
11
  const core_1 = require("./core.js");
11
12
  class LlamaStackClientError extends Error {
package/error.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;;;AAE1C,sFAAsF;AAEtF,oCAA8C;AAE9C,MAAa,qBAAsB,SAAQ,KAAK;CAAG;AAAnD,sDAAmD;AAEnD,MAAa,QAIX,SAAQ,qBAAqB;IAQ7B,YAAY,MAAe,EAAE,KAAa,EAAE,OAA2B,EAAE,OAAiB;QACxF,KAAK,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mB,EAAE,SAAS,CAAC,CAAC;QACvE,gEAAgE;QAChE,aAAa;QACb,IAAI,KAAK;YAAE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAChC,CAAC;CACF;AAED,MAAM,OAAO,yBAA0B,SAAQ,kBAAkB;IAC/D,YAAY,EAAE,OAAO,KAA2B,EAAE;QAChD,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,CAAC,CAAC;IACtD,CAAC;CACF;AAED,MAAM,OAAO,eAAgB,SAAQ,QAAsB;CAAG;AAE9D,MAAM,OAAO,mBAAoB,SAAQ,QAAsB;CAAG;AAElE,MAAM,OAAO,qBAAsB,SAAQ,QAAsB;CAAG;AAEpE,MAAM,OAAO,aAAc,SAAQ,QAAsB;CAAG;AAE5D,MAAM,OAAO,aAAc,SAAQ,QAAsB;CAAG;AAE5D,MAAM,OAAO,wBAAyB,SAAQ,QAAsB;CAAG;AAEvE,MAAM,OAAO,cAAe,SAAQ,QAAsB;CAAG;AAE7D,MAAM,OAAO,mBAAoB,SAAQ,QAAyB;CAAG"}
package/index.d.mts CHANGED
@@ -5,33 +5,29 @@ import * as Pagination from "./pagination.js";
5
5
  import { type DatasetsIterrowsParams, DatasetsIterrowsResponse, type OpenAICursorPageParams, OpenAICursorPageResponse } from "./pagination.js";
6
6
  import * as Uploads from "./uploads.js";
7
7
  import * as API from "./resources/index.js";
8
- import { Benchmark, BenchmarkListResponse, BenchmarkRegisterParams, Benchmarks, ListBenchmarksResponse } from "./resources/benchmarks.js";
8
+ import { BatchCancelResponse, BatchCreateParams, BatchCreateResponse, BatchListParams, BatchListResponse, BatchListResponsesOpenAICursorPage, BatchRetrieveResponse, Batches } from "./resources/batches.js";
9
9
  import { CompletionCreateParams, CompletionCreateParamsNonStreaming, CompletionCreateParamsStreaming, CompletionCreateResponse, Completions } from "./resources/completions.js";
10
- import { DatasetAppendrowsParams, DatasetIterrowsParams, DatasetIterrowsResponse, DatasetListResponse, DatasetRegisterParams, DatasetRegisterResponse, DatasetRetrieveResponse, Datasets, ListDatasetsResponse } from "./resources/datasets.js";
11
10
  import { CreateEmbeddingsResponse, EmbeddingCreateParams, Embeddings } from "./resources/embeddings.js";
12
11
  import { DeleteFileResponse, File, FileContentResponse, FileCreateParams, FileListParams, Files, FilesOpenAICursorPage, ListFilesResponse } from "./resources/files.js";
13
- import { ChatCompletionResponseStreamChunk, CompletionResponse, EmbeddingsResponse, Inference, InferenceBatchChatCompletionParams, InferenceBatchChatCompletionResponse, InferenceBatchCompletionParams, InferenceChatCompletionParams, InferenceChatCompletionParamsNonStreaming, InferenceChatCompletionParamsStreaming, InferenceCompletionParams, InferenceCompletionParamsNonStreaming, InferenceCompletionParamsStreaming, InferenceEmbeddingsParams, InferenceRerankParams, InferenceRerankResponse, TokenLogProbs } from "./resources/inference.js";
14
12
  import { HealthInfo, Inspect, ProviderInfo, RouteInfo, VersionInfo } from "./resources/inspect.js";
15
13
  import { CreateResponse, ModerationCreateParams, Moderations } from "./resources/moderations.js";
16
14
  import { ListProvidersResponse, ProviderListResponse, Providers } from "./resources/providers.js";
17
- import { ListRoutesResponse, RouteListResponse, Routes } from "./resources/routes.js";
15
+ import { ListRoutesResponse, RouteListParams, RouteListResponse, Routes } from "./resources/routes.js";
18
16
  import { RunShieldResponse, Safety, SafetyRunShieldParams } from "./resources/safety.js";
19
17
  import { Scoring, ScoringScoreBatchParams, ScoringScoreBatchResponse, ScoringScoreParams, ScoringScoreResponse } from "./resources/scoring.js";
20
18
  import { ListScoringFunctionsResponse, ScoringFn, ScoringFnParams, ScoringFunctionListResponse, ScoringFunctionRegisterParams, ScoringFunctions } from "./resources/scoring-functions.js";
21
19
  import { ListShieldsResponse, Shield, ShieldListResponse, ShieldRegisterParams, Shields } from "./resources/shields.js";
22
- import { SyntheticDataGeneration, SyntheticDataGenerationGenerateParams, SyntheticDataGenerationResponse } from "./resources/synthetic-data-generation.js";
23
- import { Event, QueryCondition, QuerySpansResponse, SpanWithStatus, Telemetry, TelemetryGetSpanResponse, TelemetryGetSpanTreeParams, TelemetryGetSpanTreeResponse, TelemetryLogEventParams, TelemetryQueryMetricsParams, TelemetryQueryMetricsResponse, TelemetryQuerySpansParams, TelemetryQuerySpansResponse, TelemetryQueryTracesParams, TelemetryQueryTracesResponse, TelemetrySaveSpansToDatasetParams, Trace } from "./resources/telemetry.js";
20
+ import { ToolDef, ToolInvocationResult, ToolRuntime, ToolRuntimeInvokeToolParams, ToolRuntimeListToolsParams, ToolRuntimeListToolsResponse } from "./resources/tool-runtime.js";
24
21
  import { ListToolGroupsResponse, ToolGroup, ToolgroupListResponse, ToolgroupRegisterParams, Toolgroups } from "./resources/toolgroups.js";
25
- import { ListToolsResponse, Tool, ToolListParams, ToolListResponse, Tools } from "./resources/tools.js";
26
- import { ListVectorDBsResponse, VectorDBListResponse, VectorDBRegisterParams, VectorDBRegisterResponse, VectorDBRetrieveResponse, VectorDBs } from "./resources/vector-dbs.js";
22
+ import { ToolListParams, ToolListResponse, Tools } from "./resources/tools.js";
27
23
  import { QueryChunksResponse, VectorIo, VectorIoInsertParams, VectorIoQueryParams } from "./resources/vector-io.js";
28
- import { AgentCreateParams, AgentCreateResponse, AgentListParams, AgentListResponse, AgentRetrieveResponse, Agents, InferenceStep, MemoryRetrievalStep, ShieldCallStep, ToolExecutionStep, ToolResponse } from "./resources/agents/agents.js";
24
+ import { Alpha } from "./resources/alpha/alpha.js";
25
+ import { Beta } from "./resources/beta/beta.js";
29
26
  import { Chat, ChatCompletionChunk } from "./resources/chat/chat.js";
30
- import { BenchmarkConfig, Eval, EvalCandidate, EvalEvaluateRowsAlphaParams, EvalEvaluateRowsParams, EvalRunEvalAlphaParams, EvalRunEvalParams, EvaluateResponse, Job } from "./resources/eval/eval.js";
31
- import { ListModelsResponse, Model, ModelListResponse, ModelRegisterParams, Models } from "./resources/models/models.js";
32
- import { AlgorithmConfig, ListPostTrainingJobsResponse, PostTraining, PostTrainingJob, PostTrainingPreferenceOptimizeParams, PostTrainingSupervisedFineTuneParams } from "./resources/post-training/post-training.js";
27
+ import { ConversationCreateParams, ConversationDeleteResponse, ConversationObject, ConversationUpdateParams, Conversations } from "./resources/conversations/conversations.js";
28
+ import { ListModelsResponse, Model, ModelListResponse, ModelRegisterParams, ModelRegisterResponse, ModelRetrieveResponse, Models } from "./resources/models/models.js";
29
+ import { ListPromptsResponse, Prompt, PromptCreateParams, PromptListResponse, PromptRetrieveParams, PromptSetDefaultVersionParams, PromptUpdateParams, Prompts } from "./resources/prompts/prompts.js";
33
30
  import { ResponseCreateParams, ResponseCreateParamsNonStreaming, ResponseCreateParamsStreaming, ResponseDeleteResponse, ResponseListParams, ResponseListResponse, ResponseListResponsesOpenAICursorPage, ResponseObject, ResponseObjectStream, Responses } from "./resources/responses/responses.js";
34
- import { ToolDef, ToolInvocationResult, ToolRuntime, ToolRuntimeInvokeToolParams, ToolRuntimeListToolsParams, ToolRuntimeListToolsResponse } from "./resources/tool-runtime/tool-runtime.js";
35
31
  import { ListVectorStoresResponse, VectorStore, VectorStoreCreateParams, VectorStoreDeleteResponse, VectorStoreListParams, VectorStoreSearchParams, VectorStoreSearchResponse, VectorStoreUpdateParams, VectorStores, VectorStoresOpenAICursorPage } from "./resources/vector-stores/vector-stores.js";
36
32
  export interface ClientOptions {
37
33
  /**
@@ -114,30 +110,26 @@ export declare class LlamaStackClient extends Core.APIClient {
114
110
  tools: API.Tools;
115
111
  toolRuntime: API.ToolRuntime;
116
112
  responses: API.Responses;
117
- agents: API.Agents;
118
- datasets: API.Datasets;
119
- eval: API.Eval;
113
+ prompts: API.Prompts;
114
+ conversations: API.Conversations;
120
115
  inspect: API.Inspect;
121
- inference: API.Inference;
122
116
  embeddings: API.Embeddings;
123
117
  chat: API.Chat;
124
118
  completions: API.Completions;
125
119
  vectorIo: API.VectorIo;
126
- vectorDBs: API.VectorDBs;
127
120
  vectorStores: API.VectorStores;
128
121
  models: API.Models;
129
- postTraining: API.PostTraining;
130
122
  providers: API.Providers;
131
123
  routes: API.Routes;
132
124
  moderations: API.Moderations;
133
125
  safety: API.Safety;
134
126
  shields: API.Shields;
135
- syntheticDataGeneration: API.SyntheticDataGeneration;
136
- telemetry: API.Telemetry;
137
127
  scoring: API.Scoring;
138
128
  scoringFunctions: API.ScoringFunctions;
139
- benchmarks: API.Benchmarks;
140
129
  files: API.Files;
130
+ batches: API.Batches;
131
+ alpha: API.Alpha;
132
+ beta: API.Beta;
141
133
  protected defaultQuery(): Core.DefaultQuery | undefined;
142
134
  protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
143
135
  protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
@@ -167,57 +159,38 @@ export declare namespace LlamaStackClient {
167
159
  export import OpenAICursorPage = Pagination.OpenAICursorPage;
168
160
  export { type OpenAICursorPageParams as OpenAICursorPageParams, type OpenAICursorPageResponse as OpenAICursorPageResponse, };
169
161
  export { Toolgroups as Toolgroups, type ListToolGroupsResponse as ListToolGroupsResponse, type ToolGroup as ToolGroup, type ToolgroupListResponse as ToolgroupListResponse, type ToolgroupRegisterParams as ToolgroupRegisterParams, };
170
- export { Tools as Tools, type ListToolsResponse as ListToolsResponse, type Tool as Tool, type ToolListResponse as ToolListResponse, type ToolListParams as ToolListParams, };
162
+ export { Tools as Tools, type ToolListResponse as ToolListResponse, type ToolListParams as ToolListParams };
171
163
  export { ToolRuntime as ToolRuntime, type ToolDef as ToolDef, type ToolInvocationResult as ToolInvocationResult, type ToolRuntimeListToolsResponse as ToolRuntimeListToolsResponse, type ToolRuntimeInvokeToolParams as ToolRuntimeInvokeToolParams, type ToolRuntimeListToolsParams as ToolRuntimeListToolsParams, };
172
164
  export { Responses as Responses, type ResponseObject as ResponseObject, type ResponseObjectStream as ResponseObjectStream, type ResponseListResponse as ResponseListResponse, type ResponseDeleteResponse as ResponseDeleteResponse, ResponseListResponsesOpenAICursorPage as ResponseListResponsesOpenAICursorPage, type ResponseCreateParams as ResponseCreateParams, type ResponseCreateParamsNonStreaming as ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming as ResponseCreateParamsStreaming, type ResponseListParams as ResponseListParams, };
173
- export { Agents as Agents, type InferenceStep as InferenceStep, type MemoryRetrievalStep as MemoryRetrievalStep, type ShieldCallStep as ShieldCallStep, type ToolExecutionStep as ToolExecutionStep, type ToolResponse as ToolResponse, type AgentCreateResponse as AgentCreateResponse, type AgentRetrieveResponse as AgentRetrieveResponse, type AgentListResponse as AgentListResponse, type AgentCreateParams as AgentCreateParams, type AgentListParams as AgentListParams, };
174
- export { Datasets as Datasets, type ListDatasetsResponse as ListDatasetsResponse, type DatasetRetrieveResponse as DatasetRetrieveResponse, type DatasetListResponse as DatasetListResponse, type DatasetIterrowsResponse as DatasetIterrowsResponse, type DatasetRegisterResponse as DatasetRegisterResponse, type DatasetAppendrowsParams as DatasetAppendrowsParams, type DatasetIterrowsParams as DatasetIterrowsParams, type DatasetRegisterParams as DatasetRegisterParams, };
175
- export { Eval as Eval, type BenchmarkConfig as BenchmarkConfig, type EvalCandidate as EvalCandidate, type EvaluateResponse as EvaluateResponse, type Job as Job, type EvalEvaluateRowsParams as EvalEvaluateRowsParams, type EvalEvaluateRowsAlphaParams as EvalEvaluateRowsAlphaParams, type EvalRunEvalParams as EvalRunEvalParams, type EvalRunEvalAlphaParams as EvalRunEvalAlphaParams, };
165
+ export { Prompts as Prompts, type ListPromptsResponse as ListPromptsResponse, type Prompt as Prompt, type PromptListResponse as PromptListResponse, type PromptCreateParams as PromptCreateParams, type PromptRetrieveParams as PromptRetrieveParams, type PromptUpdateParams as PromptUpdateParams, type PromptSetDefaultVersionParams as PromptSetDefaultVersionParams, };
166
+ export { Conversations as Conversations, type ConversationObject as ConversationObject, type ConversationDeleteResponse as ConversationDeleteResponse, type ConversationCreateParams as ConversationCreateParams, type ConversationUpdateParams as ConversationUpdateParams, };
176
167
  export { Inspect as Inspect, type HealthInfo as HealthInfo, type ProviderInfo as ProviderInfo, type RouteInfo as RouteInfo, type VersionInfo as VersionInfo, };
177
- export { Inference as Inference, type ChatCompletionResponseStreamChunk as ChatCompletionResponseStreamChunk, type CompletionResponse as CompletionResponse, type EmbeddingsResponse as EmbeddingsResponse, type TokenLogProbs as TokenLogProbs, type InferenceBatchChatCompletionResponse as InferenceBatchChatCompletionResponse, type InferenceRerankResponse as InferenceRerankResponse, type InferenceBatchChatCompletionParams as InferenceBatchChatCompletionParams, type InferenceBatchCompletionParams as InferenceBatchCompletionParams, type InferenceChatCompletionParams as InferenceChatCompletionParams, type InferenceChatCompletionParamsNonStreaming as InferenceChatCompletionParamsNonStreaming, type InferenceChatCompletionParamsStreaming as InferenceChatCompletionParamsStreaming, type InferenceCompletionParams as InferenceCompletionParams, type InferenceCompletionParamsNonStreaming as InferenceCompletionParamsNonStreaming, type InferenceCompletionParamsStreaming as InferenceCompletionParamsStreaming, type InferenceEmbeddingsParams as InferenceEmbeddingsParams, type InferenceRerankParams as InferenceRerankParams, };
178
168
  export { Embeddings as Embeddings, type CreateEmbeddingsResponse as CreateEmbeddingsResponse, type EmbeddingCreateParams as EmbeddingCreateParams, };
179
169
  export { Chat as Chat, type ChatCompletionChunk as ChatCompletionChunk };
180
170
  export { Completions as Completions, type CompletionCreateResponse as CompletionCreateResponse, type CompletionCreateParams as CompletionCreateParams, type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, };
181
171
  export { VectorIo as VectorIo, type QueryChunksResponse as QueryChunksResponse, type VectorIoInsertParams as VectorIoInsertParams, type VectorIoQueryParams as VectorIoQueryParams, };
182
- export { VectorDBs as VectorDBs, type ListVectorDBsResponse as ListVectorDBsResponse, type VectorDBRetrieveResponse as VectorDBRetrieveResponse, type VectorDBListResponse as VectorDBListResponse, type VectorDBRegisterResponse as VectorDBRegisterResponse, type VectorDBRegisterParams as VectorDBRegisterParams, };
183
172
  export { VectorStores as VectorStores, type ListVectorStoresResponse as ListVectorStoresResponse, type VectorStore as VectorStore, type VectorStoreDeleteResponse as VectorStoreDeleteResponse, type VectorStoreSearchResponse as VectorStoreSearchResponse, VectorStoresOpenAICursorPage as VectorStoresOpenAICursorPage, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
184
- export { Models as Models, type ListModelsResponse as ListModelsResponse, type Model as Model, type ModelListResponse as ModelListResponse, type ModelRegisterParams as ModelRegisterParams, };
185
- export { PostTraining as PostTraining, type AlgorithmConfig as AlgorithmConfig, type ListPostTrainingJobsResponse as ListPostTrainingJobsResponse, type PostTrainingJob as PostTrainingJob, type PostTrainingPreferenceOptimizeParams as PostTrainingPreferenceOptimizeParams, type PostTrainingSupervisedFineTuneParams as PostTrainingSupervisedFineTuneParams, };
173
+ export { Models as Models, type ListModelsResponse as ListModelsResponse, type Model as Model, type ModelRetrieveResponse as ModelRetrieveResponse, type ModelListResponse as ModelListResponse, type ModelRegisterResponse as ModelRegisterResponse, type ModelRegisterParams as ModelRegisterParams, };
186
174
  export { Providers as Providers, type ListProvidersResponse as ListProvidersResponse, type ProviderListResponse as ProviderListResponse, };
187
- export { Routes as Routes, type ListRoutesResponse as ListRoutesResponse, type RouteListResponse as RouteListResponse, };
175
+ export { Routes as Routes, type ListRoutesResponse as ListRoutesResponse, type RouteListResponse as RouteListResponse, type RouteListParams as RouteListParams, };
188
176
  export { Moderations as Moderations, type CreateResponse as CreateResponse, type ModerationCreateParams as ModerationCreateParams, };
189
177
  export { Safety as Safety, type RunShieldResponse as RunShieldResponse, type SafetyRunShieldParams as SafetyRunShieldParams, };
190
178
  export { Shields as Shields, type ListShieldsResponse as ListShieldsResponse, type Shield as Shield, type ShieldListResponse as ShieldListResponse, type ShieldRegisterParams as ShieldRegisterParams, };
191
- export { SyntheticDataGeneration as SyntheticDataGeneration, type SyntheticDataGenerationResponse as SyntheticDataGenerationResponse, type SyntheticDataGenerationGenerateParams as SyntheticDataGenerationGenerateParams, };
192
- export { Telemetry as Telemetry, type Event as Event, type QueryCondition as QueryCondition, type QuerySpansResponse as QuerySpansResponse, type SpanWithStatus as SpanWithStatus, type Trace as Trace, type TelemetryGetSpanResponse as TelemetryGetSpanResponse, type TelemetryGetSpanTreeResponse as TelemetryGetSpanTreeResponse, type TelemetryQueryMetricsResponse as TelemetryQueryMetricsResponse, type TelemetryQuerySpansResponse as TelemetryQuerySpansResponse, type TelemetryQueryTracesResponse as TelemetryQueryTracesResponse, type TelemetryGetSpanTreeParams as TelemetryGetSpanTreeParams, type TelemetryLogEventParams as TelemetryLogEventParams, type TelemetryQueryMetricsParams as TelemetryQueryMetricsParams, type TelemetryQuerySpansParams as TelemetryQuerySpansParams, type TelemetryQueryTracesParams as TelemetryQueryTracesParams, type TelemetrySaveSpansToDatasetParams as TelemetrySaveSpansToDatasetParams, };
193
179
  export { Scoring as Scoring, type ScoringScoreResponse as ScoringScoreResponse, type ScoringScoreBatchResponse as ScoringScoreBatchResponse, type ScoringScoreParams as ScoringScoreParams, type ScoringScoreBatchParams as ScoringScoreBatchParams, };
194
180
  export { ScoringFunctions as ScoringFunctions, type ListScoringFunctionsResponse as ListScoringFunctionsResponse, type ScoringFn as ScoringFn, type ScoringFnParams as ScoringFnParams, type ScoringFunctionListResponse as ScoringFunctionListResponse, type ScoringFunctionRegisterParams as ScoringFunctionRegisterParams, };
195
- export { Benchmarks as Benchmarks, type Benchmark as Benchmark, type ListBenchmarksResponse as ListBenchmarksResponse, type BenchmarkListResponse as BenchmarkListResponse, type BenchmarkRegisterParams as BenchmarkRegisterParams, };
196
181
  export { Files as Files, type DeleteFileResponse as DeleteFileResponse, type File as File, type ListFilesResponse as ListFilesResponse, type FileContentResponse as FileContentResponse, FilesOpenAICursorPage as FilesOpenAICursorPage, type FileCreateParams as FileCreateParams, type FileListParams as FileListParams, };
197
- export type AgentConfig = API.AgentConfig;
198
- export type BatchCompletion = API.BatchCompletion;
199
- export type ChatCompletionResponse = API.ChatCompletionResponse;
200
- export type CompletionMessage = API.CompletionMessage;
201
- export type ContentDelta = API.ContentDelta;
202
- export type Document = API.Document;
182
+ export { Batches as Batches, type BatchCreateResponse as BatchCreateResponse, type BatchRetrieveResponse as BatchRetrieveResponse, type BatchListResponse as BatchListResponse, type BatchCancelResponse as BatchCancelResponse, BatchListResponsesOpenAICursorPage as BatchListResponsesOpenAICursorPage, type BatchCreateParams as BatchCreateParams, type BatchListParams as BatchListParams, };
183
+ export { Alpha as Alpha };
184
+ export { Beta as Beta };
203
185
  export type InterleavedContent = API.InterleavedContent;
204
186
  export type InterleavedContentItem = API.InterleavedContentItem;
205
- export type Message = API.Message;
206
- export type Metric = API.Metric;
207
187
  export type ParamType = API.ParamType;
208
- export type QueryConfig = API.QueryConfig;
209
- export type QueryGeneratorConfig = API.QueryGeneratorConfig;
210
- export type QueryResult = API.QueryResult;
211
- export type ResponseFormat = API.ResponseFormat;
212
188
  export type SafetyViolation = API.SafetyViolation;
213
189
  export type SamplingParams = API.SamplingParams;
214
190
  export type ScoringResult = API.ScoringResult;
215
191
  export type SystemMessage = API.SystemMessage;
216
- export type ToolCall = API.ToolCall;
217
- export type ToolParamDefinition = API.ToolParamDefinition;
218
- export type ToolResponseMessage = API.ToolResponseMessage;
219
- export type UserMessage = API.UserMessage;
220
192
  }
193
+ export { getResponseOutputText } from "./lib/response-helpers.js";
221
194
  export { toFile, fileFromPath } from "./uploads.js";
222
195
  export { LlamaStackClientError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
223
196
  export default LlamaStackClient;