llama-stack-client 0.3.5 → 0.4.0-rc2

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 (580) hide show
  1. package/CHANGELOG.md +153 -0
  2. package/README.md +48 -39
  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 +33 -54
  8. package/index.d.ts +33 -54
  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 +7 -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/admin.d.ts +41 -0
  30. package/resources/alpha/admin.d.ts.map +1 -0
  31. package/resources/alpha/admin.js +46 -0
  32. package/resources/alpha/admin.js.map +1 -0
  33. package/resources/alpha/admin.mjs +42 -0
  34. package/resources/alpha/admin.mjs.map +1 -0
  35. package/resources/alpha/alpha.d.ts +26 -0
  36. package/resources/alpha/alpha.d.ts.map +1 -0
  37. package/resources/alpha/alpha.js +61 -0
  38. package/resources/alpha/alpha.js.map +1 -0
  39. package/resources/alpha/alpha.mjs +34 -0
  40. package/resources/alpha/alpha.mjs.map +1 -0
  41. package/resources/{benchmarks.d.ts → alpha/benchmarks.d.ts} +41 -15
  42. package/resources/alpha/benchmarks.d.ts.map +1 -0
  43. package/resources/{benchmarks.js → alpha/benchmarks.js} +18 -4
  44. package/resources/alpha/benchmarks.js.map +1 -0
  45. package/resources/alpha/benchmarks.mjs +44 -0
  46. package/resources/alpha/benchmarks.mjs.map +1 -0
  47. package/resources/alpha/eval/eval.d.ts +160 -0
  48. package/resources/alpha/eval/eval.d.ts.map +1 -0
  49. package/resources/{eval → alpha/eval}/eval.js +7 -6
  50. package/resources/alpha/eval/eval.js.map +1 -0
  51. package/resources/{eval → alpha/eval}/eval.mjs +7 -5
  52. package/resources/alpha/eval/eval.mjs.map +1 -0
  53. package/resources/alpha/eval/index.d.ts +3 -0
  54. package/resources/alpha/eval/index.d.ts.map +1 -0
  55. package/resources/{eval → alpha/eval}/index.js +2 -1
  56. package/resources/alpha/eval/index.js.map +1 -0
  57. package/resources/{eval → alpha/eval}/index.mjs +2 -0
  58. package/resources/alpha/eval/index.mjs.map +1 -0
  59. package/resources/{eval → alpha/eval}/jobs.d.ts +2 -2
  60. package/resources/alpha/eval/jobs.d.ts.map +1 -0
  61. package/resources/{eval → alpha/eval}/jobs.js +6 -5
  62. package/resources/alpha/eval/jobs.js.map +1 -0
  63. package/resources/{eval → alpha/eval}/jobs.mjs +6 -4
  64. package/resources/alpha/eval/jobs.mjs.map +1 -0
  65. package/resources/alpha/eval.d.ts.map +1 -0
  66. package/resources/{eval.js → alpha/eval.js} +1 -0
  67. package/resources/alpha/eval.js.map +1 -0
  68. package/resources/alpha/eval.mjs.map +1 -0
  69. package/resources/alpha/index.d.ts +7 -0
  70. package/resources/alpha/index.d.ts.map +1 -0
  71. package/resources/alpha/index.js +23 -0
  72. package/resources/alpha/index.js.map +1 -0
  73. package/resources/alpha/index.mjs +14 -0
  74. package/resources/alpha/index.mjs.map +1 -0
  75. package/resources/alpha/inference.d.ts +85 -0
  76. package/resources/alpha/inference.d.ts.map +1 -0
  77. package/resources/{agents/steps.js → alpha/inference.js} +9 -8
  78. package/resources/alpha/inference.js.map +1 -0
  79. package/resources/alpha/inference.mjs +17 -0
  80. package/resources/alpha/inference.mjs.map +1 -0
  81. package/resources/alpha/post-training/index.d.ts.map +1 -0
  82. package/resources/{post-training → alpha/post-training}/index.js +2 -1
  83. package/resources/alpha/post-training/index.js.map +1 -0
  84. package/resources/{post-training → alpha/post-training}/index.mjs +2 -0
  85. package/resources/alpha/post-training/index.mjs.map +1 -0
  86. package/resources/alpha/post-training/job.d.ts +113 -0
  87. package/resources/alpha/post-training/job.d.ts.map +1 -0
  88. package/resources/{post-training → alpha/post-training}/job.js +7 -6
  89. package/resources/alpha/post-training/job.js.map +1 -0
  90. package/resources/{post-training → alpha/post-training}/job.mjs +7 -5
  91. package/resources/alpha/post-training/job.mjs.map +1 -0
  92. package/resources/alpha/post-training/post-training.d.ts +245 -0
  93. package/resources/alpha/post-training/post-training.d.ts.map +1 -0
  94. package/resources/{post-training → alpha/post-training}/post-training.js +5 -4
  95. package/resources/alpha/post-training/post-training.js.map +1 -0
  96. package/resources/{post-training → alpha/post-training}/post-training.mjs +5 -3
  97. package/resources/alpha/post-training/post-training.mjs.map +1 -0
  98. package/resources/alpha/post-training.d.ts.map +1 -0
  99. package/resources/{post-training.js → alpha/post-training.js} +2 -1
  100. package/resources/alpha/post-training.js.map +1 -0
  101. package/resources/{post-training.mjs → alpha/post-training.mjs} +2 -0
  102. package/resources/alpha/post-training.mjs.map +1 -0
  103. package/resources/alpha.d.ts +2 -0
  104. package/resources/alpha.d.ts.map +1 -0
  105. package/resources/alpha.js +25 -0
  106. package/resources/alpha.js.map +1 -0
  107. package/resources/alpha.mjs +9 -0
  108. package/resources/alpha.mjs.map +1 -0
  109. package/resources/batches.d.ts +322 -0
  110. package/resources/batches.d.ts.map +1 -0
  111. package/resources/batches.js +45 -0
  112. package/resources/batches.js.map +1 -0
  113. package/resources/batches.mjs +40 -0
  114. package/resources/batches.mjs.map +1 -0
  115. package/resources/beta/beta.d.ts +10 -0
  116. package/resources/beta/beta.d.ts.map +1 -0
  117. package/resources/{tool-runtime/tool-runtime.js → beta/beta.js} +10 -22
  118. package/resources/beta/beta.js.map +1 -0
  119. package/resources/beta/beta.mjs +18 -0
  120. package/resources/beta/beta.mjs.map +1 -0
  121. package/resources/{datasets.d.ts → beta/datasets.d.ts} +117 -99
  122. package/resources/beta/datasets.d.ts.map +1 -0
  123. package/resources/{datasets.js → beta/datasets.js} +14 -9
  124. package/resources/beta/datasets.js.map +1 -0
  125. package/resources/{datasets.mjs → beta/datasets.mjs} +14 -8
  126. package/resources/beta/datasets.mjs.map +1 -0
  127. package/resources/beta/index.d.ts +3 -0
  128. package/resources/beta/index.d.ts.map +1 -0
  129. package/resources/beta/index.js +15 -0
  130. package/resources/beta/index.js.map +1 -0
  131. package/resources/beta/index.mjs +10 -0
  132. package/resources/beta/index.mjs.map +1 -0
  133. package/resources/beta.d.ts +2 -0
  134. package/resources/beta.d.ts.map +1 -0
  135. package/resources/{agents.js → beta.js} +4 -3
  136. package/resources/beta.js.map +1 -0
  137. package/resources/beta.mjs +9 -0
  138. package/resources/beta.mjs.map +1 -0
  139. package/resources/chat/chat.d.ts +75 -80
  140. package/resources/chat/chat.d.ts.map +1 -1
  141. package/resources/chat/chat.js +2 -2
  142. package/resources/chat/chat.js.map +1 -1
  143. package/resources/chat/chat.mjs +3 -2
  144. package/resources/chat/chat.mjs.map +1 -1
  145. package/resources/chat/completions.d.ts +760 -1406
  146. package/resources/chat/completions.d.ts.map +1 -1
  147. package/resources/chat/completions.js +8 -14
  148. package/resources/chat/completions.js.map +1 -1
  149. package/resources/chat/completions.mjs +7 -11
  150. package/resources/chat/completions.mjs.map +1 -1
  151. package/resources/chat/index.d.ts +1 -1
  152. package/resources/chat/index.d.ts.map +1 -1
  153. package/resources/chat/index.js +3 -3
  154. package/resources/chat/index.js.map +1 -1
  155. package/resources/chat/index.mjs +3 -1
  156. package/resources/chat/index.mjs.map +1 -1
  157. package/resources/chat.js +2 -1
  158. package/resources/chat.js.map +1 -1
  159. package/resources/chat.mjs +2 -0
  160. package/resources/chat.mjs.map +1 -1
  161. package/resources/completions.d.ts +54 -97
  162. package/resources/completions.d.ts.map +1 -1
  163. package/resources/completions.js +3 -6
  164. package/resources/completions.js.map +1 -1
  165. package/resources/completions.mjs +3 -5
  166. package/resources/completions.mjs.map +1 -1
  167. package/resources/conversations/conversations.d.ts +320 -0
  168. package/resources/conversations/conversations.d.ts.map +1 -0
  169. package/resources/conversations/conversations.js +78 -0
  170. package/resources/conversations/conversations.js.map +1 -0
  171. package/resources/conversations/conversations.mjs +51 -0
  172. package/resources/conversations/conversations.mjs.map +1 -0
  173. package/resources/conversations/index.d.ts +3 -0
  174. package/resources/conversations/index.d.ts.map +1 -0
  175. package/resources/conversations/index.js +16 -0
  176. package/resources/conversations/index.js.map +1 -0
  177. package/resources/conversations/index.mjs +10 -0
  178. package/resources/conversations/index.mjs.map +1 -0
  179. package/resources/conversations/items.d.ts +874 -0
  180. package/resources/conversations/items.d.ts.map +1 -0
  181. package/resources/conversations/items.js +51 -0
  182. package/resources/conversations/items.js.map +1 -0
  183. package/resources/conversations/items.mjs +46 -0
  184. package/resources/conversations/items.mjs.map +1 -0
  185. package/resources/conversations.d.ts +2 -0
  186. package/resources/conversations.d.ts.map +1 -0
  187. package/resources/conversations.js +25 -0
  188. package/resources/conversations.js.map +1 -0
  189. package/resources/conversations.mjs +9 -0
  190. package/resources/conversations.mjs.map +1 -0
  191. package/resources/embeddings.d.ts +10 -52
  192. package/resources/embeddings.d.ts.map +1 -1
  193. package/resources/embeddings.js +5 -2
  194. package/resources/embeddings.js.map +1 -1
  195. package/resources/embeddings.mjs +5 -1
  196. package/resources/embeddings.mjs.map +1 -1
  197. package/resources/files.d.ts +44 -54
  198. package/resources/files.d.ts.map +1 -1
  199. package/resources/files.js +18 -9
  200. package/resources/files.js.map +1 -1
  201. package/resources/files.mjs +18 -8
  202. package/resources/files.mjs.map +1 -1
  203. package/resources/index.d.ts +11 -15
  204. package/resources/index.d.ts.map +1 -1
  205. package/resources/index.js +15 -21
  206. package/resources/index.js.map +1 -1
  207. package/resources/index.mjs +9 -11
  208. package/resources/index.mjs.map +1 -1
  209. package/resources/inspect.d.ts +3 -71
  210. package/resources/inspect.d.ts.map +1 -1
  211. package/resources/inspect.js +2 -1
  212. package/resources/inspect.js.map +1 -1
  213. package/resources/inspect.mjs +2 -0
  214. package/resources/inspect.mjs.map +1 -1
  215. package/resources/models/index.d.ts +2 -2
  216. package/resources/models/index.d.ts.map +1 -1
  217. package/resources/models/index.js +2 -1
  218. package/resources/models/index.js.map +1 -1
  219. package/resources/models/index.mjs +2 -0
  220. package/resources/models/index.mjs.map +1 -1
  221. package/resources/models/models.d.ts +71 -31
  222. package/resources/models/models.d.ts.map +1 -1
  223. package/resources/models/models.js +13 -2
  224. package/resources/models/models.js.map +1 -1
  225. package/resources/models/models.mjs +13 -1
  226. package/resources/models/models.mjs.map +1 -1
  227. package/resources/models/openai.d.ts +2 -16
  228. package/resources/models/openai.d.ts.map +1 -1
  229. package/resources/models/openai.js +3 -2
  230. package/resources/models/openai.js.map +1 -1
  231. package/resources/models/openai.mjs +3 -1
  232. package/resources/models/openai.mjs.map +1 -1
  233. package/resources/models.js +2 -1
  234. package/resources/models.js.map +1 -1
  235. package/resources/models.mjs +2 -0
  236. package/resources/models.mjs.map +1 -1
  237. package/resources/moderations.d.ts +9 -35
  238. package/resources/moderations.d.ts.map +1 -1
  239. package/resources/moderations.js +5 -2
  240. package/resources/moderations.js.map +1 -1
  241. package/resources/moderations.mjs +5 -1
  242. package/resources/moderations.mjs.map +1 -1
  243. package/resources/prompts/index.d.ts +3 -0
  244. package/resources/prompts/index.d.ts.map +1 -0
  245. package/resources/prompts/index.js +15 -0
  246. package/resources/prompts/index.js.map +1 -0
  247. package/resources/prompts/index.mjs +10 -0
  248. package/resources/prompts/index.mjs.map +1 -0
  249. package/resources/prompts/prompts.d.ts +96 -0
  250. package/resources/prompts/prompts.d.ts.map +1 -0
  251. package/resources/{agents/agents.js → prompts/prompts.js} +43 -30
  252. package/resources/prompts/prompts.js.map +1 -0
  253. package/resources/prompts/prompts.mjs +66 -0
  254. package/resources/prompts/prompts.mjs.map +1 -0
  255. package/resources/prompts/versions.d.ts +12 -0
  256. package/resources/prompts/versions.d.ts.map +1 -0
  257. package/resources/prompts/versions.js +23 -0
  258. package/resources/prompts/versions.js.map +1 -0
  259. package/resources/prompts/versions.mjs +19 -0
  260. package/resources/prompts/versions.mjs.map +1 -0
  261. package/resources/prompts.d.ts +2 -0
  262. package/resources/prompts.d.ts.map +1 -0
  263. package/resources/prompts.js +25 -0
  264. package/resources/prompts.js.map +1 -0
  265. package/resources/prompts.mjs +9 -0
  266. package/resources/prompts.mjs.map +1 -0
  267. package/resources/providers.d.ts +4 -13
  268. package/resources/providers.d.ts.map +1 -1
  269. package/resources/providers.js +2 -1
  270. package/resources/providers.js.map +1 -1
  271. package/resources/providers.mjs +2 -0
  272. package/resources/providers.mjs.map +1 -1
  273. package/resources/responses/index.js +2 -1
  274. package/resources/responses/index.js.map +1 -1
  275. package/resources/responses/index.mjs +2 -0
  276. package/resources/responses/index.mjs.map +1 -1
  277. package/resources/responses/input-items.d.ts +246 -151
  278. package/resources/responses/input-items.d.ts.map +1 -1
  279. package/resources/responses/input-items.js +3 -2
  280. package/resources/responses/input-items.js.map +1 -1
  281. package/resources/responses/input-items.mjs +3 -1
  282. package/resources/responses/input-items.mjs.map +1 -1
  283. package/resources/responses/responses.d.ts +1841 -1455
  284. package/resources/responses/responses.d.ts.map +1 -1
  285. package/resources/responses/responses.js +8 -11
  286. package/resources/responses/responses.js.map +1 -1
  287. package/resources/responses/responses.mjs +8 -10
  288. package/resources/responses/responses.mjs.map +1 -1
  289. package/resources/responses.js +2 -1
  290. package/resources/responses.js.map +1 -1
  291. package/resources/responses.mjs +2 -0
  292. package/resources/responses.mjs.map +1 -1
  293. package/resources/routes.d.ts +11 -10
  294. package/resources/routes.d.ts.map +1 -1
  295. package/resources/routes.js +8 -6
  296. package/resources/routes.js.map +1 -1
  297. package/resources/routes.mjs +8 -5
  298. package/resources/routes.mjs.map +1 -1
  299. package/resources/safety.d.ts +144 -10
  300. package/resources/safety.d.ts.map +1 -1
  301. package/resources/safety.js +4 -1
  302. package/resources/safety.js.map +1 -1
  303. package/resources/safety.mjs +4 -0
  304. package/resources/safety.mjs.map +1 -1
  305. package/resources/scoring-functions.d.ts +120 -50
  306. package/resources/scoring-functions.d.ts.map +1 -1
  307. package/resources/scoring-functions.js +15 -1
  308. package/resources/scoring-functions.js.map +1 -1
  309. package/resources/scoring-functions.mjs +15 -0
  310. package/resources/scoring-functions.mjs.map +1 -1
  311. package/resources/scoring.d.ts +85 -26
  312. package/resources/scoring.d.ts.map +1 -1
  313. package/resources/scoring.js +2 -1
  314. package/resources/scoring.js.map +1 -1
  315. package/resources/scoring.mjs +2 -0
  316. package/resources/scoring.mjs.map +1 -1
  317. package/resources/shared.d.ts +173 -591
  318. package/resources/shared.d.ts.map +1 -1
  319. package/resources/shared.js +2 -0
  320. package/resources/shared.js.map +1 -1
  321. package/resources/shared.mjs +2 -0
  322. package/resources/shared.mjs.map +1 -1
  323. package/resources/shields.d.ts +19 -24
  324. package/resources/shields.d.ts.map +1 -1
  325. package/resources/shields.js +6 -1
  326. package/resources/shields.js.map +1 -1
  327. package/resources/shields.mjs +6 -0
  328. package/resources/shields.mjs.map +1 -1
  329. package/resources/tool-runtime.d.ts +151 -1
  330. package/resources/tool-runtime.d.ts.map +1 -1
  331. package/resources/tool-runtime.js +22 -16
  332. package/resources/tool-runtime.js.map +1 -1
  333. package/resources/tool-runtime.mjs +20 -1
  334. package/resources/tool-runtime.mjs.map +1 -1
  335. package/resources/toolgroups.d.ts +27 -37
  336. package/resources/toolgroups.d.ts.map +1 -1
  337. package/resources/toolgroups.js +10 -1
  338. package/resources/toolgroups.js.map +1 -1
  339. package/resources/toolgroups.mjs +10 -0
  340. package/resources/toolgroups.mjs.map +1 -1
  341. package/resources/tools.d.ts +9 -76
  342. package/resources/tools.d.ts.map +1 -1
  343. package/resources/tools.js +4 -1
  344. package/resources/tools.js.map +1 -1
  345. package/resources/tools.mjs +4 -0
  346. package/resources/tools.mjs.map +1 -1
  347. package/resources/vector-io.d.ts +272 -148
  348. package/resources/vector-io.d.ts.map +1 -1
  349. package/resources/vector-io.js +2 -1
  350. package/resources/vector-io.js.map +1 -1
  351. package/resources/vector-io.mjs +2 -0
  352. package/resources/vector-io.mjs.map +1 -1
  353. package/resources/vector-stores/file-batches.d.ts +111 -0
  354. package/resources/vector-stores/file-batches.d.ts.map +1 -0
  355. package/resources/vector-stores/file-batches.js +45 -0
  356. package/resources/vector-stores/file-batches.js.map +1 -0
  357. package/resources/vector-stores/file-batches.mjs +41 -0
  358. package/resources/vector-stores/file-batches.mjs.map +1 -0
  359. package/resources/vector-stores/files.d.ts +83 -135
  360. package/resources/vector-stores/files.d.ts.map +1 -1
  361. package/resources/vector-stores/files.js +15 -14
  362. package/resources/vector-stores/files.js.map +1 -1
  363. package/resources/vector-stores/files.mjs +15 -13
  364. package/resources/vector-stores/files.mjs.map +1 -1
  365. package/resources/vector-stores/index.d.ts +2 -1
  366. package/resources/vector-stores/index.d.ts.map +1 -1
  367. package/resources/vector-stores/index.js +5 -2
  368. package/resources/vector-stores/index.js.map +1 -1
  369. package/resources/vector-stores/index.mjs +3 -0
  370. package/resources/vector-stores/index.mjs.map +1 -1
  371. package/resources/vector-stores/vector-stores.d.ts +118 -217
  372. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  373. package/resources/vector-stores/vector-stores.js +18 -12
  374. package/resources/vector-stores/vector-stores.js.map +1 -1
  375. package/resources/vector-stores/vector-stores.mjs +18 -11
  376. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  377. package/resources/vector-stores.js +2 -1
  378. package/resources/vector-stores.js.map +1 -1
  379. package/resources/vector-stores.mjs +2 -0
  380. package/resources/vector-stores.mjs.map +1 -1
  381. package/src/error.ts +1 -0
  382. package/src/index.ts +92 -267
  383. package/src/lib/response-helpers.ts +60 -0
  384. package/src/pagination.ts +2 -5
  385. package/src/resource.ts +1 -0
  386. package/src/resources/alpha/admin.ts +84 -0
  387. package/src/resources/alpha/alpha.ts +93 -0
  388. package/src/resources/{benchmarks.ts → alpha/benchmarks.ts} +51 -16
  389. package/src/resources/{eval → alpha/eval}/eval.ts +83 -65
  390. package/src/resources/{eval → alpha/eval}/index.ts +1 -2
  391. package/src/resources/{eval → alpha/eval}/jobs.ts +6 -6
  392. package/src/resources/{eval.ts → alpha/eval.ts} +1 -0
  393. package/src/resources/alpha/index.ts +36 -0
  394. package/src/resources/alpha/inference.ts +132 -0
  395. package/src/resources/{post-training → alpha/post-training}/index.ts +1 -1
  396. package/src/resources/alpha/post-training/job.ts +177 -0
  397. package/src/resources/alpha/post-training/post-training.ts +372 -0
  398. package/src/resources/{post-training.ts → alpha/post-training.ts} +1 -1
  399. package/src/resources/alpha.ts +9 -0
  400. package/src/resources/batches.ts +572 -0
  401. package/src/resources/beta/beta.ts +41 -0
  402. package/src/resources/{datasets.ts → beta/datasets.ts} +128 -110
  403. package/src/resources/beta/index.ts +20 -0
  404. package/src/resources/{agents.ts → beta.ts} +2 -2
  405. package/src/resources/chat/chat.ts +84 -83
  406. package/src/resources/chat/completions.ts +876 -1486
  407. package/src/resources/chat/index.ts +1 -2
  408. package/src/resources/chat.ts +1 -1
  409. package/src/resources/completions.ts +59 -103
  410. package/src/resources/conversations/conversations.ts +491 -0
  411. package/src/resources/conversations/index.ts +25 -0
  412. package/src/resources/conversations/items.ts +1365 -0
  413. package/src/resources/conversations.ts +9 -0
  414. package/src/resources/embeddings.ts +14 -55
  415. package/src/resources/files.ts +54 -61
  416. package/src/resources/index.ts +35 -111
  417. package/src/resources/inspect.ts +4 -84
  418. package/src/resources/models/index.ts +4 -2
  419. package/src/resources/models/models.ts +79 -30
  420. package/src/resources/models/openai.ts +4 -24
  421. package/src/resources/models.ts +1 -1
  422. package/src/resources/moderations.ts +10 -36
  423. package/src/resources/prompts/index.ts +19 -0
  424. package/src/resources/prompts/prompts.ts +171 -0
  425. package/src/resources/prompts/versions.ts +26 -0
  426. package/src/resources/prompts.ts +9 -0
  427. package/src/resources/providers.ts +5 -18
  428. package/src/resources/responses/index.ts +1 -1
  429. package/src/resources/responses/input-items.ts +365 -161
  430. package/src/resources/responses/responses.ts +2959 -1870
  431. package/src/resources/responses.ts +1 -1
  432. package/src/resources/routes.ts +25 -14
  433. package/src/resources/safety.ts +199 -9
  434. package/src/resources/scoring-functions.ts +168 -52
  435. package/src/resources/scoring.ts +125 -22
  436. package/src/resources/shared.ts +187 -665
  437. package/src/resources/shields.ts +18 -23
  438. package/src/resources/tool-runtime.ts +210 -2
  439. package/src/resources/toolgroups.ts +26 -36
  440. package/src/resources/tools.ts +10 -94
  441. package/src/resources/vector-io.ts +323 -145
  442. package/src/resources/vector-stores/file-batches.ts +201 -0
  443. package/src/resources/vector-stores/files.ts +123 -143
  444. package/src/resources/vector-stores/index.ts +9 -1
  445. package/src/resources/vector-stores/vector-stores.ts +150 -216
  446. package/src/resources/vector-stores.ts +1 -1
  447. package/src/version.ts +1 -1
  448. package/version.d.ts +1 -1
  449. package/version.d.ts.map +1 -1
  450. package/version.js +1 -1
  451. package/version.js.map +1 -1
  452. package/version.mjs +1 -1
  453. package/version.mjs.map +1 -1
  454. package/resources/agents/agents.d.ts +0 -246
  455. package/resources/agents/agents.d.ts.map +0 -1
  456. package/resources/agents/agents.js.map +0 -1
  457. package/resources/agents/agents.mjs +0 -52
  458. package/resources/agents/agents.mjs.map +0 -1
  459. package/resources/agents/index.d.ts +0 -5
  460. package/resources/agents/index.d.ts.map +0 -1
  461. package/resources/agents/index.js +0 -18
  462. package/resources/agents/index.js.map +0 -1
  463. package/resources/agents/index.mjs +0 -10
  464. package/resources/agents/index.mjs.map +0 -1
  465. package/resources/agents/session.d.ts +0 -98
  466. package/resources/agents/session.d.ts.map +0 -1
  467. package/resources/agents/session.js +0 -42
  468. package/resources/agents/session.js.map +0 -1
  469. package/resources/agents/session.mjs +0 -37
  470. package/resources/agents/session.mjs.map +0 -1
  471. package/resources/agents/steps.d.ts +0 -22
  472. package/resources/agents/steps.d.ts.map +0 -1
  473. package/resources/agents/steps.js.map +0 -1
  474. package/resources/agents/steps.mjs +0 -15
  475. package/resources/agents/steps.mjs.map +0 -1
  476. package/resources/agents/turn.d.ts +0 -461
  477. package/resources/agents/turn.d.ts.map +0 -1
  478. package/resources/agents/turn.js +0 -34
  479. package/resources/agents/turn.js.map +0 -1
  480. package/resources/agents/turn.mjs +0 -29
  481. package/resources/agents/turn.mjs.map +0 -1
  482. package/resources/agents.d.ts +0 -2
  483. package/resources/agents.d.ts.map +0 -1
  484. package/resources/agents.js.map +0 -1
  485. package/resources/agents.mjs +0 -7
  486. package/resources/agents.mjs.map +0 -1
  487. package/resources/benchmarks.d.ts.map +0 -1
  488. package/resources/benchmarks.js.map +0 -1
  489. package/resources/benchmarks.mjs +0 -31
  490. package/resources/benchmarks.mjs.map +0 -1
  491. package/resources/datasets.d.ts.map +0 -1
  492. package/resources/datasets.js.map +0 -1
  493. package/resources/datasets.mjs.map +0 -1
  494. package/resources/eval/eval.d.ts +0 -159
  495. package/resources/eval/eval.d.ts.map +0 -1
  496. package/resources/eval/eval.js.map +0 -1
  497. package/resources/eval/eval.mjs.map +0 -1
  498. package/resources/eval/index.d.ts +0 -3
  499. package/resources/eval/index.d.ts.map +0 -1
  500. package/resources/eval/index.js.map +0 -1
  501. package/resources/eval/index.mjs.map +0 -1
  502. package/resources/eval/jobs.d.ts.map +0 -1
  503. package/resources/eval/jobs.js.map +0 -1
  504. package/resources/eval/jobs.mjs.map +0 -1
  505. package/resources/eval.d.ts.map +0 -1
  506. package/resources/eval.js.map +0 -1
  507. package/resources/eval.mjs.map +0 -1
  508. package/resources/inference.d.ts +0 -580
  509. package/resources/inference.d.ts.map +0 -1
  510. package/resources/inference.js +0 -54
  511. package/resources/inference.js.map +0 -1
  512. package/resources/inference.mjs +0 -49
  513. package/resources/inference.mjs.map +0 -1
  514. package/resources/post-training/index.d.ts.map +0 -1
  515. package/resources/post-training/index.js.map +0 -1
  516. package/resources/post-training/index.mjs.map +0 -1
  517. package/resources/post-training/job.d.ts +0 -205
  518. package/resources/post-training/job.d.ts.map +0 -1
  519. package/resources/post-training/job.js.map +0 -1
  520. package/resources/post-training/job.mjs.map +0 -1
  521. package/resources/post-training/post-training.d.ts +0 -402
  522. package/resources/post-training/post-training.d.ts.map +0 -1
  523. package/resources/post-training/post-training.js.map +0 -1
  524. package/resources/post-training/post-training.mjs.map +0 -1
  525. package/resources/post-training.d.ts.map +0 -1
  526. package/resources/post-training.js.map +0 -1
  527. package/resources/post-training.mjs.map +0 -1
  528. package/resources/synthetic-data-generation.d.ts +0 -47
  529. package/resources/synthetic-data-generation.d.ts.map +0 -1
  530. package/resources/synthetic-data-generation.js +0 -20
  531. package/resources/synthetic-data-generation.js.map +0 -1
  532. package/resources/synthetic-data-generation.mjs +0 -15
  533. package/resources/synthetic-data-generation.mjs.map +0 -1
  534. package/resources/telemetry.d.ts +0 -519
  535. package/resources/telemetry.d.ts.map +0 -1
  536. package/resources/telemetry.js +0 -70
  537. package/resources/telemetry.js.map +0 -1
  538. package/resources/telemetry.mjs +0 -65
  539. package/resources/telemetry.mjs.map +0 -1
  540. package/resources/tool-runtime/index.d.ts +0 -3
  541. package/resources/tool-runtime/index.d.ts.map +0 -1
  542. package/resources/tool-runtime/index.js +0 -14
  543. package/resources/tool-runtime/index.js.map +0 -1
  544. package/resources/tool-runtime/index.mjs +0 -8
  545. package/resources/tool-runtime/index.mjs.map +0 -1
  546. package/resources/tool-runtime/rag-tool.d.ts +0 -45
  547. package/resources/tool-runtime/rag-tool.d.ts.map +0 -1
  548. package/resources/tool-runtime/rag-tool.js +0 -30
  549. package/resources/tool-runtime/rag-tool.js.map +0 -1
  550. package/resources/tool-runtime/rag-tool.mjs +0 -25
  551. package/resources/tool-runtime/rag-tool.mjs.map +0 -1
  552. package/resources/tool-runtime/tool-runtime.d.ts +0 -132
  553. package/resources/tool-runtime/tool-runtime.d.ts.map +0 -1
  554. package/resources/tool-runtime/tool-runtime.js.map +0 -1
  555. package/resources/tool-runtime/tool-runtime.mjs +0 -29
  556. package/resources/tool-runtime/tool-runtime.mjs.map +0 -1
  557. package/resources/vector-dbs.d.ts +0 -128
  558. package/resources/vector-dbs.d.ts.map +0 -1
  559. package/resources/vector-dbs.js +0 -41
  560. package/resources/vector-dbs.js.map +0 -1
  561. package/resources/vector-dbs.mjs +0 -36
  562. package/resources/vector-dbs.mjs.map +0 -1
  563. package/src/resources/agents/agents.ts +0 -372
  564. package/src/resources/agents/index.ts +0 -44
  565. package/src/resources/agents/session.ts +0 -169
  566. package/src/resources/agents/steps.ts +0 -47
  567. package/src/resources/agents/turn.ts +0 -638
  568. package/src/resources/inference.ts +0 -768
  569. package/src/resources/post-training/job.ts +0 -274
  570. package/src/resources/post-training/post-training.ts +0 -516
  571. package/src/resources/synthetic-data-generation.ts +0 -65
  572. package/src/resources/telemetry.ts +0 -692
  573. package/src/resources/tool-runtime/index.ts +0 -17
  574. package/src/resources/tool-runtime/rag-tool.ts +0 -69
  575. package/src/resources/tool-runtime/tool-runtime.ts +0 -191
  576. package/src/resources/vector-dbs.ts +0 -191
  577. /package/resources/{eval.d.ts → alpha/eval.d.ts} +0 -0
  578. /package/resources/{eval.mjs → alpha/eval.mjs} +0 -0
  579. /package/resources/{post-training → alpha/post-training}/index.d.ts +0 -0
  580. /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,33 +27,9 @@ 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);
