llama-stack-client 0.3.4 → 0.4.0-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +153 -0
- package/README.md +19 -21
- 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 +23 -50
- package/index.d.ts +23 -50
- 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 +1 -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/alpha.d.ts +22 -0
- package/resources/alpha/alpha.d.ts.map +1 -0
- package/resources/alpha/alpha.js +57 -0
- package/resources/alpha/alpha.js.map +1 -0
- package/resources/alpha/alpha.mjs +30 -0
- package/resources/alpha/alpha.mjs.map +1 -0
- package/resources/{benchmarks.d.ts → alpha/benchmarks.d.ts} +25 -35
- 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 +6 -0
- package/resources/alpha/index.d.ts.map +1 -0
- package/resources/alpha/index.js +21 -0
- package/resources/alpha/index.js.map +1 -0
- package/resources/alpha/index.mjs +13 -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 +3 -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 +116 -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 +242 -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/beta/datasets.d.ts +257 -0
- 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 +73 -78
- 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 +756 -1402
- 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 +52 -95
- 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 +292 -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 +762 -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 +9 -13
- 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 +6 -32
- package/resources/inspect.d.ts.map +1 -1
- package/resources/inspect.js +6 -1
- package/resources/inspect.js.map +1 -1
- package/resources/inspect.mjs +6 -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 -6
- package/resources/providers.d.ts.map +1 -1
- package/resources/providers.js +6 -1
- package/resources/providers.js.map +1 -1
- package/resources/providers.mjs +6 -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 +190 -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 +1387 -1449
- 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 +7 -7
- 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 +125 -629
- 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 +82 -252
- package/src/lib/response-helpers.ts +60 -0
- package/src/pagination.ts +2 -5
- package/src/resource.ts +1 -0
- package/src/resources/alpha/alpha.ts +85 -0
- package/src/resources/{benchmarks.ts → alpha/benchmarks.ts} +36 -37
- 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 +34 -0
- package/src/resources/alpha/inference.ts +132 -0
- package/src/resources/{post-training → alpha/post-training}/index.ts +2 -2
- package/src/resources/alpha/post-training/job.ts +182 -0
- package/src/resources/alpha/post-training/post-training.ts +369 -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/beta/datasets.ts +350 -0
- package/src/resources/beta/index.ts +20 -0
- package/src/resources/{agents.ts → beta.ts} +2 -2
- package/src/resources/chat/chat.ts +82 -81
- package/src/resources/chat/completions.ts +874 -1484
- package/src/resources/chat/index.ts +1 -2
- package/src/resources/chat.ts +1 -1
- package/src/resources/completions.ts +57 -101
- package/src/resources/conversations/conversations.ts +455 -0
- package/src/resources/conversations/index.ts +25 -0
- package/src/resources/conversations/items.ts +1221 -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 +33 -109
- package/src/resources/inspect.ts +7 -33
- 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 -7
- package/src/resources/responses/index.ts +1 -1
- package/src/resources/responses/input-items.ts +293 -161
- package/src/resources/responses/responses.ts +2112 -1632
- package/src/resources/responses.ts +1 -1
- package/src/resources/routes.ts +25 -10
- 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 +141 -714
- 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 +0 -320
- 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 +0 -3
- 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/datasets.ts +0 -413
- 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.d.ts → alpha/post-training.d.ts} +0 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
import { OpenAICursorPage, type OpenAICursorPageParams } from "../pagination.js";
|
|
4
|
+
export declare class Batches extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new batch for processing multiple API requests.
|
|
7
|
+
*/
|
|
8
|
+
create(body: BatchCreateParams, options?: Core.RequestOptions): Core.APIPromise<BatchCreateResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve information about a specific batch.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(batchId: string, options?: Core.RequestOptions): Core.APIPromise<BatchRetrieveResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* List all batches for the current user.
|
|
15
|
+
*/
|
|
16
|
+
list(query?: BatchListParams, options?: Core.RequestOptions): Core.PagePromise<BatchListResponsesOpenAICursorPage, BatchListResponse>;
|
|
17
|
+
list(options?: Core.RequestOptions): Core.PagePromise<BatchListResponsesOpenAICursorPage, BatchListResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Cancel a batch that is in progress.
|
|
20
|
+
*/
|
|
21
|
+
cancel(batchId: string, options?: Core.RequestOptions): Core.APIPromise<BatchCancelResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare class BatchListResponsesOpenAICursorPage extends OpenAICursorPage<BatchListResponse> {
|
|
24
|
+
}
|
|
25
|
+
export interface BatchCreateResponse {
|
|
26
|
+
id: string;
|
|
27
|
+
completion_window: string;
|
|
28
|
+
created_at: number;
|
|
29
|
+
endpoint: string;
|
|
30
|
+
input_file_id: string;
|
|
31
|
+
object: 'batch';
|
|
32
|
+
status: 'validating' | 'failed' | 'in_progress' | 'finalizing' | 'completed' | 'expired' | 'cancelling' | 'cancelled';
|
|
33
|
+
cancelled_at?: number | null;
|
|
34
|
+
cancelling_at?: number | null;
|
|
35
|
+
completed_at?: number | null;
|
|
36
|
+
error_file_id?: string | null;
|
|
37
|
+
errors?: BatchCreateResponse.Errors | null;
|
|
38
|
+
expired_at?: number | null;
|
|
39
|
+
expires_at?: number | null;
|
|
40
|
+
failed_at?: number | null;
|
|
41
|
+
finalizing_at?: number | null;
|
|
42
|
+
in_progress_at?: number | null;
|
|
43
|
+
metadata?: {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
} | null;
|
|
46
|
+
model?: string | null;
|
|
47
|
+
output_file_id?: string | null;
|
|
48
|
+
request_counts?: BatchCreateResponse.RequestCounts | null;
|
|
49
|
+
usage?: BatchCreateResponse.Usage | null;
|
|
50
|
+
[k: string]: unknown;
|
|
51
|
+
}
|
|
52
|
+
export declare namespace BatchCreateResponse {
|
|
53
|
+
interface Errors {
|
|
54
|
+
data?: Array<Errors.Data> | null;
|
|
55
|
+
object?: string | null;
|
|
56
|
+
[k: string]: unknown;
|
|
57
|
+
}
|
|
58
|
+
namespace Errors {
|
|
59
|
+
interface Data {
|
|
60
|
+
code?: string | null;
|
|
61
|
+
line?: number | null;
|
|
62
|
+
message?: string | null;
|
|
63
|
+
param?: string | null;
|
|
64
|
+
[k: string]: unknown;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
interface RequestCounts {
|
|
68
|
+
completed: number;
|
|
69
|
+
failed: number;
|
|
70
|
+
total: number;
|
|
71
|
+
[k: string]: unknown;
|
|
72
|
+
}
|
|
73
|
+
interface Usage {
|
|
74
|
+
input_tokens: number;
|
|
75
|
+
input_tokens_details: Usage.InputTokensDetails;
|
|
76
|
+
output_tokens: number;
|
|
77
|
+
output_tokens_details: Usage.OutputTokensDetails;
|
|
78
|
+
total_tokens: number;
|
|
79
|
+
[k: string]: unknown;
|
|
80
|
+
}
|
|
81
|
+
namespace Usage {
|
|
82
|
+
interface InputTokensDetails {
|
|
83
|
+
cached_tokens: number;
|
|
84
|
+
[k: string]: unknown;
|
|
85
|
+
}
|
|
86
|
+
interface OutputTokensDetails {
|
|
87
|
+
reasoning_tokens: number;
|
|
88
|
+
[k: string]: unknown;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export interface BatchRetrieveResponse {
|
|
93
|
+
id: string;
|
|
94
|
+
completion_window: string;
|
|
95
|
+
created_at: number;
|
|
96
|
+
endpoint: string;
|
|
97
|
+
input_file_id: string;
|
|
98
|
+
object: 'batch';
|
|
99
|
+
status: 'validating' | 'failed' | 'in_progress' | 'finalizing' | 'completed' | 'expired' | 'cancelling' | 'cancelled';
|
|
100
|
+
cancelled_at?: number | null;
|
|
101
|
+
cancelling_at?: number | null;
|
|
102
|
+
completed_at?: number | null;
|
|
103
|
+
error_file_id?: string | null;
|
|
104
|
+
errors?: BatchRetrieveResponse.Errors | null;
|
|
105
|
+
expired_at?: number | null;
|
|
106
|
+
expires_at?: number | null;
|
|
107
|
+
failed_at?: number | null;
|
|
108
|
+
finalizing_at?: number | null;
|
|
109
|
+
in_progress_at?: number | null;
|
|
110
|
+
metadata?: {
|
|
111
|
+
[key: string]: string;
|
|
112
|
+
} | null;
|
|
113
|
+
model?: string | null;
|
|
114
|
+
output_file_id?: string | null;
|
|
115
|
+
request_counts?: BatchRetrieveResponse.RequestCounts | null;
|
|
116
|
+
usage?: BatchRetrieveResponse.Usage | null;
|
|
117
|
+
[k: string]: unknown;
|
|
118
|
+
}
|
|
119
|
+
export declare namespace BatchRetrieveResponse {
|
|
120
|
+
interface Errors {
|
|
121
|
+
data?: Array<Errors.Data> | null;
|
|
122
|
+
object?: string | null;
|
|
123
|
+
[k: string]: unknown;
|
|
124
|
+
}
|
|
125
|
+
namespace Errors {
|
|
126
|
+
interface Data {
|
|
127
|
+
code?: string | null;
|
|
128
|
+
line?: number | null;
|
|
129
|
+
message?: string | null;
|
|
130
|
+
param?: string | null;
|
|
131
|
+
[k: string]: unknown;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
interface RequestCounts {
|
|
135
|
+
completed: number;
|
|
136
|
+
failed: number;
|
|
137
|
+
total: number;
|
|
138
|
+
[k: string]: unknown;
|
|
139
|
+
}
|
|
140
|
+
interface Usage {
|
|
141
|
+
input_tokens: number;
|
|
142
|
+
input_tokens_details: Usage.InputTokensDetails;
|
|
143
|
+
output_tokens: number;
|
|
144
|
+
output_tokens_details: Usage.OutputTokensDetails;
|
|
145
|
+
total_tokens: number;
|
|
146
|
+
[k: string]: unknown;
|
|
147
|
+
}
|
|
148
|
+
namespace Usage {
|
|
149
|
+
interface InputTokensDetails {
|
|
150
|
+
cached_tokens: number;
|
|
151
|
+
[k: string]: unknown;
|
|
152
|
+
}
|
|
153
|
+
interface OutputTokensDetails {
|
|
154
|
+
reasoning_tokens: number;
|
|
155
|
+
[k: string]: unknown;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
export interface BatchListResponse {
|
|
160
|
+
id: string;
|
|
161
|
+
completion_window: string;
|
|
162
|
+
created_at: number;
|
|
163
|
+
endpoint: string;
|
|
164
|
+
input_file_id: string;
|
|
165
|
+
object: 'batch';
|
|
166
|
+
status: 'validating' | 'failed' | 'in_progress' | 'finalizing' | 'completed' | 'expired' | 'cancelling' | 'cancelled';
|
|
167
|
+
cancelled_at?: number | null;
|
|
168
|
+
cancelling_at?: number | null;
|
|
169
|
+
completed_at?: number | null;
|
|
170
|
+
error_file_id?: string | null;
|
|
171
|
+
errors?: BatchListResponse.Errors | null;
|
|
172
|
+
expired_at?: number | null;
|
|
173
|
+
expires_at?: number | null;
|
|
174
|
+
failed_at?: number | null;
|
|
175
|
+
finalizing_at?: number | null;
|
|
176
|
+
in_progress_at?: number | null;
|
|
177
|
+
metadata?: {
|
|
178
|
+
[key: string]: string;
|
|
179
|
+
} | null;
|
|
180
|
+
model?: string | null;
|
|
181
|
+
output_file_id?: string | null;
|
|
182
|
+
request_counts?: BatchListResponse.RequestCounts | null;
|
|
183
|
+
usage?: BatchListResponse.Usage | null;
|
|
184
|
+
[k: string]: unknown;
|
|
185
|
+
}
|
|
186
|
+
export declare namespace BatchListResponse {
|
|
187
|
+
interface Errors {
|
|
188
|
+
data?: Array<Errors.Data> | null;
|
|
189
|
+
object?: string | null;
|
|
190
|
+
[k: string]: unknown;
|
|
191
|
+
}
|
|
192
|
+
namespace Errors {
|
|
193
|
+
interface Data {
|
|
194
|
+
code?: string | null;
|
|
195
|
+
line?: number | null;
|
|
196
|
+
message?: string | null;
|
|
197
|
+
param?: string | null;
|
|
198
|
+
[k: string]: unknown;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
interface RequestCounts {
|
|
202
|
+
completed: number;
|
|
203
|
+
failed: number;
|
|
204
|
+
total: number;
|
|
205
|
+
[k: string]: unknown;
|
|
206
|
+
}
|
|
207
|
+
interface Usage {
|
|
208
|
+
input_tokens: number;
|
|
209
|
+
input_tokens_details: Usage.InputTokensDetails;
|
|
210
|
+
output_tokens: number;
|
|
211
|
+
output_tokens_details: Usage.OutputTokensDetails;
|
|
212
|
+
total_tokens: number;
|
|
213
|
+
[k: string]: unknown;
|
|
214
|
+
}
|
|
215
|
+
namespace Usage {
|
|
216
|
+
interface InputTokensDetails {
|
|
217
|
+
cached_tokens: number;
|
|
218
|
+
[k: string]: unknown;
|
|
219
|
+
}
|
|
220
|
+
interface OutputTokensDetails {
|
|
221
|
+
reasoning_tokens: number;
|
|
222
|
+
[k: string]: unknown;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
export interface BatchCancelResponse {
|
|
227
|
+
id: string;
|
|
228
|
+
completion_window: string;
|
|
229
|
+
created_at: number;
|
|
230
|
+
endpoint: string;
|
|
231
|
+
input_file_id: string;
|
|
232
|
+
object: 'batch';
|
|
233
|
+
status: 'validating' | 'failed' | 'in_progress' | 'finalizing' | 'completed' | 'expired' | 'cancelling' | 'cancelled';
|
|
234
|
+
cancelled_at?: number | null;
|
|
235
|
+
cancelling_at?: number | null;
|
|
236
|
+
completed_at?: number | null;
|
|
237
|
+
error_file_id?: string | null;
|
|
238
|
+
errors?: BatchCancelResponse.Errors | null;
|
|
239
|
+
expired_at?: number | null;
|
|
240
|
+
expires_at?: number | null;
|
|
241
|
+
failed_at?: number | null;
|
|
242
|
+
finalizing_at?: number | null;
|
|
243
|
+
in_progress_at?: number | null;
|
|
244
|
+
metadata?: {
|
|
245
|
+
[key: string]: string;
|
|
246
|
+
} | null;
|
|
247
|
+
model?: string | null;
|
|
248
|
+
output_file_id?: string | null;
|
|
249
|
+
request_counts?: BatchCancelResponse.RequestCounts | null;
|
|
250
|
+
usage?: BatchCancelResponse.Usage | null;
|
|
251
|
+
[k: string]: unknown;
|
|
252
|
+
}
|
|
253
|
+
export declare namespace BatchCancelResponse {
|
|
254
|
+
interface Errors {
|
|
255
|
+
data?: Array<Errors.Data> | null;
|
|
256
|
+
object?: string | null;
|
|
257
|
+
[k: string]: unknown;
|
|
258
|
+
}
|
|
259
|
+
namespace Errors {
|
|
260
|
+
interface Data {
|
|
261
|
+
code?: string | null;
|
|
262
|
+
line?: number | null;
|
|
263
|
+
message?: string | null;
|
|
264
|
+
param?: string | null;
|
|
265
|
+
[k: string]: unknown;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
interface RequestCounts {
|
|
269
|
+
completed: number;
|
|
270
|
+
failed: number;
|
|
271
|
+
total: number;
|
|
272
|
+
[k: string]: unknown;
|
|
273
|
+
}
|
|
274
|
+
interface Usage {
|
|
275
|
+
input_tokens: number;
|
|
276
|
+
input_tokens_details: Usage.InputTokensDetails;
|
|
277
|
+
output_tokens: number;
|
|
278
|
+
output_tokens_details: Usage.OutputTokensDetails;
|
|
279
|
+
total_tokens: number;
|
|
280
|
+
[k: string]: unknown;
|
|
281
|
+
}
|
|
282
|
+
namespace Usage {
|
|
283
|
+
interface InputTokensDetails {
|
|
284
|
+
cached_tokens: number;
|
|
285
|
+
[k: string]: unknown;
|
|
286
|
+
}
|
|
287
|
+
interface OutputTokensDetails {
|
|
288
|
+
reasoning_tokens: number;
|
|
289
|
+
[k: string]: unknown;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
export interface BatchCreateParams {
|
|
294
|
+
/**
|
|
295
|
+
* The time window within which the batch should be processed.
|
|
296
|
+
*/
|
|
297
|
+
completion_window: '24h';
|
|
298
|
+
/**
|
|
299
|
+
* The endpoint to be used for all requests in the batch.
|
|
300
|
+
*/
|
|
301
|
+
endpoint: string;
|
|
302
|
+
/**
|
|
303
|
+
* The ID of an uploaded file containing requests for the batch.
|
|
304
|
+
*/
|
|
305
|
+
input_file_id: string;
|
|
306
|
+
/**
|
|
307
|
+
* Optional idempotency key. When provided, enables idempotent behavior.
|
|
308
|
+
*/
|
|
309
|
+
idempotency_key?: string | null;
|
|
310
|
+
/**
|
|
311
|
+
* Optional metadata for the batch.
|
|
312
|
+
*/
|
|
313
|
+
metadata?: {
|
|
314
|
+
[key: string]: string;
|
|
315
|
+
} | null;
|
|
316
|
+
}
|
|
317
|
+
export interface BatchListParams extends OpenAICursorPageParams {
|
|
318
|
+
}
|
|
319
|
+
export declare namespace Batches {
|
|
320
|
+
export { type BatchCreateResponse as BatchCreateResponse, type BatchRetrieveResponse as BatchRetrieveResponse, type BatchListResponse as BatchListResponse, type BatchCancelResponse as BatchCancelResponse, BatchListResponsesOpenAICursorPage as BatchListResponsesOpenAICursorPage, type BatchCreateParams as BatchCreateParams, type BatchListParams as BatchListParams, };
|
|
321
|
+
}
|
|
322
|
+
//# sourceMappingURL=batches.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"batches.d.ts","sourceRoot":"","sources":["../src/resources/batches.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE9E,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAIpG;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAIhG;;OAEG;IACH,IAAI,CACF,KAAK,CAAC,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,kCAAkC,EAAE,iBAAiB,CAAC;IAC1E,IAAI,CACF,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,kCAAkC,EAAE,iBAAiB,CAAC;IAW1E;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;CAG7F;AAED,qBAAa,kCAAmC,SAAQ,gBAAgB,CAAC,iBAAiB,CA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GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CAC7C;AAED,MAAM,WAAW,eAAgB,SAAQ,sBAAsB;CAAG;AAIlE,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,kCAAkC,IAAI,kCAAkC,EACxE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -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.BatchListResponsesOpenAICursorPage = exports.Batches = void 0;
|
|
11
|
+
const resource_1 = require("../resource.js");
|
|
12
|
+
const core_1 = require("../core.js");
|
|
13
|
+
const pagination_1 = require("../pagination.js");
|
|
14
|
+
class Batches extends resource_1.APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* Create a new batch for processing multiple API requests.
|
|
17
|
+
*/
|
|
18
|
+
create(body, options) {
|
|
19
|
+
return this._client.post('/v1/batches', { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Retrieve information about a specific batch.
|
|
23
|
+
*/
|
|
24
|
+
retrieve(batchId, options) {
|
|
25
|
+
return this._client.get(`/v1/batches/${batchId}`, options);
|
|
26
|
+
}
|
|
27
|
+
list(query = {}, options) {
|
|
28
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
29
|
+
return this.list({}, query);
|
|
30
|
+
}
|
|
31
|
+
return this._client.getAPIList('/v1/batches', BatchListResponsesOpenAICursorPage, { query, ...options });
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Cancel a batch that is in progress.
|
|
35
|
+
*/
|
|
36
|
+
cancel(batchId, options) {
|
|
37
|
+
return this._client.post(`/v1/batches/${batchId}/cancel`, options);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.Batches = Batches;
|
|
41
|
+
class BatchListResponsesOpenAICursorPage extends pagination_1.OpenAICursorPage {
|
|
42
|
+
}
|
|
43
|
+
exports.BatchListResponsesOpenAICursorPage = BatchListResponsesOpenAICursorPage;
|
|
44
|
+
Batches.BatchListResponsesOpenAICursorPage = BatchListResponsesOpenAICursorPage;
|
|
45
|
+
//# sourceMappingURL=batches.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"batches.js","sourceRoot":"","sources":["../src/resources/batches.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAE3C,iDAA8E;AAE9E,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAYD,IAAI,CACF,QAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AAzCD,0BAyCC;AAED,MAAa,kCAAmC,SAAQ,6BAAmC;CAAG;AAA9F,gFAA8F;AAuf9F,OAAO,CAAC,kCAAkC,GAAG,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { OpenAICursorPage } from "../pagination.mjs";
|
|
11
|
+
export class Batches extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Create a new batch for processing multiple API requests.
|
|
14
|
+
*/
|
|
15
|
+
create(body, options) {
|
|
16
|
+
return this._client.post('/v1/batches', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve information about a specific batch.
|
|
20
|
+
*/
|
|
21
|
+
retrieve(batchId, options) {
|
|
22
|
+
return this._client.get(`/v1/batches/${batchId}`, options);
|
|
23
|
+
}
|
|
24
|
+
list(query = {}, options) {
|
|
25
|
+
if (isRequestOptions(query)) {
|
|
26
|
+
return this.list({}, query);
|
|
27
|
+
}
|
|
28
|
+
return this._client.getAPIList('/v1/batches', BatchListResponsesOpenAICursorPage, { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Cancel a batch that is in progress.
|
|
32
|
+
*/
|
|
33
|
+
cancel(batchId, options) {
|
|
34
|
+
return this._client.post(`/v1/batches/${batchId}/cancel`, options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export class BatchListResponsesOpenAICursorPage extends OpenAICursorPage {
|
|
38
|
+
}
|
|
39
|
+
Batches.BatchListResponsesOpenAICursorPage = BatchListResponsesOpenAICursorPage;
|
|
40
|
+
//# sourceMappingURL=batches.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"batches.mjs","sourceRoot":"","sources":["../src/resources/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;OAEpB,EAAE,gBAAgB,EAA+B;AAExD,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAYD,IAAI,CACF,QAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AAED,MAAM,OAAO,kCAAmC,SAAQ,gBAAmC;CAAG;AAuf9F,OAAO,CAAC,kCAAkC,GAAG,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as DatasetsAPI from "./datasets.js";
|
|
3
|
+
import { DatasetAppendrowsParams, DatasetIterrowsParams, DatasetIterrowsResponse, DatasetListResponse, DatasetRegisterParams, DatasetRegisterResponse, DatasetRetrieveResponse, Datasets, ListDatasetsResponse } from "./datasets.js";
|
|
4
|
+
export declare class Beta extends APIResource {
|
|
5
|
+
datasets: DatasetsAPI.Datasets;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Beta {
|
|
8
|
+
export { Datasets as Datasets, type ListDatasetsResponse as ListDatasetsResponse, type DatasetRetrieveResponse as DatasetRetrieveResponse, type DatasetListResponse as DatasetListResponse, type DatasetIterrowsResponse as DatasetIterrowsResponse, type DatasetRegisterResponse as DatasetRegisterResponse, type DatasetAppendrowsParams as DatasetAppendrowsParams, type DatasetIterrowsParams as DatasetIterrowsParams, type DatasetRegisterParams as DatasetRegisterParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=beta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta.d.ts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAC1C,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,QAAQ,EACR,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAEpB,qBAAa,IAAK,SAAQ,WAAW;IACnC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -4,6 +4,8 @@
|
|
|
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
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
10
|
if (k2 === undefined) k2 = k;
|
|
9
11
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -28,30 +30,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
30
|
return result;
|
|
29
31
|
};
|
|
30
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.
|
|
32
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
33
|
+
exports.Beta = void 0;
|
|
33
34
|
const resource_1 = require("../../resource.js");
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
class ToolRuntime extends resource_1.APIResource {
|
|
35
|
+
const DatasetsAPI = __importStar(require("./datasets.js"));
|
|
36
|
+
const datasets_1 = require("./datasets.js");
|
|
37
|
+
class Beta extends resource_1.APIResource {
|
|
38
38
|
constructor() {
|
|
39
39
|
super(...arguments);
|
|
40
|
-
this.
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Run a tool with the given arguments.
|
|
44
|
-
*/
|
|
45
|
-
invokeTool(body, options) {
|
|
46
|
-
return this._client.post('/v1/tool-runtime/invoke', { body, ...options });
|
|
47
|
-
}
|
|
48
|
-
listTools(query = {}, options) {
|
|
49
|
-
if ((0, core_1.isRequestOptions)(query)) {
|
|
50
|
-
return this.listTools({}, query);
|
|
51
|
-
}
|
|
52
|
-
return this._client.get('/v1/tool-runtime/list-tools', { query, ...options })._thenUnwrap((obj) => obj.data);
|
|
40
|
+
this.datasets = new DatasetsAPI.Datasets(this._client);
|
|
53
41
|
}
|
|
54
42
|
}
|
|
55
|
-
exports.
|
|
56
|
-
|
|
57
|
-
//# sourceMappingURL=
|
|
43
|
+
exports.Beta = Beta;
|
|
44
|
+
Beta.Datasets = datasets_1.Datasets;
|
|
45
|
+
//# sourceMappingURL=beta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta.js","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,2DAA0C;AAC1C,4CAUoB;AAEpB,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAFD,oBAEC;AAED,IAAI,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 * as DatasetsAPI from "./datasets.mjs";
|
|
10
|
+
import { Datasets, } from "./datasets.mjs";
|
|
11
|
+
export class Beta extends APIResource {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.datasets = new DatasetsAPI.Datasets(this._client);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
Beta.Datasets = Datasets;
|
|
18
|
+
//# sourceMappingURL=beta.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta.mjs","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAQL,QAAQ,GAET;AAED,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|