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.
- package/CHANGELOG.md +153 -0
- package/README.md +48 -39
- package/error.d.ts.map +1 -1
- package/error.js +1 -0
- package/error.js.map +1 -1
- package/error.mjs.map +1 -1
- package/index.d.mts +33 -54
- package/index.d.ts +33 -54
- package/index.d.ts.map +1 -1
- package/index.js +20 -29
- package/index.js.map +1 -1
- package/index.mjs +18 -28
- package/index.mjs.map +1 -1
- package/lib/response-helpers.d.ts +23 -0
- package/lib/response-helpers.d.ts.map +1 -0
- package/lib/response-helpers.js +53 -0
- package/lib/response-helpers.js.map +1 -0
- package/lib/response-helpers.mjs +49 -0
- package/lib/response-helpers.mjs.map +1 -0
- package/package.json +7 -1
- package/pagination.d.ts.map +1 -1
- package/pagination.js +2 -4
- package/pagination.js.map +1 -1
- package/pagination.mjs +1 -4
- package/pagination.mjs.map +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/alpha/admin.d.ts +41 -0
- package/resources/alpha/admin.d.ts.map +1 -0
- package/resources/alpha/admin.js +46 -0
- package/resources/alpha/admin.js.map +1 -0
- package/resources/alpha/admin.mjs +42 -0
- package/resources/alpha/admin.mjs.map +1 -0
- package/resources/alpha/alpha.d.ts +26 -0
- package/resources/alpha/alpha.d.ts.map +1 -0
- package/resources/alpha/alpha.js +61 -0
- package/resources/alpha/alpha.js.map +1 -0
- package/resources/alpha/alpha.mjs +34 -0
- package/resources/alpha/alpha.mjs.map +1 -0
- package/resources/{benchmarks.d.ts → alpha/benchmarks.d.ts} +41 -15
- package/resources/alpha/benchmarks.d.ts.map +1 -0
- package/resources/{benchmarks.js → alpha/benchmarks.js} +18 -4
- package/resources/alpha/benchmarks.js.map +1 -0
- package/resources/alpha/benchmarks.mjs +44 -0
- package/resources/alpha/benchmarks.mjs.map +1 -0
- package/resources/alpha/eval/eval.d.ts +160 -0
- package/resources/alpha/eval/eval.d.ts.map +1 -0
- package/resources/{eval → alpha/eval}/eval.js +7 -6
- package/resources/alpha/eval/eval.js.map +1 -0
- package/resources/{eval → alpha/eval}/eval.mjs +7 -5
- package/resources/alpha/eval/eval.mjs.map +1 -0
- package/resources/alpha/eval/index.d.ts +3 -0
- package/resources/alpha/eval/index.d.ts.map +1 -0
- package/resources/{eval → alpha/eval}/index.js +2 -1
- package/resources/alpha/eval/index.js.map +1 -0
- package/resources/{eval → alpha/eval}/index.mjs +2 -0
- package/resources/alpha/eval/index.mjs.map +1 -0
- package/resources/{eval → alpha/eval}/jobs.d.ts +2 -2
- package/resources/alpha/eval/jobs.d.ts.map +1 -0
- package/resources/{eval → alpha/eval}/jobs.js +6 -5
- package/resources/alpha/eval/jobs.js.map +1 -0
- package/resources/{eval → alpha/eval}/jobs.mjs +6 -4
- package/resources/alpha/eval/jobs.mjs.map +1 -0
- package/resources/alpha/eval.d.ts.map +1 -0
- package/resources/{eval.js → alpha/eval.js} +1 -0
- package/resources/alpha/eval.js.map +1 -0
- package/resources/alpha/eval.mjs.map +1 -0
- package/resources/alpha/index.d.ts +7 -0
- package/resources/alpha/index.d.ts.map +1 -0
- package/resources/alpha/index.js +23 -0
- package/resources/alpha/index.js.map +1 -0
- package/resources/alpha/index.mjs +14 -0
- package/resources/alpha/index.mjs.map +1 -0
- package/resources/alpha/inference.d.ts +85 -0
- package/resources/alpha/inference.d.ts.map +1 -0
- package/resources/{agents/steps.js → alpha/inference.js} +9 -8
- package/resources/alpha/inference.js.map +1 -0
- package/resources/alpha/inference.mjs +17 -0
- package/resources/alpha/inference.mjs.map +1 -0
- package/resources/alpha/post-training/index.d.ts.map +1 -0
- package/resources/{post-training → alpha/post-training}/index.js +2 -1
- package/resources/alpha/post-training/index.js.map +1 -0
- package/resources/{post-training → alpha/post-training}/index.mjs +2 -0
- package/resources/alpha/post-training/index.mjs.map +1 -0
- package/resources/alpha/post-training/job.d.ts +113 -0
- package/resources/alpha/post-training/job.d.ts.map +1 -0
- package/resources/{post-training → alpha/post-training}/job.js +7 -6
- package/resources/alpha/post-training/job.js.map +1 -0
- package/resources/{post-training → alpha/post-training}/job.mjs +7 -5
- package/resources/alpha/post-training/job.mjs.map +1 -0
- package/resources/alpha/post-training/post-training.d.ts +245 -0
- package/resources/alpha/post-training/post-training.d.ts.map +1 -0
- package/resources/{post-training → alpha/post-training}/post-training.js +5 -4
- package/resources/alpha/post-training/post-training.js.map +1 -0
- package/resources/{post-training → alpha/post-training}/post-training.mjs +5 -3
- package/resources/alpha/post-training/post-training.mjs.map +1 -0
- package/resources/alpha/post-training.d.ts.map +1 -0
- package/resources/{post-training.js → alpha/post-training.js} +2 -1
- package/resources/alpha/post-training.js.map +1 -0
- package/resources/{post-training.mjs → alpha/post-training.mjs} +2 -0
- package/resources/alpha/post-training.mjs.map +1 -0
- package/resources/alpha.d.ts +2 -0
- package/resources/alpha.d.ts.map +1 -0
- package/resources/alpha.js +25 -0
- package/resources/alpha.js.map +1 -0
- package/resources/alpha.mjs +9 -0
- package/resources/alpha.mjs.map +1 -0
- package/resources/batches.d.ts +322 -0
- package/resources/batches.d.ts.map +1 -0
- package/resources/batches.js +45 -0
- package/resources/batches.js.map +1 -0
- package/resources/batches.mjs +40 -0
- package/resources/batches.mjs.map +1 -0
- package/resources/beta/beta.d.ts +10 -0
- package/resources/beta/beta.d.ts.map +1 -0
- package/resources/{tool-runtime/tool-runtime.js → beta/beta.js} +10 -22
- package/resources/beta/beta.js.map +1 -0
- package/resources/beta/beta.mjs +18 -0
- package/resources/beta/beta.mjs.map +1 -0
- package/resources/{datasets.d.ts → beta/datasets.d.ts} +117 -99
- package/resources/beta/datasets.d.ts.map +1 -0
- package/resources/{datasets.js → beta/datasets.js} +14 -9
- package/resources/beta/datasets.js.map +1 -0
- package/resources/{datasets.mjs → beta/datasets.mjs} +14 -8
- package/resources/beta/datasets.mjs.map +1 -0
- package/resources/beta/index.d.ts +3 -0
- package/resources/beta/index.d.ts.map +1 -0
- package/resources/beta/index.js +15 -0
- package/resources/beta/index.js.map +1 -0
- package/resources/beta/index.mjs +10 -0
- package/resources/beta/index.mjs.map +1 -0
- package/resources/beta.d.ts +2 -0
- package/resources/beta.d.ts.map +1 -0
- package/resources/{agents.js → beta.js} +4 -3
- package/resources/beta.js.map +1 -0
- package/resources/beta.mjs +9 -0
- package/resources/beta.mjs.map +1 -0
- package/resources/chat/chat.d.ts +75 -80
- package/resources/chat/chat.d.ts.map +1 -1
- package/resources/chat/chat.js +2 -2
- package/resources/chat/chat.js.map +1 -1
- package/resources/chat/chat.mjs +3 -2
- package/resources/chat/chat.mjs.map +1 -1
- package/resources/chat/completions.d.ts +760 -1406
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/chat/completions.js +8 -14
- package/resources/chat/completions.js.map +1 -1
- package/resources/chat/completions.mjs +7 -11
- package/resources/chat/completions.mjs.map +1 -1
- package/resources/chat/index.d.ts +1 -1
- package/resources/chat/index.d.ts.map +1 -1
- package/resources/chat/index.js +3 -3
- package/resources/chat/index.js.map +1 -1
- package/resources/chat/index.mjs +3 -1
- package/resources/chat/index.mjs.map +1 -1
- package/resources/chat.js +2 -1
- package/resources/chat.js.map +1 -1
- package/resources/chat.mjs +2 -0
- package/resources/chat.mjs.map +1 -1
- package/resources/completions.d.ts +54 -97
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js +3 -6
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs +3 -5
- package/resources/completions.mjs.map +1 -1
- package/resources/conversations/conversations.d.ts +320 -0
- package/resources/conversations/conversations.d.ts.map +1 -0
- package/resources/conversations/conversations.js +78 -0
- package/resources/conversations/conversations.js.map +1 -0
- package/resources/conversations/conversations.mjs +51 -0
- package/resources/conversations/conversations.mjs.map +1 -0
- package/resources/conversations/index.d.ts +3 -0
- package/resources/conversations/index.d.ts.map +1 -0
- package/resources/conversations/index.js +16 -0
- package/resources/conversations/index.js.map +1 -0
- package/resources/conversations/index.mjs +10 -0
- package/resources/conversations/index.mjs.map +1 -0
- package/resources/conversations/items.d.ts +874 -0
- package/resources/conversations/items.d.ts.map +1 -0
- package/resources/conversations/items.js +51 -0
- package/resources/conversations/items.js.map +1 -0
- package/resources/conversations/items.mjs +46 -0
- package/resources/conversations/items.mjs.map +1 -0
- package/resources/conversations.d.ts +2 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +25 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +9 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/embeddings.d.ts +10 -52
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/embeddings.js +5 -2
- package/resources/embeddings.js.map +1 -1
- package/resources/embeddings.mjs +5 -1
- package/resources/embeddings.mjs.map +1 -1
- package/resources/files.d.ts +44 -54
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +18 -9
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +18 -8
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.ts +11 -15
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -21
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +9 -11
- package/resources/index.mjs.map +1 -1
- package/resources/inspect.d.ts +3 -71
- package/resources/inspect.d.ts.map +1 -1
- package/resources/inspect.js +2 -1
- package/resources/inspect.js.map +1 -1
- package/resources/inspect.mjs +2 -0
- package/resources/inspect.mjs.map +1 -1
- package/resources/models/index.d.ts +2 -2
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js +2 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs +2 -0
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.ts +71 -31
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +13 -2
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +13 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/openai.d.ts +2 -16
- package/resources/models/openai.d.ts.map +1 -1
- package/resources/models/openai.js +3 -2
- package/resources/models/openai.js.map +1 -1
- package/resources/models/openai.mjs +3 -1
- package/resources/models/openai.mjs.map +1 -1
- package/resources/models.js +2 -1
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +2 -0
- package/resources/models.mjs.map +1 -1
- package/resources/moderations.d.ts +9 -35
- package/resources/moderations.d.ts.map +1 -1
- package/resources/moderations.js +5 -2
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +5 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/prompts/index.d.ts +3 -0
- package/resources/prompts/index.d.ts.map +1 -0
- package/resources/prompts/index.js +15 -0
- package/resources/prompts/index.js.map +1 -0
- package/resources/prompts/index.mjs +10 -0
- package/resources/prompts/index.mjs.map +1 -0
- package/resources/prompts/prompts.d.ts +96 -0
- package/resources/prompts/prompts.d.ts.map +1 -0
- package/resources/{agents/agents.js → prompts/prompts.js} +43 -30
- package/resources/prompts/prompts.js.map +1 -0
- package/resources/prompts/prompts.mjs +66 -0
- package/resources/prompts/prompts.mjs.map +1 -0
- package/resources/prompts/versions.d.ts +12 -0
- package/resources/prompts/versions.d.ts.map +1 -0
- package/resources/prompts/versions.js +23 -0
- package/resources/prompts/versions.js.map +1 -0
- package/resources/prompts/versions.mjs +19 -0
- package/resources/prompts/versions.mjs.map +1 -0
- package/resources/prompts.d.ts +2 -0
- package/resources/prompts.d.ts.map +1 -0
- package/resources/prompts.js +25 -0
- package/resources/prompts.js.map +1 -0
- package/resources/prompts.mjs +9 -0
- package/resources/prompts.mjs.map +1 -0
- package/resources/providers.d.ts +4 -13
- package/resources/providers.d.ts.map +1 -1
- package/resources/providers.js +2 -1
- package/resources/providers.js.map +1 -1
- package/resources/providers.mjs +2 -0
- package/resources/providers.mjs.map +1 -1
- package/resources/responses/index.js +2 -1
- package/resources/responses/index.js.map +1 -1
- package/resources/responses/index.mjs +2 -0
- package/resources/responses/index.mjs.map +1 -1
- package/resources/responses/input-items.d.ts +246 -151
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/input-items.js +3 -2
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +3 -1
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/responses.d.ts +1841 -1455
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +8 -11
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +8 -10
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/responses.js +2 -1
- package/resources/responses.js.map +1 -1
- package/resources/responses.mjs +2 -0
- package/resources/responses.mjs.map +1 -1
- package/resources/routes.d.ts +11 -10
- package/resources/routes.d.ts.map +1 -1
- package/resources/routes.js +8 -6
- package/resources/routes.js.map +1 -1
- package/resources/routes.mjs +8 -5
- package/resources/routes.mjs.map +1 -1
- package/resources/safety.d.ts +144 -10
- package/resources/safety.d.ts.map +1 -1
- package/resources/safety.js +4 -1
- package/resources/safety.js.map +1 -1
- package/resources/safety.mjs +4 -0
- package/resources/safety.mjs.map +1 -1
- package/resources/scoring-functions.d.ts +120 -50
- package/resources/scoring-functions.d.ts.map +1 -1
- package/resources/scoring-functions.js +15 -1
- package/resources/scoring-functions.js.map +1 -1
- package/resources/scoring-functions.mjs +15 -0
- package/resources/scoring-functions.mjs.map +1 -1
- package/resources/scoring.d.ts +85 -26
- package/resources/scoring.d.ts.map +1 -1
- package/resources/scoring.js +2 -1
- package/resources/scoring.js.map +1 -1
- package/resources/scoring.mjs +2 -0
- package/resources/scoring.mjs.map +1 -1
- package/resources/shared.d.ts +173 -591
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js +2 -0
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs +2 -0
- package/resources/shared.mjs.map +1 -1
- package/resources/shields.d.ts +19 -24
- package/resources/shields.d.ts.map +1 -1
- package/resources/shields.js +6 -1
- package/resources/shields.js.map +1 -1
- package/resources/shields.mjs +6 -0
- package/resources/shields.mjs.map +1 -1
- package/resources/tool-runtime.d.ts +151 -1
- package/resources/tool-runtime.d.ts.map +1 -1
- package/resources/tool-runtime.js +22 -16
- package/resources/tool-runtime.js.map +1 -1
- package/resources/tool-runtime.mjs +20 -1
- package/resources/tool-runtime.mjs.map +1 -1
- package/resources/toolgroups.d.ts +27 -37
- package/resources/toolgroups.d.ts.map +1 -1
- package/resources/toolgroups.js +10 -1
- package/resources/toolgroups.js.map +1 -1
- package/resources/toolgroups.mjs +10 -0
- package/resources/toolgroups.mjs.map +1 -1
- package/resources/tools.d.ts +9 -76
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +4 -1
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +4 -0
- package/resources/tools.mjs.map +1 -1
- package/resources/vector-io.d.ts +272 -148
- package/resources/vector-io.d.ts.map +1 -1
- package/resources/vector-io.js +2 -1
- package/resources/vector-io.js.map +1 -1
- package/resources/vector-io.mjs +2 -0
- package/resources/vector-io.mjs.map +1 -1
- package/resources/vector-stores/file-batches.d.ts +111 -0
- package/resources/vector-stores/file-batches.d.ts.map +1 -0
- package/resources/vector-stores/file-batches.js +45 -0
- package/resources/vector-stores/file-batches.js.map +1 -0
- package/resources/vector-stores/file-batches.mjs +41 -0
- package/resources/vector-stores/file-batches.mjs.map +1 -0
- package/resources/vector-stores/files.d.ts +83 -135
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +15 -14
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +15 -13
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.d.ts +2 -1
- package/resources/vector-stores/index.d.ts.map +1 -1
- package/resources/vector-stores/index.js +5 -2
- package/resources/vector-stores/index.js.map +1 -1
- package/resources/vector-stores/index.mjs +3 -0
- package/resources/vector-stores/index.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +118 -217
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +18 -12
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +18 -11
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/vector-stores.js +2 -1
- package/resources/vector-stores.js.map +1 -1
- package/resources/vector-stores.mjs +2 -0
- package/resources/vector-stores.mjs.map +1 -1
- package/src/error.ts +1 -0
- package/src/index.ts +92 -267
- package/src/lib/response-helpers.ts +60 -0
- package/src/pagination.ts +2 -5
- package/src/resource.ts +1 -0
- package/src/resources/alpha/admin.ts +84 -0
- package/src/resources/alpha/alpha.ts +93 -0
- package/src/resources/{benchmarks.ts → alpha/benchmarks.ts} +51 -16
- package/src/resources/{eval → alpha/eval}/eval.ts +83 -65
- package/src/resources/{eval → alpha/eval}/index.ts +1 -2
- package/src/resources/{eval → alpha/eval}/jobs.ts +6 -6
- package/src/resources/{eval.ts → alpha/eval.ts} +1 -0
- package/src/resources/alpha/index.ts +36 -0
- package/src/resources/alpha/inference.ts +132 -0
- package/src/resources/{post-training → alpha/post-training}/index.ts +1 -1
- package/src/resources/alpha/post-training/job.ts +177 -0
- package/src/resources/alpha/post-training/post-training.ts +372 -0
- package/src/resources/{post-training.ts → alpha/post-training.ts} +1 -1
- package/src/resources/alpha.ts +9 -0
- package/src/resources/batches.ts +572 -0
- package/src/resources/beta/beta.ts +41 -0
- package/src/resources/{datasets.ts → beta/datasets.ts} +128 -110
- package/src/resources/beta/index.ts +20 -0
- package/src/resources/{agents.ts → beta.ts} +2 -2
- package/src/resources/chat/chat.ts +84 -83
- package/src/resources/chat/completions.ts +876 -1486
- package/src/resources/chat/index.ts +1 -2
- package/src/resources/chat.ts +1 -1
- package/src/resources/completions.ts +59 -103
- package/src/resources/conversations/conversations.ts +491 -0
- package/src/resources/conversations/index.ts +25 -0
- package/src/resources/conversations/items.ts +1365 -0
- package/src/resources/conversations.ts +9 -0
- package/src/resources/embeddings.ts +14 -55
- package/src/resources/files.ts +54 -61
- package/src/resources/index.ts +35 -111
- package/src/resources/inspect.ts +4 -84
- package/src/resources/models/index.ts +4 -2
- package/src/resources/models/models.ts +79 -30
- package/src/resources/models/openai.ts +4 -24
- package/src/resources/models.ts +1 -1
- package/src/resources/moderations.ts +10 -36
- package/src/resources/prompts/index.ts +19 -0
- package/src/resources/prompts/prompts.ts +171 -0
- package/src/resources/prompts/versions.ts +26 -0
- package/src/resources/prompts.ts +9 -0
- package/src/resources/providers.ts +5 -18
- package/src/resources/responses/index.ts +1 -1
- package/src/resources/responses/input-items.ts +365 -161
- package/src/resources/responses/responses.ts +2959 -1870
- package/src/resources/responses.ts +1 -1
- package/src/resources/routes.ts +25 -14
- package/src/resources/safety.ts +199 -9
- package/src/resources/scoring-functions.ts +168 -52
- package/src/resources/scoring.ts +125 -22
- package/src/resources/shared.ts +187 -665
- package/src/resources/shields.ts +18 -23
- package/src/resources/tool-runtime.ts +210 -2
- package/src/resources/toolgroups.ts +26 -36
- package/src/resources/tools.ts +10 -94
- package/src/resources/vector-io.ts +323 -145
- package/src/resources/vector-stores/file-batches.ts +201 -0
- package/src/resources/vector-stores/files.ts +123 -143
- package/src/resources/vector-stores/index.ts +9 -1
- package/src/resources/vector-stores/vector-stores.ts +150 -216
- package/src/resources/vector-stores.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/agents/agents.d.ts +0 -246
- package/resources/agents/agents.d.ts.map +0 -1
- package/resources/agents/agents.js.map +0 -1
- package/resources/agents/agents.mjs +0 -52
- package/resources/agents/agents.mjs.map +0 -1
- package/resources/agents/index.d.ts +0 -5
- package/resources/agents/index.d.ts.map +0 -1
- package/resources/agents/index.js +0 -18
- package/resources/agents/index.js.map +0 -1
- package/resources/agents/index.mjs +0 -10
- package/resources/agents/index.mjs.map +0 -1
- package/resources/agents/session.d.ts +0 -98
- package/resources/agents/session.d.ts.map +0 -1
- package/resources/agents/session.js +0 -42
- package/resources/agents/session.js.map +0 -1
- package/resources/agents/session.mjs +0 -37
- package/resources/agents/session.mjs.map +0 -1
- package/resources/agents/steps.d.ts +0 -22
- package/resources/agents/steps.d.ts.map +0 -1
- package/resources/agents/steps.js.map +0 -1
- package/resources/agents/steps.mjs +0 -15
- package/resources/agents/steps.mjs.map +0 -1
- package/resources/agents/turn.d.ts +0 -461
- package/resources/agents/turn.d.ts.map +0 -1
- package/resources/agents/turn.js +0 -34
- package/resources/agents/turn.js.map +0 -1
- package/resources/agents/turn.mjs +0 -29
- package/resources/agents/turn.mjs.map +0 -1
- package/resources/agents.d.ts +0 -2
- package/resources/agents.d.ts.map +0 -1
- package/resources/agents.js.map +0 -1
- package/resources/agents.mjs +0 -7
- package/resources/agents.mjs.map +0 -1
- package/resources/benchmarks.d.ts.map +0 -1
- package/resources/benchmarks.js.map +0 -1
- package/resources/benchmarks.mjs +0 -31
- package/resources/benchmarks.mjs.map +0 -1
- package/resources/datasets.d.ts.map +0 -1
- package/resources/datasets.js.map +0 -1
- package/resources/datasets.mjs.map +0 -1
- package/resources/eval/eval.d.ts +0 -159
- package/resources/eval/eval.d.ts.map +0 -1
- package/resources/eval/eval.js.map +0 -1
- package/resources/eval/eval.mjs.map +0 -1
- package/resources/eval/index.d.ts +0 -3
- package/resources/eval/index.d.ts.map +0 -1
- package/resources/eval/index.js.map +0 -1
- package/resources/eval/index.mjs.map +0 -1
- package/resources/eval/jobs.d.ts.map +0 -1
- package/resources/eval/jobs.js.map +0 -1
- package/resources/eval/jobs.mjs.map +0 -1
- package/resources/eval.d.ts.map +0 -1
- package/resources/eval.js.map +0 -1
- package/resources/eval.mjs.map +0 -1
- package/resources/inference.d.ts +0 -580
- package/resources/inference.d.ts.map +0 -1
- package/resources/inference.js +0 -54
- package/resources/inference.js.map +0 -1
- package/resources/inference.mjs +0 -49
- package/resources/inference.mjs.map +0 -1
- package/resources/post-training/index.d.ts.map +0 -1
- package/resources/post-training/index.js.map +0 -1
- package/resources/post-training/index.mjs.map +0 -1
- package/resources/post-training/job.d.ts +0 -205
- package/resources/post-training/job.d.ts.map +0 -1
- package/resources/post-training/job.js.map +0 -1
- package/resources/post-training/job.mjs.map +0 -1
- package/resources/post-training/post-training.d.ts +0 -402
- package/resources/post-training/post-training.d.ts.map +0 -1
- package/resources/post-training/post-training.js.map +0 -1
- package/resources/post-training/post-training.mjs.map +0 -1
- package/resources/post-training.d.ts.map +0 -1
- package/resources/post-training.js.map +0 -1
- package/resources/post-training.mjs.map +0 -1
- package/resources/synthetic-data-generation.d.ts +0 -47
- package/resources/synthetic-data-generation.d.ts.map +0 -1
- package/resources/synthetic-data-generation.js +0 -20
- package/resources/synthetic-data-generation.js.map +0 -1
- package/resources/synthetic-data-generation.mjs +0 -15
- package/resources/synthetic-data-generation.mjs.map +0 -1
- package/resources/telemetry.d.ts +0 -519
- package/resources/telemetry.d.ts.map +0 -1
- package/resources/telemetry.js +0 -70
- package/resources/telemetry.js.map +0 -1
- package/resources/telemetry.mjs +0 -65
- package/resources/telemetry.mjs.map +0 -1
- package/resources/tool-runtime/index.d.ts +0 -3
- package/resources/tool-runtime/index.d.ts.map +0 -1
- package/resources/tool-runtime/index.js +0 -14
- package/resources/tool-runtime/index.js.map +0 -1
- package/resources/tool-runtime/index.mjs +0 -8
- package/resources/tool-runtime/index.mjs.map +0 -1
- package/resources/tool-runtime/rag-tool.d.ts +0 -45
- package/resources/tool-runtime/rag-tool.d.ts.map +0 -1
- package/resources/tool-runtime/rag-tool.js +0 -30
- package/resources/tool-runtime/rag-tool.js.map +0 -1
- package/resources/tool-runtime/rag-tool.mjs +0 -25
- package/resources/tool-runtime/rag-tool.mjs.map +0 -1
- package/resources/tool-runtime/tool-runtime.d.ts +0 -132
- package/resources/tool-runtime/tool-runtime.d.ts.map +0 -1
- package/resources/tool-runtime/tool-runtime.js.map +0 -1
- package/resources/tool-runtime/tool-runtime.mjs +0 -29
- package/resources/tool-runtime/tool-runtime.mjs.map +0 -1
- package/resources/vector-dbs.d.ts +0 -128
- package/resources/vector-dbs.d.ts.map +0 -1
- package/resources/vector-dbs.js +0 -41
- package/resources/vector-dbs.js.map +0 -1
- package/resources/vector-dbs.mjs +0 -36
- package/resources/vector-dbs.mjs.map +0 -1
- package/src/resources/agents/agents.ts +0 -372
- package/src/resources/agents/index.ts +0 -44
- package/src/resources/agents/session.ts +0 -169
- package/src/resources/agents/steps.ts +0 -47
- package/src/resources/agents/turn.ts +0 -638
- package/src/resources/inference.ts +0 -768
- package/src/resources/post-training/job.ts +0 -274
- package/src/resources/post-training/post-training.ts +0 -516
- package/src/resources/synthetic-data-generation.ts +0 -65
- package/src/resources/telemetry.ts +0 -692
- package/src/resources/tool-runtime/index.ts +0 -17
- package/src/resources/tool-runtime/rag-tool.ts +0 -69
- package/src/resources/tool-runtime/tool-runtime.ts +0 -191
- package/src/resources/vector-dbs.ts +0 -191
- /package/resources/{eval.d.ts → alpha/eval.d.ts} +0 -0
- /package/resources/{eval.mjs → alpha/eval.mjs} +0 -0
- /package/resources/{post-training → alpha/post-training}/index.d.ts +0 -0
- /package/resources/{post-training.d.ts → alpha/post-training.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-batches.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/file-batches.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE/D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;OAKG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAA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AED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH;AAED,OAAO,EAAE,gCAAgC,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
+
// the root directory of this source tree.
|
|
7
|
+
//
|
|
8
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.VectorStoreFilesOpenAICursorPage = exports.FileBatches = void 0;
|
|
11
|
+
const resource_1 = require("../../resource.js");
|
|
12
|
+
const core_1 = require("../../core.js");
|
|
13
|
+
const files_1 = require("./files.js");
|
|
14
|
+
Object.defineProperty(exports, "VectorStoreFilesOpenAICursorPage", { enumerable: true, get: function () { return files_1.VectorStoreFilesOpenAICursorPage; } });
|
|
15
|
+
class FileBatches extends resource_1.APIResource {
|
|
16
|
+
/**
|
|
17
|
+
* Create a vector store file batch.
|
|
18
|
+
*
|
|
19
|
+
* Generate an OpenAI-compatible vector store file batch for the given vector
|
|
20
|
+
* store.
|
|
21
|
+
*/
|
|
22
|
+
create(vectorStoreId, body, options) {
|
|
23
|
+
return this._client.post(`/v1/vector_stores/${vectorStoreId}/file_batches`, { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve a vector store file batch.
|
|
27
|
+
*/
|
|
28
|
+
retrieve(vectorStoreId, batchId, options) {
|
|
29
|
+
return this._client.get(`/v1/vector_stores/${vectorStoreId}/file_batches/${batchId}`, options);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Cancels a vector store file batch.
|
|
33
|
+
*/
|
|
34
|
+
cancel(vectorStoreId, batchId, options) {
|
|
35
|
+
return this._client.post(`/v1/vector_stores/${vectorStoreId}/file_batches/${batchId}/cancel`, options);
|
|
36
|
+
}
|
|
37
|
+
listFiles(vectorStoreId, batchId, query = {}, options) {
|
|
38
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
39
|
+
return this.listFiles(vectorStoreId, batchId, {}, query);
|
|
40
|
+
}
|
|
41
|
+
return this._client.getAPIList(`/v1/vector_stores/${vectorStoreId}/file_batches/${batchId}/files`, files_1.VectorStoreFilesOpenAICursorPage, { query, ...options });
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.FileBatches = FileBatches;
|
|
45
|
+
//# sourceMappingURL=file-batches.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-batches.js","sourceRoot":"","sources":["../../src/resources/vector-stores/file-batches.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,sCAA2D;AA4LlD,iHA5LA,wCAAgC,OA4LA;AAzLzC,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;OAKG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,aAAa,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,aAAqB,EACrB,OAAe,EACf,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,aAAa,iBAAiB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACjG,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,aAAqB,EACrB,OAAe,EACf,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,aAAa,iBAAiB,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;IAgBD,SAAS,CACP,aAAqB,EACrB,OAAe,EACf,QAAwD,EAAE,EAC1D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC1D;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,qBAAqB,aAAa,iBAAiB,OAAO,QAAQ,EAClE,wCAAgC,EAChC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAlED,kCAkEC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
// All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
+
// the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
+
import { APIResource } from "../../resource.mjs";
|
|
9
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
10
|
+
import { VectorStoreFilesOpenAICursorPage } from "./files.mjs";
|
|
11
|
+
export class FileBatches extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Create a vector store file batch.
|
|
14
|
+
*
|
|
15
|
+
* Generate an OpenAI-compatible vector store file batch for the given vector
|
|
16
|
+
* store.
|
|
17
|
+
*/
|
|
18
|
+
create(vectorStoreId, body, options) {
|
|
19
|
+
return this._client.post(`/v1/vector_stores/${vectorStoreId}/file_batches`, { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Retrieve a vector store file batch.
|
|
23
|
+
*/
|
|
24
|
+
retrieve(vectorStoreId, batchId, options) {
|
|
25
|
+
return this._client.get(`/v1/vector_stores/${vectorStoreId}/file_batches/${batchId}`, options);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Cancels a vector store file batch.
|
|
29
|
+
*/
|
|
30
|
+
cancel(vectorStoreId, batchId, options) {
|
|
31
|
+
return this._client.post(`/v1/vector_stores/${vectorStoreId}/file_batches/${batchId}/cancel`, options);
|
|
32
|
+
}
|
|
33
|
+
listFiles(vectorStoreId, batchId, query = {}, options) {
|
|
34
|
+
if (isRequestOptions(query)) {
|
|
35
|
+
return this.listFiles(vectorStoreId, batchId, {}, query);
|
|
36
|
+
}
|
|
37
|
+
return this._client.getAPIList(`/v1/vector_stores/${vectorStoreId}/file_batches/${batchId}/files`, VectorStoreFilesOpenAICursorPage, { query, ...options });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export { VectorStoreFilesOpenAICursorPage };
|
|
41
|
+
//# sourceMappingURL=file-batches.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-batches.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/file-batches.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,EAAE,gCAAgC,EAAE;AAG3C,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;OAKG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,aAAa,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,aAAqB,EACrB,OAAe,EACf,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,aAAa,iBAAiB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACjG,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,aAAqB,EACrB,OAAe,EACf,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,aAAa,iBAAiB,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;IAgBD,SAAS,CACP,aAAqB,EACrB,OAAe,EACf,QAAwD,EAAE,EAC1D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC1D;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,qBAAqB,aAAa,iBAAiB,OAAO,QAAQ,EAClE,gCAAgC,EAChC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAuHD,OAAO,EAAE,gCAAgC,EAAE,CAAC"}
|
|
@@ -26,6 +26,7 @@ export declare class Files extends APIResource {
|
|
|
26
26
|
/**
|
|
27
27
|
* Retrieves the contents of a vector store file.
|
|
28
28
|
*/
|
|
29
|
+
content(vectorStoreId: string, fileId: string, query?: FileContentParams, options?: Core.RequestOptions): Core.APIPromise<FileContentResponse>;
|
|
29
30
|
content(vectorStoreId: string, fileId: string, options?: Core.RequestOptions): Core.APIPromise<FileContentResponse>;
|
|
30
31
|
}
|
|
31
32
|
export declare class VectorStoreFilesOpenAICursorPage extends OpenAICursorPage<VectorStoreFile> {
|
|
@@ -34,94 +35,62 @@ export declare class VectorStoreFilesOpenAICursorPage extends OpenAICursorPage<V
|
|
|
34
35
|
* OpenAI Vector Store File object.
|
|
35
36
|
*/
|
|
36
37
|
export interface VectorStoreFile {
|
|
37
|
-
/**
|
|
38
|
-
* Unique identifier for the file
|
|
39
|
-
*/
|
|
40
38
|
id: string;
|
|
41
39
|
/**
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
attributes: {
|
|
45
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Strategy used for splitting the file into chunks
|
|
40
|
+
* Automatic chunking strategy for vector store files.
|
|
49
41
|
*/
|
|
50
42
|
chunking_strategy: VectorStoreFile.VectorStoreChunkingStrategyAuto | VectorStoreFile.VectorStoreChunkingStrategyStatic;
|
|
51
|
-
/**
|
|
52
|
-
* Timestamp when the file was added to the vector store
|
|
53
|
-
*/
|
|
54
43
|
created_at: number;
|
|
55
|
-
/**
|
|
56
|
-
* Object type identifier, always "vector_store.file"
|
|
57
|
-
*/
|
|
58
|
-
object: string;
|
|
59
|
-
/**
|
|
60
|
-
* Current processing status of the file
|
|
61
|
-
*/
|
|
62
44
|
status: 'completed' | 'in_progress' | 'cancelled' | 'failed';
|
|
45
|
+
vector_store_id: string;
|
|
63
46
|
/**
|
|
64
|
-
*
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
*
|
|
47
|
+
* Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
48
|
+
* for storing additional information about the object in a structured format, and
|
|
49
|
+
* querying for objects via API or the dashboard. Keys are strings with a maximum
|
|
50
|
+
* length of 64 characters. Values are strings with a maximum length of 512
|
|
51
|
+
* characters, booleans, or numbers.
|
|
69
52
|
*/
|
|
70
|
-
|
|
53
|
+
attributes?: {
|
|
54
|
+
[key: string]: string | number | boolean;
|
|
55
|
+
};
|
|
71
56
|
/**
|
|
72
|
-
*
|
|
57
|
+
* Error information for failed vector store file processing.
|
|
73
58
|
*/
|
|
74
|
-
last_error?: VectorStoreFile.LastError;
|
|
59
|
+
last_error?: VectorStoreFile.LastError | null;
|
|
60
|
+
object?: string;
|
|
61
|
+
usage_bytes?: number;
|
|
75
62
|
}
|
|
76
63
|
export declare namespace VectorStoreFile {
|
|
77
64
|
/**
|
|
78
65
|
* Automatic chunking strategy for vector store files.
|
|
79
66
|
*/
|
|
80
67
|
interface VectorStoreChunkingStrategyAuto {
|
|
81
|
-
|
|
82
|
-
* Strategy type, always "auto" for automatic chunking
|
|
83
|
-
*/
|
|
84
|
-
type: 'auto';
|
|
68
|
+
type?: 'auto';
|
|
85
69
|
}
|
|
86
70
|
/**
|
|
87
71
|
* Static chunking strategy with configurable parameters.
|
|
88
72
|
*/
|
|
89
73
|
interface VectorStoreChunkingStrategyStatic {
|
|
90
74
|
/**
|
|
91
|
-
* Configuration
|
|
75
|
+
* Configuration for static chunking strategy.
|
|
92
76
|
*/
|
|
93
77
|
static: VectorStoreChunkingStrategyStatic.Static;
|
|
94
|
-
|
|
95
|
-
* Strategy type, always "static" for static chunking
|
|
96
|
-
*/
|
|
97
|
-
type: 'static';
|
|
78
|
+
type?: 'static';
|
|
98
79
|
}
|
|
99
80
|
namespace VectorStoreChunkingStrategyStatic {
|
|
100
81
|
/**
|
|
101
|
-
* Configuration
|
|
82
|
+
* Configuration for static chunking strategy.
|
|
102
83
|
*/
|
|
103
84
|
interface Static {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
*/
|
|
107
|
-
chunk_overlap_tokens: number;
|
|
108
|
-
/**
|
|
109
|
-
* Maximum number of tokens per chunk, must be between 100 and 4096
|
|
110
|
-
*/
|
|
111
|
-
max_chunk_size_tokens: number;
|
|
85
|
+
chunk_overlap_tokens?: number;
|
|
86
|
+
max_chunk_size_tokens?: number;
|
|
112
87
|
}
|
|
113
88
|
}
|
|
114
89
|
/**
|
|
115
|
-
*
|
|
90
|
+
* Error information for failed vector store file processing.
|
|
116
91
|
*/
|
|
117
92
|
interface LastError {
|
|
118
|
-
/**
|
|
119
|
-
* Error code indicating the type of failure
|
|
120
|
-
*/
|
|
121
93
|
code: 'server_error' | 'rate_limit_exceeded';
|
|
122
|
-
/**
|
|
123
|
-
* Human-readable error message describing the failure
|
|
124
|
-
*/
|
|
125
94
|
message: string;
|
|
126
95
|
}
|
|
127
96
|
}
|
|
@@ -129,137 +98,116 @@ export declare namespace VectorStoreFile {
|
|
|
129
98
|
* Response from deleting a vector store file.
|
|
130
99
|
*/
|
|
131
100
|
export interface FileDeleteResponse {
|
|
132
|
-
/**
|
|
133
|
-
* Unique identifier of the deleted file
|
|
134
|
-
*/
|
|
135
101
|
id: string;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
*/
|
|
139
|
-
deleted: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* Object type identifier for the deletion response
|
|
142
|
-
*/
|
|
143
|
-
object: string;
|
|
102
|
+
deleted?: boolean;
|
|
103
|
+
object?: string;
|
|
144
104
|
}
|
|
145
105
|
/**
|
|
146
|
-
*
|
|
106
|
+
* Represents the parsed content of a vector store file.
|
|
147
107
|
*/
|
|
148
108
|
export interface FileContentResponse {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* List of content items from the file
|
|
157
|
-
*/
|
|
158
|
-
content: Array<FileContentResponse.Content>;
|
|
159
|
-
/**
|
|
160
|
-
* Unique identifier for the file
|
|
161
|
-
*/
|
|
162
|
-
file_id: string;
|
|
163
|
-
/**
|
|
164
|
-
* Name of the file
|
|
165
|
-
*/
|
|
166
|
-
filename: string;
|
|
109
|
+
data: Array<FileContentResponse.Data>;
|
|
110
|
+
has_more?: boolean;
|
|
111
|
+
next_page?: string | null;
|
|
112
|
+
object?: 'vector_store.file_content.page';
|
|
167
113
|
}
|
|
168
114
|
export declare namespace FileContentResponse {
|
|
169
115
|
/**
|
|
170
116
|
* Content item from a vector store file or search result.
|
|
171
117
|
*/
|
|
172
|
-
interface
|
|
118
|
+
interface Data {
|
|
119
|
+
text: string;
|
|
120
|
+
type: 'text';
|
|
173
121
|
/**
|
|
174
|
-
*
|
|
122
|
+
* `ChunkMetadata` is backend metadata for a `Chunk` that is used to store
|
|
123
|
+
* additional information about the chunk that will not be used in the context
|
|
124
|
+
* during inference, but is required for backend functionality. The `ChunkMetadata`
|
|
125
|
+
* is set during chunk creation in `MemoryToolRuntimeImpl().insert()`and is not
|
|
126
|
+
* expected to change after. Use `Chunk.metadata` for metadata that will be used in
|
|
127
|
+
* the context during inference.
|
|
175
128
|
*/
|
|
176
|
-
|
|
129
|
+
chunk_metadata?: Data.ChunkMetadata | null;
|
|
130
|
+
embedding?: Array<number> | null;
|
|
131
|
+
metadata?: {
|
|
132
|
+
[key: string]: unknown;
|
|
133
|
+
} | null;
|
|
134
|
+
}
|
|
135
|
+
namespace Data {
|
|
177
136
|
/**
|
|
178
|
-
*
|
|
137
|
+
* `ChunkMetadata` is backend metadata for a `Chunk` that is used to store
|
|
138
|
+
* additional information about the chunk that will not be used in the context
|
|
139
|
+
* during inference, but is required for backend functionality. The `ChunkMetadata`
|
|
140
|
+
* is set during chunk creation in `MemoryToolRuntimeImpl().insert()`and is not
|
|
141
|
+
* expected to change after. Use `Chunk.metadata` for metadata that will be used in
|
|
142
|
+
* the context during inference.
|
|
179
143
|
*/
|
|
180
|
-
|
|
144
|
+
interface ChunkMetadata {
|
|
145
|
+
chunk_embedding_dimension?: number | null;
|
|
146
|
+
chunk_embedding_model?: string | null;
|
|
147
|
+
chunk_id?: string | null;
|
|
148
|
+
chunk_tokenizer?: string | null;
|
|
149
|
+
chunk_window?: string | null;
|
|
150
|
+
content_token_count?: number | null;
|
|
151
|
+
created_timestamp?: number | null;
|
|
152
|
+
document_id?: string | null;
|
|
153
|
+
metadata_token_count?: number | null;
|
|
154
|
+
source?: string | null;
|
|
155
|
+
updated_timestamp?: number | null;
|
|
156
|
+
}
|
|
181
157
|
}
|
|
182
158
|
}
|
|
183
159
|
export interface FileCreateParams {
|
|
184
|
-
/**
|
|
185
|
-
* The ID of the file to attach to the vector store.
|
|
186
|
-
*/
|
|
187
160
|
file_id: string;
|
|
188
|
-
/**
|
|
189
|
-
* The key-value attributes stored with the file, which can be used for filtering.
|
|
190
|
-
*/
|
|
191
161
|
attributes?: {
|
|
192
|
-
[key: string]:
|
|
193
|
-
};
|
|
162
|
+
[key: string]: unknown;
|
|
163
|
+
} | null;
|
|
194
164
|
/**
|
|
195
|
-
*
|
|
165
|
+
* Automatic chunking strategy for vector store files.
|
|
196
166
|
*/
|
|
197
|
-
chunking_strategy?: FileCreateParams.VectorStoreChunkingStrategyAuto | FileCreateParams.VectorStoreChunkingStrategyStatic;
|
|
167
|
+
chunking_strategy?: FileCreateParams.VectorStoreChunkingStrategyAuto | FileCreateParams.VectorStoreChunkingStrategyStatic | null;
|
|
198
168
|
}
|
|
199
169
|
export declare namespace FileCreateParams {
|
|
200
170
|
/**
|
|
201
171
|
* Automatic chunking strategy for vector store files.
|
|
202
172
|
*/
|
|
203
173
|
interface VectorStoreChunkingStrategyAuto {
|
|
204
|
-
|
|
205
|
-
* Strategy type, always "auto" for automatic chunking
|
|
206
|
-
*/
|
|
207
|
-
type: 'auto';
|
|
174
|
+
type?: 'auto';
|
|
208
175
|
}
|
|
209
176
|
/**
|
|
210
177
|
* Static chunking strategy with configurable parameters.
|
|
211
178
|
*/
|
|
212
179
|
interface VectorStoreChunkingStrategyStatic {
|
|
213
180
|
/**
|
|
214
|
-
* Configuration
|
|
181
|
+
* Configuration for static chunking strategy.
|
|
215
182
|
*/
|
|
216
183
|
static: VectorStoreChunkingStrategyStatic.Static;
|
|
217
|
-
|
|
218
|
-
* Strategy type, always "static" for static chunking
|
|
219
|
-
*/
|
|
220
|
-
type: 'static';
|
|
184
|
+
type?: 'static';
|
|
221
185
|
}
|
|
222
186
|
namespace VectorStoreChunkingStrategyStatic {
|
|
223
187
|
/**
|
|
224
|
-
* Configuration
|
|
188
|
+
* Configuration for static chunking strategy.
|
|
225
189
|
*/
|
|
226
190
|
interface Static {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
*/
|
|
230
|
-
chunk_overlap_tokens: number;
|
|
231
|
-
/**
|
|
232
|
-
* Maximum number of tokens per chunk, must be between 100 and 4096
|
|
233
|
-
*/
|
|
234
|
-
max_chunk_size_tokens: number;
|
|
191
|
+
chunk_overlap_tokens?: number;
|
|
192
|
+
max_chunk_size_tokens?: number;
|
|
235
193
|
}
|
|
236
194
|
}
|
|
237
195
|
}
|
|
238
196
|
export interface FileUpdateParams {
|
|
239
|
-
/**
|
|
240
|
-
* The updated key-value attributes to store with the file.
|
|
241
|
-
*/
|
|
242
197
|
attributes: {
|
|
243
|
-
[key: string]:
|
|
198
|
+
[key: string]: unknown;
|
|
244
199
|
};
|
|
245
200
|
}
|
|
246
201
|
export interface FileListParams extends OpenAICursorPageParams {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
*/
|
|
255
|
-
filter?: 'completed' | 'in_progress' | 'cancelled' | 'failed';
|
|
256
|
-
/**
|
|
257
|
-
* (Optional) Sort order by the `created_at` timestamp of the objects. `asc` for
|
|
258
|
-
* ascending order and `desc` for descending order.
|
|
259
|
-
*/
|
|
260
|
-
order?: string;
|
|
202
|
+
before?: string | null;
|
|
203
|
+
filter?: 'completed' | 'in_progress' | 'cancelled' | 'failed' | null;
|
|
204
|
+
order?: string | null;
|
|
205
|
+
}
|
|
206
|
+
export interface FileContentParams {
|
|
207
|
+
include_embeddings?: boolean | null;
|
|
208
|
+
include_metadata?: boolean | null;
|
|
261
209
|
}
|
|
262
210
|
export declare namespace Files {
|
|
263
|
-
export { type VectorStoreFile as VectorStoreFile, type FileDeleteResponse as FileDeleteResponse, type FileContentResponse as FileContentResponse, VectorStoreFilesOpenAICursorPage as VectorStoreFilesOpenAICursorPage, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, };
|
|
211
|
+
export { type VectorStoreFile as VectorStoreFile, type FileDeleteResponse as FileDeleteResponse, type FileContentResponse as FileContentResponse, VectorStoreFilesOpenAICursorPage as VectorStoreFilesOpenAICursorPage, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, type FileContentParams as FileContentParams, };
|
|
264
212
|
}
|
|
265
213
|
//# sourceMappingURL=files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAEjF,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;IAInC;;OAEG;IACH,QAAQ,CACN,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;IAInC;;OAEG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,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,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,kBAAkB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEpC,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACnC;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,gCAAgC,IAAI,gCAAgC,EACpE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,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.VectorStoreFilesOpenAICursorPage = exports.Files = 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
|
const core_1 = require("../../core.js");
|
|
12
13
|
const pagination_1 = require("../../pagination.js");
|
|
@@ -15,40 +16,40 @@ class Files extends resource_1.APIResource {
|
|
|
15
16
|
* Attach a file to a vector store.
|
|
16
17
|
*/
|
|
17
18
|
create(vectorStoreId, body, options) {
|
|
18
|
-
return this._client.post(`/v1/
|
|
19
|
+
return this._client.post(`/v1/vector_stores/${vectorStoreId}/files`, { body, ...options });
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
22
|
* Retrieves a vector store file.
|
|
22
23
|
*/
|
|
23
24
|
retrieve(vectorStoreId, fileId, options) {
|
|
24
|
-
return this._client.get(`/v1/
|
|
25
|
+
return this._client.get(`/v1/vector_stores/${vectorStoreId}/files/${fileId}`, options);
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
27
28
|
* Updates a vector store file.
|
|
28
29
|
*/
|
|
29
30
|
update(vectorStoreId, fileId, body, options) {
|
|
30
|
-
return this._client.post(`/v1/
|
|
31
|
-
body,
|
|
32
|
-
...options,
|
|
33
|
-
});
|
|
31
|
+
return this._client.post(`/v1/vector_stores/${vectorStoreId}/files/${fileId}`, { body, ...options });
|
|
34
32
|
}
|
|
35
33
|
list(vectorStoreId, query = {}, options) {
|
|
36
34
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
37
35
|
return this.list(vectorStoreId, {}, query);
|
|
38
36
|
}
|
|
39
|
-
return this._client.getAPIList(`/v1/
|
|
37
|
+
return this._client.getAPIList(`/v1/vector_stores/${vectorStoreId}/files`, VectorStoreFilesOpenAICursorPage, { query, ...options });
|
|
40
38
|
}
|
|
41
39
|
/**
|
|
42
40
|
* Delete a vector store file.
|
|
43
41
|
*/
|
|
44
42
|
delete(vectorStoreId, fileId, options) {
|
|
45
|
-
return this._client.delete(`/v1/
|
|
43
|
+
return this._client.delete(`/v1/vector_stores/${vectorStoreId}/files/${fileId}`, options);
|
|
46
44
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return this._client.get(`/v1/
|
|
45
|
+
content(vectorStoreId, fileId, query = {}, options) {
|
|
46
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
47
|
+
return this.content(vectorStoreId, fileId, {}, query);
|
|
48
|
+
}
|
|
49
|
+
return this._client.get(`/v1/vector_stores/${vectorStoreId}/files/${fileId}/content`, {
|
|
50
|
+
query,
|
|
51
|
+
...options,
|
|
52
|
+
});
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
exports.Files = Files;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAE9C,oDAAiF;AAEjF,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,MAAM,CACJ,aAAqB,EACrB,IAAsB,EACtB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,aAAa,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,aAAqB,EACrB,MAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,aAAa,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,aAAqB,EACrB,MAAc,EACd,IAAsB,EACtB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,aAAa,UAAU,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAcD,IAAI,CACF,aAAqB,EACrB,QAA8C,EAAE,EAChD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,qBAAqB,aAAa,QAAQ,EAC1C,gCAAgC,EAChC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,aAAqB,EACrB,MAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,qBAAqB,aAAa,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;IAgBD,OAAO,CACL,aAAqB,EACrB,MAAc,EACd,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACvD;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,aAAa,UAAU,MAAM,UAAU,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AArGD,sBAqGC;AAED,MAAa,gCAAiC,SAAQ,6BAAiC;CAAG;AAA1F,4EAA0F;AAoO1F,KAAK,CAAC,gCAAgC,GAAG,gCAAgC,CAAC"}
|
|
@@ -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
|
import { isRequestOptions } from "../../core.mjs";
|
|
8
10
|
import { OpenAICursorPage } from "../../pagination.mjs";
|
|
@@ -11,40 +13,40 @@ export class Files extends APIResource {
|
|
|
11
13
|
* Attach a file to a vector store.
|
|
12
14
|
*/
|
|
13
15
|
create(vectorStoreId, body, options) {
|
|
14
|
-
return this._client.post(`/v1/
|
|
16
|
+
return this._client.post(`/v1/vector_stores/${vectorStoreId}/files`, { body, ...options });
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
17
19
|
* Retrieves a vector store file.
|
|
18
20
|
*/
|
|
19
21
|
retrieve(vectorStoreId, fileId, options) {
|
|
20
|
-
return this._client.get(`/v1/
|
|
22
|
+
return this._client.get(`/v1/vector_stores/${vectorStoreId}/files/${fileId}`, options);
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* Updates a vector store file.
|
|
24
26
|
*/
|
|
25
27
|
update(vectorStoreId, fileId, body, options) {
|
|
26
|
-
return this._client.post(`/v1/
|
|
27
|
-
body,
|
|
28
|
-
...options,
|
|
29
|
-
});
|
|
28
|
+
return this._client.post(`/v1/vector_stores/${vectorStoreId}/files/${fileId}`, { body, ...options });
|
|
30
29
|
}
|
|
31
30
|
list(vectorStoreId, query = {}, options) {
|
|
32
31
|
if (isRequestOptions(query)) {
|
|
33
32
|
return this.list(vectorStoreId, {}, query);
|
|
34
33
|
}
|
|
35
|
-
return this._client.getAPIList(`/v1/
|
|
34
|
+
return this._client.getAPIList(`/v1/vector_stores/${vectorStoreId}/files`, VectorStoreFilesOpenAICursorPage, { query, ...options });
|
|
36
35
|
}
|
|
37
36
|
/**
|
|
38
37
|
* Delete a vector store file.
|
|
39
38
|
*/
|
|
40
39
|
delete(vectorStoreId, fileId, options) {
|
|
41
|
-
return this._client.delete(`/v1/
|
|
40
|
+
return this._client.delete(`/v1/vector_stores/${vectorStoreId}/files/${fileId}`, options);
|
|
42
41
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
return this._client.get(`/v1/
|
|
42
|
+
content(vectorStoreId, fileId, query = {}, options) {
|
|
43
|
+
if (isRequestOptions(query)) {
|
|
44
|
+
return this.content(vectorStoreId, fileId, {}, query);
|
|
45
|
+
}
|
|
46
|
+
return this._client.get(`/v1/vector_stores/${vectorStoreId}/files/${fileId}/content`, {
|
|
47
|
+
query,
|
|
48
|
+
...options,
|
|
49
|
+
});
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
export class VectorStoreFilesOpenAICursorPage extends OpenAICursorPage {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,gBAAgB,EAA+B;AAExD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CACJ,aAAqB,EACrB,IAAsB,EACtB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,aAAa,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,aAAqB,EACrB,MAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,aAAa,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,aAAqB,EACrB,MAAc,EACd,IAAsB,EACtB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,aAAa,UAAU,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAcD,IAAI,CACF,aAAqB,EACrB,QAA8C,EAAE,EAChD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,qBAAqB,aAAa,QAAQ,EAC1C,gCAAgC,EAChC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,aAAqB,EACrB,MAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,qBAAqB,aAAa,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;IAgBD,OAAO,CACL,aAAqB,EACrB,MAAc,EACd,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACvD;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,aAAa,UAAU,MAAM,UAAU,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,gCAAiC,SAAQ,gBAAiC;CAAG;AAoO1F,KAAK,CAAC,gCAAgC,GAAG,gCAAgC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { FileBatches, type ListVectorStoreFilesInBatchResponse, type VectorStoreFileBatches, type FileBatchCreateParams, type FileBatchListFilesParams, } from "./file-batches.js";
|
|
2
|
+
export { VectorStoreFilesOpenAICursorPage, Files, type VectorStoreFile, type FileDeleteResponse, type FileContentResponse, type FileCreateParams, type FileUpdateParams, type FileListParams, type FileContentParams, } from "./files.js";
|
|
2
3
|
export { VectorStoresOpenAICursorPage, VectorStores, type ListVectorStoresResponse, type VectorStore, type VectorStoreDeleteResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreSearchParams, } from "./vector-stores.js";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,gCAAgC,EAChC,KAAK,EACL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,WAAW,EACX,KAAK,mCAAmC,EACxC,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,GAC9B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,gCAAgC,EAChC,KAAK,EACL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,4BAA4B,EAC5B,YAAY,EACZ,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,MAAM,iBAAiB,CAAC"}
|
|
@@ -4,9 +4,12 @@
|
|
|
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
|
-
exports.VectorStores = exports.VectorStoresOpenAICursorPage = exports.Files = exports.VectorStoreFilesOpenAICursorPage = void 0;
|
|
7
|
+
//
|
|
9
8
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.VectorStores = exports.VectorStoresOpenAICursorPage = exports.Files = exports.VectorStoreFilesOpenAICursorPage = exports.FileBatches = void 0;
|
|
11
|
+
var file_batches_1 = require("./file-batches.js");
|
|
12
|
+
Object.defineProperty(exports, "FileBatches", { enumerable: true, get: function () { return file_batches_1.FileBatches; } });
|
|
10
13
|
var files_1 = require("./files.js");
|
|
11
14
|
Object.defineProperty(exports, "VectorStoreFilesOpenAICursorPage", { enumerable: true, get: function () { return files_1.VectorStoreFilesOpenAICursorPage; } });
|
|
12
15
|
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } });
|