33
- ```
34
-
35
- ## Streaming responses
36
-
37
- We provide support for streaming responses using Server Sent Events (SSE).
38
-
39
- ```ts
40
- import LlamaStackClient from 'llama-stack-client';
41
-
42
- const client = new LlamaStackClient();
43
-
44
- const stream = await client.inference.chatCompletion({
45
- messages: [{ content: 'string', role: 'user' }],
46
- model_id: 'model_id',
47
- stream: true,
48
- });
49
- for await (const chatCompletionResponseStreamChunk of stream) {
50
- console.log(chatCompletionResponseStreamChunk.completion_message);
51
- }
30
+ const models = await client.models.list();
52
31
  ```
53
32
 
54
- If you need to cancel a stream, you can `break` from the loop
55
- or call `stream.controller.abort()`.
56
-
57
33
  ### Request & Response types
58
34
 
59
35
  This library includes TypeScript definitions for all request params and response fields. You may import and use them like so:
@@ -64,11 +40,11 @@ import LlamaStackClient from 'llama-stack-client';
64
40
 
65
41
  const client = new LlamaStackClient();
66
42
 
67
- const params: LlamaStackClient.InferenceChatCompletionParams = {
43
+ const params: LlamaStackClient.Chat.CompletionCreateParams = {
68
44
  messages: [{ content: 'string', role: 'user' }],
69
- model_id: 'model_id',
45
+ model: 'model',
70
46
  };
71
- const chatCompletionResponse: LlamaStackClient.ChatCompletionResponse = await client.inference.chatCompletion(
47
+ const completion: LlamaStackClient.Chat.CompletionCreateResponse = await client.chat.completions.create(
72
48
  params,
73
49
  );
74
50
  ```
