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
package/resources/files.mjs
CHANGED
|
@@ -3,44 +3,54 @@
|
|
|
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 * as Core from "../core.mjs";
|
|
9
11
|
import { OpenAICursorPage } from "../pagination.mjs";
|
|
10
12
|
export class Files extends APIResource {
|
|
11
13
|
/**
|
|
12
|
-
* Upload
|
|
13
|
-
*
|
|
14
|
+
* Upload file.
|
|
15
|
+
*
|
|
16
|
+
* Upload a file that can be used across various endpoints.
|
|
17
|
+
*
|
|
18
|
+
* The file upload should be a multipart form request with:
|
|
14
19
|
*
|
|
15
20
|
* - file: The File object (not file name) to be uploaded.
|
|
16
21
|
* - purpose: The intended purpose of the uploaded file.
|
|
22
|
+
* - expires_after: Optional form values describing expiration for the file.
|
|
17
23
|
*/
|
|
18
24
|
create(body, options) {
|
|
19
|
-
return this._client.post('/v1/
|
|
25
|
+
return this._client.post('/v1/files', Core.multipartFormRequestOptions({ body, ...options }));
|
|
20
26
|
}
|
|
21
27
|
/**
|
|
28
|
+
* Retrieve file.
|
|
29
|
+
*
|
|
22
30
|
* Returns information about a specific file.
|
|
23
31
|
*/
|
|
24
32
|
retrieve(fileId, options) {
|
|
25
|
-
return this._client.get(`/v1/
|
|
33
|
+
return this._client.get(`/v1/files/${fileId}`, options);
|
|
26
34
|
}
|
|
27
35
|
list(query = {}, options) {
|
|
28
36
|
if (isRequestOptions(query)) {
|
|
29
37
|
return this.list({}, query);
|
|
30
38
|
}
|
|
31
|
-
return this._client.getAPIList('/v1/
|
|
39
|
+
return this._client.getAPIList('/v1/files', FilesOpenAICursorPage, { query, ...options });
|
|
32
40
|
}
|
|
33
41
|
/**
|
|
34
|
-
* Delete
|
|
42
|
+
* Delete file.
|
|
35
43
|
*/
|
|
36
44
|
delete(fileId, options) {
|
|
37
|
-
return this._client.delete(`/v1/
|
|
45
|
+
return this._client.delete(`/v1/files/${fileId}`, options);
|
|
38
46
|
}
|
|
39
47
|
/**
|
|
48
|
+
* Retrieve file content.
|
|
49
|
+
*
|
|
40
50
|
* Returns the contents of the specified file.
|
|
41
51
|
*/
|
|
42
52
|
content(fileId, options) {
|
|
43
|
-
return this._client.get(`/v1/
|
|
53
|
+
return this._client.get(`/v1/files/${fileId}/content`, options);
|
|
44
54
|
}
|
|
45
55
|
}
|
|
46
56
|
export class FilesOpenAICursorPage extends OpenAICursorPage {
|
package/resources/files.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../src/resources/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;OACpB,KAAK,IAAI;OACT,EAAE,gBAAgB,EAA+B;AAExD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAsB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC;IAChG,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,MAAc,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IASD,IAAI,CACF,QAA8C,EAAE,EAChD,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,WAAW,EAAE,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAA6B;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;OAIG;IACH,OAAO,CAAC,MAAc,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF;AAED,MAAM,OAAO,qBAAsB,SAAQ,gBAAsB;CAAG;AAmGpE,KAAK,CAAC,qBAAqB,GAAG,qBAAqB,CAAC"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
2
|
+
export { Alpha } from "./alpha/alpha.js";
|
|
3
|
+
export { BatchListResponsesOpenAICursorPage, Batches, type BatchCreateResponse, type BatchRetrieveResponse, type BatchListResponse, type BatchCancelResponse, type BatchCreateParams, type BatchListParams, } from "./batches.js";
|
|
4
|
+
export { Beta } from "./beta/beta.js";
|
|
4
5
|
export { Chat, type ChatCompletionChunk } from "./chat/chat.js";
|
|
5
6
|
export { Completions, type CompletionCreateResponse, type CompletionCreateParams, type CompletionCreateParamsNonStreaming, type CompletionCreateParamsStreaming, } from "./completions.js";
|
|
6
|
-
export {
|
|
7
|
+
export { Conversations, type ConversationObject, type ConversationDeleteResponse, type ConversationCreateParams, type ConversationUpdateParams, } from "./conversations/conversations.js";
|
|
7
8
|
export { Embeddings, type CreateEmbeddingsResponse, type EmbeddingCreateParams } from "./embeddings.js";
|
|
8
|
-
export { Eval, type BenchmarkConfig, type EvalCandidate, type EvaluateResponse, type Job, type EvalEvaluateRowsParams, type EvalEvaluateRowsAlphaParams, type EvalRunEvalParams, type EvalRunEvalAlphaParams, } from "./eval/eval.js";
|
|
9
9
|
export { FilesOpenAICursorPage, Files, type DeleteFileResponse, type File, type ListFilesResponse, type FileContentResponse, type FileCreateParams, type FileListParams, } from "./files.js";
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export { Models, type ListModelsResponse, type Model, type ModelListResponse, type ModelRegisterParams, } from "./models/models.js";
|
|
10
|
+
export { Inspect } from "./inspect.js";
|
|
11
|
+
export { Models, type ListModelsResponse, type Model, type ModelRetrieveResponse, type ModelListResponse, type ModelRegisterResponse, type ModelRegisterParams, } from "./models/models.js";
|
|
13
12
|
export { Moderations, type CreateResponse, type ModerationCreateParams } from "./moderations.js";
|
|
14
|
-
export {
|
|
15
|
-
export { Providers, type
|
|
13
|
+
export { Prompts, type ListPromptsResponse, type Prompt, type PromptListResponse, type PromptCreateParams, type PromptRetrieveParams, type PromptUpdateParams, type PromptSetDefaultVersionParams, } from "./prompts/prompts.js";
|
|
14
|
+
export { Providers, type ProviderListResponse } from "./providers.js";
|
|
16
15
|
export { ResponseListResponsesOpenAICursorPage, Responses, type ResponseObject, type ResponseObjectStream, type ResponseListResponse, type ResponseDeleteResponse, type ResponseCreateParams, type ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming, type ResponseListParams, } from "./responses/responses.js";
|
|
17
|
-
export { Routes, type
|
|
16
|
+
export { Routes, type RouteListResponse, type RouteListParams } from "./routes.js";
|
|
18
17
|
export { Safety, type RunShieldResponse, type SafetyRunShieldParams } from "./safety.js";
|
|
19
18
|
export { Scoring, type ScoringScoreResponse, type ScoringScoreBatchResponse, type ScoringScoreParams, type ScoringScoreBatchParams, } from "./scoring.js";
|
|
20
19
|
export { ScoringFunctions, type ListScoringFunctionsResponse, type ScoringFn, type ScoringFnParams, type ScoringFunctionListResponse, type ScoringFunctionRegisterParams, } from "./scoring-functions.js";
|
|
21
20
|
export { Shields, type ListShieldsResponse, type Shield, type ShieldListResponse, type ShieldRegisterParams, } from "./shields.js";
|
|
22
|
-
export {
|
|
23
|
-
export { Telemetry, type Event, type QueryCondition, type QuerySpansResponse, type SpanWithStatus, type Trace, type TelemetryGetSpanResponse, type TelemetryGetSpanTreeResponse, type TelemetryQueryMetricsResponse, type TelemetryQuerySpansResponse, type TelemetryQueryTracesResponse, type TelemetryGetSpanTreeParams, type TelemetryLogEventParams, type TelemetryQueryMetricsParams, type TelemetryQuerySpansParams, type TelemetryQueryTracesParams, type TelemetrySaveSpansToDatasetParams, } from "./telemetry.js";
|
|
24
|
-
export { ToolRuntime, type ToolDef, type ToolInvocationResult, type ToolRuntimeListToolsResponse, type ToolRuntimeInvokeToolParams, type ToolRuntimeListToolsParams, } from "./tool-runtime/tool-runtime.js";
|
|
21
|
+
export { ToolRuntime, type ToolDef, type ToolInvocationResult, type ToolRuntimeListToolsResponse, type ToolRuntimeInvokeToolParams, type ToolRuntimeListToolsParams, } from "./tool-runtime.js";
|
|
25
22
|
export { Toolgroups, type ListToolGroupsResponse, type ToolGroup, type ToolgroupListResponse, type ToolgroupRegisterParams, } from "./toolgroups.js";
|
|
26
|
-
export { Tools, type
|
|
27
|
-
export { VectorDBs, type ListVectorDBsResponse, type VectorDBRetrieveResponse, type VectorDBListResponse, type VectorDBRegisterResponse, type VectorDBRegisterParams, } from "./vector-dbs.js";
|
|
23
|
+
export { Tools, type ToolListResponse, type ToolListParams } from "./tools.js";
|
|
28
24
|
export { VectorIo, type QueryChunksResponse, type VectorIoInsertParams, type VectorIoQueryParams, } from "./vector-io.js";
|
|
29
25
|
export { VectorStoresOpenAICursorPage, VectorStores, type ListVectorStoresResponse, type VectorStore, type VectorStoreDeleteResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreSearchParams, } from "./vector-stores/vector-stores.js";
|
|
30
26
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC;AACzB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EACL,kCAAkC,EAClC,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,kCAAkC,EACvC,KAAK,+BAA+B,GACrC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,KAAK,wBAAwB,EAAE,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrG,OAAO,EACL,qBAAqB,EACrB,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,KAAK,EACV,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC9F,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,6BAA6B,GACnC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EACL,qCAAqC,EACrC,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACtF,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,GAC7B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,GACnC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,WAAW,EACX,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,GAChC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,UAAU,EACV,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EACL,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,aAAa,CAAC;AACrB,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,+BAA+B,CAAC"}
|
package/resources/index.js
CHANGED
|
@@ -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);
|
|
@@ -19,36 +21,34 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
19
21
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
22
|
};
|
|
21
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.VectorStores = exports.VectorStoresOpenAICursorPage = exports.VectorIo = exports.
|
|
23
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
24
|
+
exports.VectorStores = exports.VectorStoresOpenAICursorPage = exports.VectorIo = exports.Tools = exports.Toolgroups = exports.ToolRuntime = exports.Shields = exports.ScoringFunctions = exports.Scoring = exports.Safety = exports.Routes = exports.Responses = exports.ResponseListResponsesOpenAICursorPage = exports.Providers = exports.Prompts = exports.Moderations = exports.Models = exports.Inspect = exports.Files = exports.FilesOpenAICursorPage = exports.Embeddings = exports.Conversations = exports.Completions = exports.Chat = exports.Beta = exports.Batches = exports.BatchListResponsesOpenAICursorPage = exports.Alpha = void 0;
|
|
24
25
|
__exportStar(require("./shared.js"), exports);
|
|
25
|
-
var
|
|
26
|
-
Object.defineProperty(exports, "
|
|
27
|
-
var
|
|
28
|
-
Object.defineProperty(exports, "
|
|
26
|
+
var alpha_1 = require("./alpha/alpha.js");
|
|
27
|
+
Object.defineProperty(exports, "Alpha", { enumerable: true, get: function () { return alpha_1.Alpha; } });
|
|
28
|
+
var batches_1 = require("./batches.js");
|
|
29
|
+
Object.defineProperty(exports, "BatchListResponsesOpenAICursorPage", { enumerable: true, get: function () { return batches_1.BatchListResponsesOpenAICursorPage; } });
|
|
30
|
+
Object.defineProperty(exports, "Batches", { enumerable: true, get: function () { return batches_1.Batches; } });
|
|
31
|
+
var beta_1 = require("./beta/beta.js");
|
|
32
|
+
Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return beta_1.Beta; } });
|
|
29
33
|
var chat_1 = require("./chat/chat.js");
|
|
30
34
|
Object.defineProperty(exports, "Chat", { enumerable: true, get: function () { return chat_1.Chat; } });
|
|
31
35
|
var completions_1 = require("./completions.js");
|
|
32
36
|
Object.defineProperty(exports, "Completions", { enumerable: true, get: function () { return completions_1.Completions; } });
|
|
33
|
-
var
|
|
34
|
-
Object.defineProperty(exports, "
|
|
37
|
+
var conversations_1 = require("./conversations/conversations.js");
|
|
38
|
+
Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return conversations_1.Conversations; } });
|
|
35
39
|
var embeddings_1 = require("./embeddings.js");
|
|
36
40
|
Object.defineProperty(exports, "Embeddings", { enumerable: true, get: function () { return embeddings_1.Embeddings; } });
|
|
37
|
-
var eval_1 = require("./eval/eval.js");
|
|
38
|
-
Object.defineProperty(exports, "Eval", { enumerable: true, get: function () { return eval_1.Eval; } });
|
|
39
41
|
var files_1 = require("./files.js");
|
|
40
42
|
Object.defineProperty(exports, "FilesOpenAICursorPage", { enumerable: true, get: function () { return files_1.FilesOpenAICursorPage; } });
|
|
41
43
|
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } });
|
|
42
|
-
var inference_1 = require("./inference.js");
|
|
43
|
-
Object.defineProperty(exports, "Inference", { enumerable: true, get: function () { return inference_1.Inference; } });
|
|
44
44
|
var inspect_1 = require("./inspect.js");
|
|
45
45
|
Object.defineProperty(exports, "Inspect", { enumerable: true, get: function () { return inspect_1.Inspect; } });
|
|
46
46
|
var models_1 = require("./models/models.js");
|
|
47
47
|
Object.defineProperty(exports, "Models", { enumerable: true, get: function () { return models_1.Models; } });
|
|
48
48
|
var moderations_1 = require("./moderations.js");
|
|
49
49
|
Object.defineProperty(exports, "Moderations", { enumerable: true, get: function () { return moderations_1.Moderations; } });
|
|
50
|
-
var
|
|
51
|
-
Object.defineProperty(exports, "
|
|
50
|
+
var prompts_1 = require("./prompts/prompts.js");
|
|
51
|
+
Object.defineProperty(exports, "Prompts", { enumerable: true, get: function () { return prompts_1.Prompts; } });
|
|
52
52
|
var providers_1 = require("./providers.js");
|
|
53
53
|
Object.defineProperty(exports, "Providers", { enumerable: true, get: function () { return providers_1.Providers; } });
|
|
54
54
|
var responses_1 = require("./responses/responses.js");
|
|
@@ -64,18 +64,12 @@ var scoring_functions_1 = require("./scoring-functions.js");
|
|
|
64
64
|
Object.defineProperty(exports, "ScoringFunctions", { enumerable: true, get: function () { return scoring_functions_1.ScoringFunctions; } });
|
|
65
65
|
var shields_1 = require("./shields.js");
|
|
66
66
|
Object.defineProperty(exports, "Shields", { enumerable: true, get: function () { return shields_1.Shields; } });
|
|
67
|
-
var
|
|
68
|
-
Object.defineProperty(exports, "SyntheticDataGeneration", { enumerable: true, get: function () { return synthetic_data_generation_1.SyntheticDataGeneration; } });
|
|
69
|
-
var telemetry_1 = require("./telemetry.js");
|
|
70
|
-
Object.defineProperty(exports, "Telemetry", { enumerable: true, get: function () { return telemetry_1.Telemetry; } });
|
|
71
|
-
var tool_runtime_1 = require("./tool-runtime/tool-runtime.js");
|
|
67
|
+
var tool_runtime_1 = require("./tool-runtime.js");
|
|
72
68
|
Object.defineProperty(exports, "ToolRuntime", { enumerable: true, get: function () { return tool_runtime_1.ToolRuntime; } });
|
|
73
69
|
var toolgroups_1 = require("./toolgroups.js");
|
|
74
70
|
Object.defineProperty(exports, "Toolgroups", { enumerable: true, get: function () { return toolgroups_1.Toolgroups; } });
|
|
75
71
|
var tools_1 = require("./tools.js");
|
|
76
72
|
Object.defineProperty(exports, "Tools", { enumerable: true, get: function () { return tools_1.Tools; } });
|
|
77
|
-
var vector_dbs_1 = require("./vector-dbs.js");
|
|
78
|
-
Object.defineProperty(exports, "VectorDBs", { enumerable: true, get: function () { return vector_dbs_1.VectorDBs; } });
|
|
79
73
|
var vector_io_1 = require("./vector-io.js");
|
|
80
74
|
Object.defineProperty(exports, "VectorIo", { enumerable: true, get: function () { return vector_io_1.VectorIo; } });
|
|
81
75
|
var vector_stores_1 = require("./vector-stores/vector-stores.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,0CAAsC;AAA7B,8FAAA,KAAK,OAAA;AACd,wCASmB;AARjB,6HAAA,kCAAkC,OAAA;AAClC,kGAAA,OAAO,OAAA;AAQT,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,uCAA6D;AAApD,4FAAA,IAAI,OAAA;AACb,gDAMuB;AALrB,0GAAA,WAAW,OAAA;AAMb,kEAMuC;AALrC,8GAAA,aAAa,OAAA;AAMf,8CAAqG;AAA5F,wGAAA,UAAU,OAAA;AACnB,oCASiB;AARf,8GAAA,qBAAqB,OAAA;AACrB,8FAAA,KAAK,OAAA;AAQP,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,6CAQyB;AAPvB,gGAAA,MAAM,OAAA;AAQR,gDAA8F;AAArF,0GAAA,WAAW,OAAA;AACpB,gDAS2B;AARzB,kGAAA,OAAO,OAAA;AAST,4CAAmE;AAA1D,sGAAA,SAAS,OAAA;AAClB,sDAW+B;AAV7B,kIAAA,qCAAqC,OAAA;AACrC,sGAAA,SAAS,OAAA;AAUX,sCAAgF;AAAvE,gGAAA,MAAM,OAAA;AACf,sCAAsF;AAA7E,gGAAA,MAAM,OAAA;AACf,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,4DAO6B;AAN3B,qHAAA,gBAAgB,OAAA;AAOlB,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,oCAA4E;AAAnE,8FAAA,KAAK,OAAA;AACd,4CAKqB;AAJnB,qGAAA,QAAQ,OAAA;AAKV,kEAWuC;AAVrC,6HAAA,4BAA4B,OAAA;AAC5B,6GAAA,YAAY,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -3,20 +3,21 @@
|
|
|
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
|
export * from "./shared.mjs";
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
+
export { Alpha } from "./alpha/alpha.mjs";
|
|
10
|
+
export { BatchListResponsesOpenAICursorPage, Batches, } from "./batches.mjs";
|
|
11
|
+
export { Beta } from "./beta/beta.mjs";
|
|
9
12
|
export { Chat } from "./chat/chat.mjs";
|
|
10
13
|
export { Completions, } from "./completions.mjs";
|
|
11
|
-
export {
|
|
14
|
+
export { Conversations, } from "./conversations/conversations.mjs";
|
|
12
15
|
export { Embeddings } from "./embeddings.mjs";
|
|
13
|
-
export { Eval, } from "./eval/eval.mjs";
|
|
14
16
|
export { FilesOpenAICursorPage, Files, } from "./files.mjs";
|
|
15
|
-
export { Inference, } from "./inference.mjs";
|
|
16
17
|
export { Inspect } from "./inspect.mjs";
|
|
17
18
|
export { Models, } from "./models/models.mjs";
|
|
18
19
|
export { Moderations } from "./moderations.mjs";
|
|
19
|
-
export {
|
|
20
|
+
export { Prompts, } from "./prompts/prompts.mjs";
|
|
20
21
|
export { Providers } from "./providers.mjs";
|
|
21
22
|
export { ResponseListResponsesOpenAICursorPage, Responses, } from "./responses/responses.mjs";
|
|
22
23
|
export { Routes } from "./routes.mjs";
|
|
@@ -24,12 +25,9 @@ export { Safety } from "./safety.mjs";
|
|
|
24
25
|
export { Scoring, } from "./scoring.mjs";
|
|
25
26
|
export { ScoringFunctions, } from "./scoring-functions.mjs";
|
|
26
27
|
export { Shields, } from "./shields.mjs";
|
|
27
|
-
export {
|
|
28
|
-
export { Telemetry, } from "./telemetry.mjs";
|
|
29
|
-
export { ToolRuntime, } from "./tool-runtime/tool-runtime.mjs";
|
|
28
|
+
export { ToolRuntime, } from "./tool-runtime.mjs";
|
|
30
29
|
export { Toolgroups, } from "./toolgroups.mjs";
|
|
31
|
-
export { Tools
|
|
32
|
-
export { VectorDBs, } from "./vector-dbs.mjs";
|
|
30
|
+
export { Tools } from "./tools.mjs";
|
|
33
31
|
export { VectorIo, } from "./vector-io.mjs";
|
|
34
32
|
export { VectorStoresOpenAICursorPage, VectorStores, } from "./vector-stores/vector-stores.mjs";
|
|
35
33
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;OAG/E,EAAE,KAAK,EAAE;OACT,EACL,kCAAkC,EAClC,OAAO,GAOR;OACM,EAAE,IAAI,EAAE;OACR,EAAE,IAAI,EAA4B;OAClC,EACL,WAAW,GAKZ;OACM,EACL,aAAa,GAKd;OACM,EAAE,UAAU,EAA6D;OACzE,EACL,qBAAqB,EACrB,KAAK,GAON;OACM,EAAE,OAAO,EAAE;OACX,EACL,MAAM,GAOP;OACM,EAAE,WAAW,EAAoD;OACjE,EACL,OAAO,GAQR;OACM,EAAE,SAAS,EAA6B;OACxC,EACL,qCAAqC,EACrC,SAAS,GASV;OACM,EAAE,MAAM,EAAgD;OACxD,EAAE,MAAM,EAAsD;OAC9D,EACL,OAAO,GAKR;OACM,EACL,gBAAgB,GAMjB;OACM,EACL,OAAO,GAKR;OACM,EACL,WAAW,GAMZ;OACM,EACL,UAAU,GAKX;OACM,EAAE,KAAK,EAA8C;OACrD,EACL,QAAQ,GAIT;OACM,EACL,4BAA4B,EAC5B,YAAY,GASb"}
|
package/resources/inspect.d.ts
CHANGED
|
@@ -1,82 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../resource.js";
|
|
2
2
|
import * as Core from "../core.js";
|
|
3
|
+
import * as Shared from "./shared.js";
|
|
3
4
|
export declare class Inspect extends APIResource {
|
|
4
5
|
/**
|
|
5
6
|
* Get the current health status of the service.
|
|
6
7
|
*/
|
|
7
|
-
health(options?: Core.RequestOptions): Core.APIPromise<HealthInfo>;
|
|
8
|
+
health(options?: Core.RequestOptions): Core.APIPromise<Shared.HealthInfo>;
|
|
8
9
|
/**
|
|
9
10
|
* Get the version of the service.
|
|
10
11
|
*/
|
|
11
|
-
version(options?: Core.RequestOptions): Core.APIPromise<VersionInfo>;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Health status information for the service.
|
|
15
|
-
*/
|
|
16
|
-
export interface HealthInfo {
|
|
17
|
-
/**
|
|
18
|
-
* Current health status of the service
|
|
19
|
-
*/
|
|
20
|
-
status: 'OK' | 'Error' | 'Not Implemented';
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Information about a registered provider including its configuration and health
|
|
24
|
-
* status.
|
|
25
|
-
*/
|
|
26
|
-
export interface ProviderInfo {
|
|
27
|
-
/**
|
|
28
|
-
* The API name this provider implements
|
|
29
|
-
*/
|
|
30
|
-
api: string;
|
|
31
|
-
/**
|
|
32
|
-
* Configuration parameters for the provider
|
|
33
|
-
*/
|
|
34
|
-
config: {
|
|
35
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Current health status of the provider
|
|
39
|
-
*/
|
|
40
|
-
health: {
|
|
41
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Unique identifier for the provider
|
|
45
|
-
*/
|
|
46
|
-
provider_id: string;
|
|
47
|
-
/**
|
|
48
|
-
* The type of provider implementation
|
|
49
|
-
*/
|
|
50
|
-
provider_type: string;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Information about an API route including its path, method, and implementing
|
|
54
|
-
* providers.
|
|
55
|
-
*/
|
|
56
|
-
export interface RouteInfo {
|
|
57
|
-
/**
|
|
58
|
-
* HTTP method for the route
|
|
59
|
-
*/
|
|
60
|
-
method: string;
|
|
61
|
-
/**
|
|
62
|
-
* List of provider types that implement this route
|
|
63
|
-
*/
|
|
64
|
-
provider_types: Array<string>;
|
|
65
|
-
/**
|
|
66
|
-
* The API endpoint path
|
|
67
|
-
*/
|
|
68
|
-
route: string;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Version information for the service.
|
|
72
|
-
*/
|
|
73
|
-
export interface VersionInfo {
|
|
74
|
-
/**
|
|
75
|
-
* Version number of the service
|
|
76
|
-
*/
|
|
77
|
-
version: string;
|
|
78
|
-
}
|
|
79
|
-
export declare namespace Inspect {
|
|
80
|
-
export { type HealthInfo as HealthInfo, type ProviderInfo as ProviderInfo, type RouteInfo as RouteInfo, type VersionInfo as VersionInfo, };
|
|
12
|
+
version(options?: Core.RequestOptions): Core.APIPromise<Shared.VersionInfo>;
|
|
81
13
|
}
|
|
82
14
|
//# sourceMappingURL=inspect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../src/resources/inspect.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../src/resources/inspect.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC;IAIzE;;OAEG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;CAG5E"}
|
package/resources/inspect.js
CHANGED
|
@@ -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.Inspect = void 0;
|
|
9
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
10
11
|
const resource_1 = require("../resource.js");
|
|
11
12
|
class Inspect extends resource_1.APIResource {
|
|
12
13
|
/**
|
package/resources/inspect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect.js","sourceRoot":"","sources":["../src/resources/inspect.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C
|
|
1
|
+
{"version":3,"file":"inspect.js","sourceRoot":"","sources":["../src/resources/inspect.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,6CAA0C;AAI1C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAA6B;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF;AAdD,0BAcC"}
|
package/resources/inspect.mjs
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
//
|
|
4
4
|
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
5
|
// the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
6
8
|
import { APIResource } from "../resource.mjs";
|
|
7
9
|
export class Inspect extends APIResource {
|
|
8
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect.mjs","sourceRoot":"","sources":["../src/resources/inspect.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;
|
|
1
|
+
{"version":3,"file":"inspect.mjs","sourceRoot":"","sources":["../src/resources/inspect.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAA6B;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Models, type ListModelsResponse, type Model, type ModelListResponse, type ModelRegisterParams, } from "./models.js";
|
|
2
|
-
export { OpenAI
|
|
1
|
+
export { Models, type ListModelsResponse, type Model, type ModelRetrieveResponse, type ModelListResponse, type ModelRegisterResponse, type ModelRegisterParams, } from "./models.js";
|
|
2
|
+
export { OpenAI } from "./openai.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,KAAK,EACV,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -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.OpenAI = exports.Models = void 0;
|
|
9
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
10
11
|
var models_1 = require("./models.js");
|
|
11
12
|
Object.defineProperty(exports, "Models", { enumerable: true, get: function () { return models_1.Models; } });
|
|
12
13
|
var openai_1 = require("./openai.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/models/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/models/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
|
@@ -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
|
export { Models, } from "./models.mjs";
|
|
7
9
|
export { OpenAI } from "./openai.mjs";
|
|
8
10
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/models/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/models/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EACL,MAAM,GAOP;OACM,EAAE,MAAM,EAAE"}
|
|
@@ -1,23 +1,33 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
3
|
import * as OpenAIAPI from "./openai.js";
|
|
4
|
-
import { OpenAI
|
|
4
|
+
import { OpenAI } from "./openai.js";
|
|
5
5
|
export declare class Models extends APIResource {
|
|
6
6
|
openai: OpenAIAPI.OpenAI;
|
|
7
7
|
/**
|
|
8
|
+
* Get model.
|
|
9
|
+
*
|
|
8
10
|
* Get a model by its identifier.
|
|
9
11
|
*/
|
|
10
|
-
retrieve(modelId: string, options?: Core.RequestOptions): Core.APIPromise<
|
|
12
|
+
retrieve(modelId: string, options?: Core.RequestOptions): Core.APIPromise<ModelRetrieveResponse>;
|
|
11
13
|
/**
|
|
12
|
-
* List
|
|
14
|
+
* List models using the OpenAI API.
|
|
13
15
|
*/
|
|
14
16
|
list(options?: Core.RequestOptions): Core.APIPromise<ModelListResponse>;
|
|
15
17
|
/**
|
|
18
|
+
* Register model.
|
|
19
|
+
*
|
|
16
20
|
* Register a model.
|
|
21
|
+
*
|
|
22
|
+
* @deprecated
|
|
17
23
|
*/
|
|
18
|
-
register(body: ModelRegisterParams, options?: Core.RequestOptions): Core.APIPromise<
|
|
24
|
+
register(body: ModelRegisterParams, options?: Core.RequestOptions): Core.APIPromise<ModelRegisterResponse>;
|
|
19
25
|
/**
|
|
26
|
+
* Unregister model.
|
|
27
|
+
*
|
|
20
28
|
* Unregister a model.
|
|
29
|
+
*
|
|
30
|
+
* @deprecated
|
|
21
31
|
*/
|
|
22
32
|
unregister(modelId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
23
33
|
}
|
|
@@ -25,63 +35,93 @@ export interface ListModelsResponse {
|
|
|
25
35
|
data: ModelListResponse;
|
|
26
36
|
}
|
|
27
37
|
/**
|
|
28
|
-
* A model
|
|
38
|
+
* A model from OpenAI.
|
|
39
|
+
*
|
|
40
|
+
* :id: The ID of the model :object: The object type, which will be "model"
|
|
41
|
+
* :created: The Unix timestamp in seconds when the model was created :owned_by:
|
|
42
|
+
* The owner of the model :custom_metadata: Llama Stack-specific metadata including
|
|
43
|
+
* model_type, provider info, and additional metadata
|
|
29
44
|
*/
|
|
30
45
|
export interface Model {
|
|
46
|
+
id: string;
|
|
47
|
+
created: number;
|
|
48
|
+
owned_by: string;
|
|
49
|
+
custom_metadata?: {
|
|
50
|
+
[key: string]: unknown;
|
|
51
|
+
} | null;
|
|
52
|
+
object?: 'model';
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A model resource representing an AI model registered in Llama Stack.
|
|
56
|
+
*/
|
|
57
|
+
export interface ModelRetrieveResponse {
|
|
31
58
|
/**
|
|
32
59
|
* Unique identifier for this resource in llama stack
|
|
33
60
|
*/
|
|
34
61
|
identifier: string;
|
|
35
|
-
/**
|
|
36
|
-
* Any additional metadata for this model
|
|
37
|
-
*/
|
|
38
|
-
metadata: {
|
|
39
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* The type of model (LLM or embedding model)
|
|
43
|
-
*/
|
|
44
|
-
model_type: 'llm' | 'embedding';
|
|
45
62
|
/**
|
|
46
63
|
* ID of the provider that owns this resource
|
|
47
64
|
*/
|
|
48
65
|
provider_id: string;
|
|
49
66
|
/**
|
|
50
|
-
*
|
|
67
|
+
* Any additional metadata for this model
|
|
68
|
+
*/
|
|
69
|
+
metadata?: {
|
|
70
|
+
[key: string]: unknown;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Enumeration of supported model types in Llama Stack.
|
|
51
74
|
*/
|
|
52
|
-
|
|
75
|
+
model_type?: 'llm' | 'embedding' | 'rerank';
|
|
53
76
|
/**
|
|
54
77
|
* Unique identifier for this resource in the provider
|
|
55
78
|
*/
|
|
56
|
-
provider_resource_id?: string;
|
|
79
|
+
provider_resource_id?: string | null;
|
|
80
|
+
type?: 'model';
|
|
57
81
|
}
|
|
58
82
|
export type ModelListResponse = Array<Model>;
|
|
59
|
-
|
|
83
|
+
/**
|
|
84
|
+
* A model resource representing an AI model registered in Llama Stack.
|
|
85
|
+
*/
|
|
86
|
+
export interface ModelRegisterResponse {
|
|
60
87
|
/**
|
|
61
|
-
*
|
|
88
|
+
* Unique identifier for this resource in llama stack
|
|
62
89
|
*/
|
|
63
|
-
|
|
90
|
+
identifier: string;
|
|
91
|
+
/**
|
|
92
|
+
* ID of the provider that owns this resource
|
|
93
|
+
*/
|
|
94
|
+
provider_id: string;
|
|
64
95
|
/**
|
|
65
|
-
* Any additional metadata for this model
|
|
96
|
+
* Any additional metadata for this model
|
|
66
97
|
*/
|
|
67
98
|
metadata?: {
|
|
68
|
-
[key: string]:
|
|
99
|
+
[key: string]: unknown;
|
|
69
100
|
};
|
|
70
101
|
/**
|
|
71
|
-
*
|
|
102
|
+
* Enumeration of supported model types in Llama Stack.
|
|
72
103
|
*/
|
|
73
|
-
model_type?: 'llm' | 'embedding';
|
|
104
|
+
model_type?: 'llm' | 'embedding' | 'rerank';
|
|
74
105
|
/**
|
|
75
|
-
*
|
|
106
|
+
* Unique identifier for this resource in the provider
|
|
76
107
|
*/
|
|
77
|
-
|
|
108
|
+
provider_resource_id?: string | null;
|
|
109
|
+
type?: 'model';
|
|
110
|
+
}
|
|
111
|
+
export interface ModelRegisterParams {
|
|
112
|
+
model_id: string;
|
|
113
|
+
metadata?: {
|
|
114
|
+
[key: string]: unknown;
|
|
115
|
+
} | null;
|
|
78
116
|
/**
|
|
79
|
-
*
|
|
117
|
+
* Enumeration of supported model types in Llama Stack.
|
|
80
118
|
*/
|
|
81
|
-
|
|
119
|
+
model_type?: 'llm' | 'embedding' | 'rerank' | null;
|
|
120
|
+
provider_id?: string | null;
|
|
121
|
+
provider_model_id?: string | null;
|
|
82
122
|
}
|
|
83
123
|
export declare namespace Models {
|
|
84
|
-
export { type ListModelsResponse as ListModelsResponse, type Model as Model, type ModelListResponse as ModelListResponse, type ModelRegisterParams as ModelRegisterParams, };
|
|
85
|
-
export { OpenAI as OpenAI
|
|
124
|
+
export { type ListModelsResponse as ListModelsResponse, type Model as Model, type ModelRetrieveResponse as ModelRetrieveResponse, type ModelListResponse as ModelListResponse, type ModelRegisterResponse as ModelRegisterResponse, type ModelRegisterParams as ModelRegisterParams, };
|
|
125
|
+
export { OpenAI as OpenAI };
|
|
86
126
|
}
|
|
87
127
|
//# sourceMappingURL=models.d.ts.map
|