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
@@ -1,6 +1,5 @@
1
1
  import { APIResource } from "../resource.js";
2
2
  import * as Core from "../core.js";
3
- import * as Shared from "./shared.js";
4
3
  export declare class VectorIo extends APIResource {
5
4
  /**
6
5
  * Insert chunks into a vector database.
@@ -15,13 +14,7 @@ export declare class VectorIo extends APIResource {
15
14
  * Response from querying chunks in a vector database.
16
15
  */
17
16
  export interface QueryChunksResponse {
18
- /**
19
- * List of content chunks returned from the query
20
- */
21
17
  chunks: Array<QueryChunksResponse.Chunk>;
22
- /**
23
- * Relevance scores corresponding to each returned chunk
24
- */
25
18
  scores: Array<number>;
26
19
  }
27
20
  export declare namespace QueryChunksResponse {
@@ -29,204 +22,335 @@ export declare namespace QueryChunksResponse {
29
22
  * A chunk of content that can be inserted into a vector database.
30
23
  */
31
24
  interface Chunk {
25
+ chunk_id: string;
32
26
  /**
33
- * The content of the chunk, which can be interleaved text, images, or other types.
27
+ * A image content item
34
28
  */
35
- content: Shared.InterleavedContent;
29
+ content: string | Chunk.ImageContentItemOutput | Chunk.TextContentItem | Array<Chunk.ImageContentItemOutput | Chunk.TextContentItem>;
36
30
  /**
37
- * Metadata associated with the chunk that will be used in the model context during
38
- * inference.
31
+ * `ChunkMetadata` is backend metadata for a `Chunk` that is used to store
32
+ * additional information about the chunk that will not be used in the context
33
+ * during inference, but is required for backend functionality. The `ChunkMetadata`
34
+ * is set during chunk creation in `MemoryToolRuntimeImpl().insert()`and is not
35
+ * expected to change after. Use `Chunk.metadata` for metadata that will be used in
36
+ * the context during inference.
39
37
  */
40
- metadata: {
41
- [key: string]: boolean | number | string | Array<unknown> | unknown | null;
38
+ chunk_metadata?: Chunk.ChunkMetadata | null;
39
+ embedding?: Array<number> | null;
40
+ metadata?: {
41
+ [key: string]: unknown;
42
42
  };
43
- /**
44
- * Metadata for the chunk that will NOT be used in the context during inference.
45
- * The `chunk_metadata` is required backend functionality.
46
- */
47
- chunk_metadata?: Chunk.ChunkMetadata;
48
- /**
49
- * Optional embedding for the chunk. If not provided, it will be computed later.
50
- */
51
- embedding?: Array<number>;
52
- /**
53
- * The chunk ID that is stored in the vector database. Used for backend
54
- * functionality.
55
- */
56
- stored_chunk_id?: string;
57
43
  }
58
44
  namespace Chunk {
59
45
  /**
60
- * Metadata for the chunk that will NOT be used in the context during inference.
61
- * The `chunk_metadata` is required backend functionality.
46
+ * A image content item
62
47
  */
63
- interface ChunkMetadata {
64
- /**
65
- * The dimension of the embedding vector for the chunk.
66
- */
67
- chunk_embedding_dimension?: number;
68
- /**
69
- * The embedding model used to create the chunk's embedding.
70
- */
71
- chunk_embedding_model?: string;
72
- /**
73
- * The ID of the chunk. If not set, it will be generated based on the document ID
74
- * and content.
75
- */
76
- chunk_id?: string;
77
- /**
78
- * The tokenizer used to create the chunk. Default is Tiktoken.
79
- */
80
- chunk_tokenizer?: string;
81
- /**
82
- * The window of the chunk, which can be used to group related chunks together.
83
- */
84
- chunk_window?: string;
48
+ interface ImageContentItemOutput {
85
49
  /**
86
- * The number of tokens in the content of the chunk.
50
+ * A URL or a base64 encoded string
87
51
  */
88
- content_token_count?: number;
89
- /**
90
- * An optional timestamp indicating when the chunk was created.
91
- */
92
- created_timestamp?: number;
93
- /**
94
- * The ID of the document this chunk belongs to.
95
- */
96
- document_id?: string;
52
+ image: ImageContentItemOutput.Image;
53
+ type?: 'image';
54
+ }
55
+ namespace ImageContentItemOutput {
97
56
  /**
98
- * The number of tokens in the metadata of the chunk.
57
+ * A URL or a base64 encoded string
99
58
  */
100
- metadata_token_count?: number;
59
+ interface Image {
60
+ data?: string | null;
61
+ /**
62
+ * A URL reference to external content.
63
+ */
64
+ url?: Image.URL | null;
65
+ }
66
+ namespace Image {
67
+ /**
68
+ * A URL reference to external content.
69
+ */
70
+ interface URL {
71
+ uri: string;
72
+ }
73
+ }
74
+ }
75
+ /**
76
+ * A text content item
77
+ */
78
+ interface TextContentItem {
79
+ text: string;
80
+ type?: 'text';
81
+ }
82
+ /**
83
+ * A image content item
84
+ */
85
+ interface ImageContentItemOutput {
101
86
  /**
102
- * The source of the content, such as a URL, file path, or other identifier.
87
+ * A URL or a base64 encoded string
103
88
  */
104
- source?: string;
89
+ image: ImageContentItemOutput.Image;
90
+ type?: 'image';
91
+ }
92
+ namespace ImageContentItemOutput {
105
93
  /**
106
- * An optional timestamp indicating when the chunk was last updated.
94
+ * A URL or a base64 encoded string
107
95
  */
108
- updated_timestamp?: number;
96
+ interface Image {
97
+ data?: string | null;
98
+ /**
99
+ * A URL reference to external content.
100
+ */
101
+ url?: Image.URL | null;
102
+ }
103
+ namespace Image {
104
+ /**
105
+ * A URL reference to external content.
106
+ */
107
+ interface URL {
108
+ uri: string;
109
+ }
110
+ }
111
+ }
112
+ /**
113
+ * A text content item
114
+ */
115
+ interface TextContentItem {
116
+ text: string;
117
+ type?: 'text';
118
+ }
119
+ /**
120
+ * `ChunkMetadata` is backend metadata for a `Chunk` that is used to store
121
+ * additional information about the chunk that will not be used in the context
122
+ * during inference, but is required for backend functionality. The `ChunkMetadata`
123
+ * is set during chunk creation in `MemoryToolRuntimeImpl().insert()`and is not
124
+ * expected to change after. Use `Chunk.metadata` for metadata that will be used in
125
+ * the context during inference.
126
+ */
127
+ interface ChunkMetadata {
128
+ chunk_embedding_dimension?: number | null;
129
+ chunk_embedding_model?: string | null;
130
+ chunk_id?: string | null;
131
+ chunk_tokenizer?: string | null;
132
+ chunk_window?: string | null;
133
+ content_token_count?: number | null;
134
+ created_timestamp?: number | null;
135
+ document_id?: string | null;
136
+ metadata_token_count?: number | null;
137
+ source?: string | null;
138
+ updated_timestamp?: number | null;
109
139
  }
110
140
  }
111
141
  }
112
142
  export interface VectorIoInsertParams {
113
- /**
114
- * The chunks to insert. Each `Chunk` should contain content which can be
115
- * interleaved text, images, or other types. `metadata`: `dict[str, Any]` and
116
- * `embedding`: `List[float]` are optional. If `metadata` is provided, you
117
- * configure how Llama Stack formats the chunk during generation. If `embedding` is
118
- * not provided, it will be computed later.
119
- */
120
143
  chunks: Array<VectorIoInsertParams.Chunk>;
121
- /**
122
- * The identifier of the vector database to insert the chunks into.
123
- */
124
- vector_db_id: string;
125
- /**
126
- * The time to live of the chunks.
127
- */
128
- ttl_seconds?: number;
144
+ vector_store_id: string;
145
+ ttl_seconds?: number | null;
129
146
  }
130
147
  export declare namespace VectorIoInsertParams {
131
148
  /**
132
149
  * A chunk of content that can be inserted into a vector database.
133
150
  */
134
151
  interface Chunk {
152
+ chunk_id: string;
135
153
  /**
136
- * The content of the chunk, which can be interleaved text, images, or other types.
154
+ * A image content item
137
155
  */
138
- content: Shared.InterleavedContent;
156
+ content: string | Chunk.ImageContentItemInput | Chunk.TextContentItem | Array<Chunk.ImageContentItemInput | Chunk.TextContentItem>;
139
157
  /**
140
- * Metadata associated with the chunk that will be used in the model context during
141
- * inference.
158
+ * `ChunkMetadata` is backend metadata for a `Chunk` that is used to store
159
+ * additional information about the chunk that will not be used in the context
160
+ * during inference, but is required for backend functionality. The `ChunkMetadata`
161
+ * is set during chunk creation in `MemoryToolRuntimeImpl().insert()`and is not
162
+ * expected to change after. Use `Chunk.metadata` for metadata that will be used in
163
+ * the context during inference.
142
164
  */
143
- metadata: {
144
- [key: string]: boolean | number | string | Array<unknown> | unknown | null;
165
+ chunk_metadata?: Chunk.ChunkMetadata | null;
166
+ embedding?: Array<number> | null;
167
+ metadata?: {
168
+ [key: string]: unknown;
145
169
  };
146
- /**
147
- * Metadata for the chunk that will NOT be used in the context during inference.
148
- * The `chunk_metadata` is required backend functionality.
149
- */
150
- chunk_metadata?: Chunk.ChunkMetadata;
151
- /**
152
- * Optional embedding for the chunk. If not provided, it will be computed later.
153
- */
154
- embedding?: Array<number>;
155
- /**
156
- * The chunk ID that is stored in the vector database. Used for backend
157
- * functionality.
158
- */
159
- stored_chunk_id?: string;
160
170
  }
161
171
  namespace Chunk {
162
172
  /**
163
- * Metadata for the chunk that will NOT be used in the context during inference.
164
- * The `chunk_metadata` is required backend functionality.
173
+ * A image content item
165
174
  */
166
- interface ChunkMetadata {
175
+ interface ImageContentItemInput {
167
176
  /**
168
- * The dimension of the embedding vector for the chunk.
177
+ * A URL or a base64 encoded string
169
178
  */
170
- chunk_embedding_dimension?: number;
171
- /**
172
- * The embedding model used to create the chunk's embedding.
173
- */
174
- chunk_embedding_model?: string;
175
- /**
176
- * The ID of the chunk. If not set, it will be generated based on the document ID
177
- * and content.
178
- */
179
- chunk_id?: string;
180
- /**
181
- * The tokenizer used to create the chunk. Default is Tiktoken.
182
- */
183
- chunk_tokenizer?: string;
184
- /**
185
- * The window of the chunk, which can be used to group related chunks together.
186
- */
187
- chunk_window?: string;
188
- /**
189
- * The number of tokens in the content of the chunk.
190
- */
191
- content_token_count?: number;
179
+ image: ImageContentItemInput.Image;
180
+ type?: 'image';
181
+ }
182
+ namespace ImageContentItemInput {
192
183
  /**
193
- * An optional timestamp indicating when the chunk was created.
184
+ * A URL or a base64 encoded string
194
185
  */
195
- created_timestamp?: number;
186
+ interface Image {
187
+ data?: string | null;
188
+ /**
189
+ * A URL reference to external content.
190
+ */
191
+ url?: Image.URL | null;
192
+ }
193
+ namespace Image {
194
+ /**
195
+ * A URL reference to external content.
196
+ */
197
+ interface URL {
198
+ uri: string;
199
+ }
200
+ }
201
+ }
202
+ /**
203
+ * A text content item
204
+ */
205
+ interface TextContentItem {
206
+ text: string;
207
+ type?: 'text';
208
+ }
209
+ /**
210
+ * A image content item
211
+ */
212
+ interface ImageContentItemInput {
196
213
  /**
197
- * The ID of the document this chunk belongs to.
214
+ * A URL or a base64 encoded string
198
215
  */
199
- document_id?: string;
216
+ image: ImageContentItemInput.Image;
217
+ type?: 'image';
218
+ }
219
+ namespace ImageContentItemInput {
200
220
  /**
201
- * The number of tokens in the metadata of the chunk.
221
+ * A URL or a base64 encoded string
202
222
  */
203
- metadata_token_count?: number;
223
+ interface Image {
224
+ data?: string | null;
225
+ /**
226
+ * A URL reference to external content.
227
+ */
228
+ url?: Image.URL | null;
229
+ }
230
+ namespace Image {
231
+ /**
232
+ * A URL reference to external content.
233
+ */
234
+ interface URL {
235
+ uri: string;
236
+ }
237
+ }
238
+ }
239
+ /**
240
+ * A text content item
241
+ */
242
+ interface TextContentItem {
243
+ text: string;
244
+ type?: 'text';
245
+ }
246
+ /**
247
+ * `ChunkMetadata` is backend metadata for a `Chunk` that is used to store
248
+ * additional information about the chunk that will not be used in the context
249
+ * during inference, but is required for backend functionality. The `ChunkMetadata`
250
+ * is set during chunk creation in `MemoryToolRuntimeImpl().insert()`and is not
251
+ * expected to change after. Use `Chunk.metadata` for metadata that will be used in
252
+ * the context during inference.
253
+ */
254
+ interface ChunkMetadata {
255
+ chunk_embedding_dimension?: number | null;
256
+ chunk_embedding_model?: string | null;
257
+ chunk_id?: string | null;
258
+ chunk_tokenizer?: string | null;
259
+ chunk_window?: string | null;
260
+ content_token_count?: number | null;
261
+ created_timestamp?: number | null;
262
+ document_id?: string | null;
263
+ metadata_token_count?: number | null;
264
+ source?: string | null;
265
+ updated_timestamp?: number | null;
266
+ }
267
+ }
268
+ }
269
+ export interface VectorIoQueryParams {
270
+ /**
271
+ * A image content item
272
+ */
273
+ query: string | VectorIoQueryParams.ImageContentItemInput | VectorIoQueryParams.TextContentItem | Array<VectorIoQueryParams.ImageContentItemInput | VectorIoQueryParams.TextContentItem>;
274
+ vector_store_id: string;
275
+ params?: {
276
+ [key: string]: unknown;
277
+ } | null;
278
+ }
279
+ export declare namespace VectorIoQueryParams {
280
+ /**
281
+ * A image content item
282
+ */
283
+ interface ImageContentItemInput {
284
+ /**
285
+ * A URL or a base64 encoded string
286
+ */
287
+ image: ImageContentItemInput.Image;
288
+ type?: 'image';
289
+ }
290
+ namespace ImageContentItemInput {
291
+ /**
292
+ * A URL or a base64 encoded string
293
+ */
294
+ interface Image {
295
+ data?: string | null;
204
296
  /**
205
- * The source of the content, such as a URL, file path, or other identifier.
297
+ * A URL reference to external content.
206
298
  */
207
- source?: string;
299
+ url?: Image.URL | null;
300
+ }
301
+ namespace Image {
208
302
  /**
209
- * An optional timestamp indicating when the chunk was last updated.
303
+ * A URL reference to external content.
210
304
  */
211
- updated_timestamp?: number;
305
+ interface URL {
306
+ uri: string;
307
+ }
212
308
  }
213
309
  }
214
- }
215
- export interface VectorIoQueryParams {
216
310
  /**
217
- * The query to search for.
311
+ * A text content item
218
312
  */
219
- query: Shared.InterleavedContent;
313
+ interface TextContentItem {
314
+ text: string;
315
+ type?: 'text';
316
+ }
220
317
  /**
221
- * The identifier of the vector database to query.
318
+ * A image content item
222
319
  */
223
- vector_db_id: string;
320
+ interface ImageContentItemInput {
321
+ /**
322
+ * A URL or a base64 encoded string
323
+ */
324
+ image: ImageContentItemInput.Image;
325
+ type?: 'image';
326
+ }
327
+ namespace ImageContentItemInput {
328
+ /**
329
+ * A URL or a base64 encoded string
330
+ */
331
+ interface Image {
332
+ data?: string | null;
333
+ /**
334
+ * A URL reference to external content.
335
+ */
336
+ url?: Image.URL | null;
337
+ }
338
+ namespace Image {
339
+ /**
340
+ * A URL reference to external content.
341
+ */
342
+ interface URL {
343
+ uri: string;
344
+ }
345
+ }
346
+ }
224
347
  /**
225
- * The parameters of the query.
348
+ * A text content item
226
349
  */
227
- params?: {
228
- [key: string]: boolean | number | string | Array<unknown> | unknown | null;
229
- };
350
+ interface TextContentItem {
351
+ text: string;
352
+ type?: 'text';
353
+ }
230
354
  }
231
355
  export declare namespace VectorIo {
232
356
  export { type QueryChunksResponse as QueryChunksResponse, type VectorIoInsertParams as VectorIoInsertParams, type VectorIoQueryParams as VectorIoQueryParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"vector-io.d.ts","sourceRoot":"","sources":["../src/resources/vector-io.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAQxF;;OAEG;IACH,KAAK,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;CAGtG;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAEzC;;OAEG;IACH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AAqB,CAAC;QACrC;;WAEG;QACH,UAAiB,KAAK;YACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAErB;;eAEG;YACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC;SACxB;QAED,UAAiB,KAAK,CAAC;YACrB;;eAEG;YACH,UAAiB,GAAG;gBAClB,GAAG,EAAE,MAAM,CAAC;aACb;SACF;KACF;IAED;;OAEG;IACH,UAAiB,eAAe;QAC9B,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IAED;;OAEG;IACH,UAAiB,qBAAqB;QACpC;;WAEG;QACH,KAAK,EAAE,qBAAqB,CAAC,KAAK,CAAC;QAEnC,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB;IAED,UAAiB,qBAAqB,CAAC;QACrC;;WAEG;QACH,UAAiB,KAAK;YACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAErB;;eAEG;YACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC;SACxB;QAED,UAAiB,KAAK,CAAC;YACrB;;eAEG;YACH,UAAiB,GAAG;gBAClB,GAAG,EAAE,MAAM,CAAC;aACb;SACF;KACF;IAED;;OAEG;IACH,UAAiB,eAAe;QAC9B,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -4,9 +4,10 @@
4
4
  //
5
5
  // This source code is licensed under the terms described in the LICENSE file in
6
6
  // the root directory of this source tree.
7
+ //
8
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
7
9
  Object.defineProperty(exports, "__esModule", { value: true });
8
10
  exports.VectorIo = void 0;
9
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
10
11
  const resource_1 = require("../resource.js");
11
12
  class VectorIo extends resource_1.APIResource {
12
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"vector-io.js","sourceRoot":"","sources":["../src/resources/vector-io.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;;;AAE1C,sFAAsF;AAEtF,6CAA0C;AAI1C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAyB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAlBD,4BAkBC"}
1
+ {"version":3,"file":"vector-io.js","sourceRoot":"","sources":["../src/resources/vector-io.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAyB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAlBD,4BAkBC"}
@@ -3,6 +3,8 @@
3
3
  //
4
4
  // This source code is licensed under the terms described in the LICENSE file in
5
5
  // the root directory of this source tree.
6
+ //
7
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
6
8
  import { APIResource } from "../resource.mjs";
7
9
  export class VectorIo extends APIResource {
8
10
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"vector-io.mjs","sourceRoot":"","sources":["../src/resources/vector-io.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;OAInC,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAyB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
1
+ {"version":3,"file":"vector-io.mjs","sourceRoot":"","sources":["../src/resources/vector-io.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAyB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
@@ -0,0 +1,111 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as FilesAPI from "./files.js";
4
+ import { VectorStoreFilesOpenAICursorPage } from "./files.js";
5
+ import { type OpenAICursorPageParams } from "../../pagination.js";
6
+ export declare class FileBatches extends APIResource {
7
+ /**
8
+ * Create a vector store file batch.
9
+ *
10
+ * Generate an OpenAI-compatible vector store file batch for the given vector
11
+ * store.
12
+ */
13
+ create(vectorStoreId: string, body: FileBatchCreateParams, options?: Core.RequestOptions): Core.APIPromise<VectorStoreFileBatches>;
14
+ /**
15
+ * Retrieve a vector store file batch.
16
+ */
17
+ retrieve(vectorStoreId: string, batchId: string, options?: Core.RequestOptions): Core.APIPromise<VectorStoreFileBatches>;
18
+ /**
19
+ * Cancels a vector store file batch.
20
+ */
21
+ cancel(vectorStoreId: string, batchId: string, options?: Core.RequestOptions): Core.APIPromise<VectorStoreFileBatches>;
22
+ /**
23
+ * Returns a list of vector store files in a batch.
24
+ */
25
+ listFiles(vectorStoreId: string, batchId: string, query?: FileBatchListFilesParams, options?: Core.RequestOptions): Core.PagePromise<VectorStoreFilesOpenAICursorPage, FilesAPI.VectorStoreFile>;
26
+ listFiles(vectorStoreId: string, batchId: string, options?: Core.RequestOptions): Core.PagePromise<VectorStoreFilesOpenAICursorPage, FilesAPI.VectorStoreFile>;
27
+ }
28
+ /**
29
+ * Response from listing files in a vector store file batch.
30
+ */
31
+ export interface ListVectorStoreFilesInBatchResponse {
32
+ data: Array<FilesAPI.VectorStoreFile>;
33
+ first_id?: string | null;
34
+ has_more?: boolean;
35
+ last_id?: string | null;
36
+ object?: string;
37
+ }
38
+ /**
39
+ * OpenAI Vector Store File Batch object.
40
+ */
41
+ export interface VectorStoreFileBatches {
42
+ id: string;
43
+ created_at: number;
44
+ /**
45
+ * File processing status counts for a vector store.
46
+ */
47
+ file_counts: VectorStoreFileBatches.FileCounts;
48
+ status: 'completed' | 'in_progress' | 'cancelled' | 'failed';
49
+ vector_store_id: string;
50
+ object?: string;
51
+ }
52
+ export declare namespace VectorStoreFileBatches {
53
+ /**
54
+ * File processing status counts for a vector store.
55
+ */
56
+ interface FileCounts {
57
+ cancelled: number;
58
+ completed: number;
59
+ failed: number;
60
+ in_progress: number;
61
+ total: number;
62
+ }
63
+ }
64
+ export interface FileBatchCreateParams {
65
+ file_ids: Array<string>;
66
+ attributes?: {
67
+ [key: string]: unknown;
68
+ } | null;
69
+ /**
70
+ * Automatic chunking strategy for vector store files.
71
+ */
72
+ chunking_strategy?: FileBatchCreateParams.VectorStoreChunkingStrategyAuto | FileBatchCreateParams.VectorStoreChunkingStrategyStatic | null;
73
+ [k: string]: unknown;
74
+ }
75
+ export declare namespace FileBatchCreateParams {
76
+ /**
77
+ * Automatic chunking strategy for vector store files.
78
+ */
79
+ interface VectorStoreChunkingStrategyAuto {
80
+ type?: 'auto';
81
+ }
82
+ /**
83
+ * Static chunking strategy with configurable parameters.
84
+ */
85
+ interface VectorStoreChunkingStrategyStatic {
86
+ /**
87
+ * Configuration for static chunking strategy.
88
+ */
89
+ static: VectorStoreChunkingStrategyStatic.Static;
90
+ type?: 'static';
91
+ }
92
+ namespace VectorStoreChunkingStrategyStatic {
93
+ /**
94
+ * Configuration for static chunking strategy.
95
+ */
96
+ interface Static {
97
+ chunk_overlap_tokens?: number;
98
+ max_chunk_size_tokens?: number;
99
+ }
100
+ }
101
+ }
102
+ export interface FileBatchListFilesParams extends OpenAICursorPageParams {
103
+ before?: string | null;
104
+ filter?: string | null;
105
+ order?: string | null;
106
+ }
107
+ export declare namespace FileBatches {
108
+ export { type ListVectorStoreFilesInBatchResponse as ListVectorStoreFilesInBatchResponse, type VectorStoreFileBatches as VectorStoreFileBatches, type FileBatchCreateParams as FileBatchCreateParams, type FileBatchListFilesParams as FileBatchListFilesParams, };
109
+ }
110
+ export { VectorStoreFilesOpenAICursorPage };
111
+ //# sourceMappingURL=file-batches.d.ts.map