@@ -113,8 +89,8 @@ a subclass of `APIError` will be thrown:
113
89
 
114
90
  <!-- prettier-ignore -->
115
91
  ```ts
116
- const chatCompletionResponse = await client.inference
117
- .chatCompletion({ messages: [{ content: 'string', role: 'user' }], model_id: 'model_id' })
92
+ const completion = await client.chat.completions
93
+ .create({ messages: [{ content: 'string', role: 'user' }], model: 'model' })
118
94
  .catch(async (err) => {
119
95
  if (err instanceof LlamaStackClient.APIError) {
120
96
  console.log(err.status); // 400
@@ -155,7 +131,7 @@ const client = new LlamaStackClient({
155
131
  });
156
132
 
157
133
  // Or, configure per-request:
158
- await client.inference.chatCompletion({ messages: [{ content: 'string', role: 'user' }], model_id: 'model_id' }, {
134
+ await client.chat.completions.create({ messages: [{ content: 'string', role: 'user' }], model: 'model' }, {
159
135
  maxRetries: 5,
160
136
  });
161
137
  ```
@@ -172,7 +148,7 @@ const client = new LlamaStackClient({
172
148
  });
173
149
 
174
150
  // Override per-request:
175
- await client.inference.chatCompletion({ messages: [{ content: 'string', role: 'user' }], model_id: 'model_id' }, {
151
+ await client.chat.completions.create({ messages: [{ content: 'string', role: 'user' }], model: 'model' }, {
176
152
  timeout: 5 * 1000,
177
153
  });
178
154
  ```
@@ -181,6 +157,37 @@ On timeout, an `APIConnectionTimeoutError` is thrown.
181
157
 
182
158
  Note that requests which time out will be [retried twice by default](#retries).
183
159
 
160
+ ## Auto-pagination
161
+
162
+ List methods in the LlamaStackClient API are paginated.
163
+ You can use the `for await … of` syntax to iterate through items across all pages:
164
+
165
+ ```ts
166
+ async function fetchAllResponseListResponses(params) {
167
+ const allResponseListResponses = [];
168
+ // Automatically fetches more pages as needed.
169
+ for await (const responseListResponse of client.responses.list()) {
170
+ allResponseListResponses.push(responseListResponse);
171
+ }
172
+ return allResponseListResponses;
173
+ }
174
+ ```
175
+
176
+ Alternatively, you can request a single page at a time:
177
+
178
+ ```ts
179
+ let page = await client.responses.list();
180
+ for (const responseListResponse of page.data) {
181
+ console.log(responseListResponse);
182
+ }
183
+
184
+ // Convenience methods are provided for manually paginating:
185
+ while (page.hasNextPage()) {
186
+ page = await page.getNextPage();
187
+ // ...
188
+ }
189
+ ```
190
+
184
191
  ## Advanced Usage
185
192
 
186
193
  ### Accessing raw Response data (e.g., headers)
@@ -193,17 +200,17 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi
193
200
  ```ts
194
201
  const client = new LlamaStackClient();
195
202
 
196
- const response = await client.inference
197
- .chatCompletion({ messages: [{ content: 'string', role: 'user' }], model_id: 'model_id' })
203
+ const response = await client.chat.completions
204
+ .create({ messages: [{ content: 'string', role: 'user' }], model: 'model' })
198
205
  .asResponse();
199
206
  console.log(response.headers.get('X-My-Header'));
200
207
  console.log(response.statusText); // access the underlying Response object
201
208
 
202
- const { data: chatCompletionResponse, response: raw } = await client.inference
203
- .chatCompletion({ messages: [{ content: 'string', role: 'user' }], model_id: 'model_id' })
209
+ const { data: completion, response: raw } = await client.chat.completions
210
+ .create({ messages: [{ content: 'string', role: 'user' }], model: 'model' })
204
211
  .withResponse();
205
212
  console.log(raw.headers.get('X-My-Header'));
206
- console.log(chatCompletionResponse.completion_message);
213
+ console.log(completion.id);
207
214
  ```
208
215
 
209
216
  ### Making custom/undocumented requests
@@ -307,8 +314,8 @@ const client = new LlamaStackClient({
307
314
  });
308
315
 
309
316
  // Override per-request:
310
- await client.inference.chatCompletion(
311
- { messages: [{ content: 'string', role: 'user' }], model_id: 'model_id' },
317
+ await client.chat.completions.create(
318
+ { messages: [{ content: 'string', role: 'user' }], model: 'model' },
312
319
  {
313
320
  httpAgent: new http.Agent({ keepAlive: false }),
314
321
  },
@@ -350,6 +357,8 @@ If you are interested in other runtime environments, please open or upvote an is
350
357
 
351
358
  See [the contributing documentation](./CONTRIBUTING.md).
352
359
 
360
+ Note: This project uses [yarn](https://classic.yarnpkg.com/) v1 as its package manager for development. Please ensure you have yarn installed before contributing.
361
+
353
362
  ## License
354
363
 
355
364
  This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
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,GAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAO;CAGnD;AAED,qBAAa,kBAAmB,SAAQ,QAAQ,C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,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,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC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AAK,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
- import { HealthInfo, Inspect, ProviderInfo, RouteInfo, VersionInfo } from "./resources/inspect.js";
12
+ import { Inspect } from "./resources/inspect.js";
15
13
  import { CreateResponse, ModerationCreateParams, Moderations } from "./resources/moderations.js";
16
- import { ListProvidersResponse, ProviderListResponse, Providers } from "./resources/providers.js";
17
- import { ListRoutesResponse, RouteListResponse, Routes } from "./resources/routes.js";
14
+ import { ProviderListResponse, Providers } from "./resources/providers.js";
15
+ import { 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,44 @@ 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, };
176
- 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, };
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, };
167
+ export { Inspect as Inspect };
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, };
186
- 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, };
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, };
174
+ export { Providers as Providers, type ProviderListResponse as ProviderListResponse };
175
+ export { Routes as Routes, 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 };
185
+ export type HealthInfo = API.HealthInfo;
203
186
  export type InterleavedContent = API.InterleavedContent;
204
187
  export type InterleavedContentItem = API.InterleavedContentItem;
205
- export type Message = API.Message;
206
- export type Metric = API.Metric;
188
+ export type ListProvidersResponse = API.ListProvidersResponse;
189
+ export type ListRoutesResponse = API.ListRoutesResponse;
207
190
  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;
191
+ export type ProviderInfo = API.ProviderInfo;
192
+ export type RouteInfo = API.RouteInfo;
212
193
  export type SafetyViolation = API.SafetyViolation;
213
194
  export type SamplingParams = API.SamplingParams;
214
195
  export type ScoringResult = API.ScoringResult;
215
196
  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;
197
+ export type VersionInfo = API.VersionInfo;
220
198
  }
199
+ export { getResponseOutputText } from "./lib/response-helpers.js";
221
200
  export { toFile, fileFromPath } from "./uploads.js";
222
201
  export { LlamaStackClientError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
223
202
  export default LlamaStackClient;