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
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../resource.js";
|
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
3
|
export declare class InputItems extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
* List input items
|
|
5
|
+
* List input items.
|
|
6
6
|
*/
|
|
7
7
|
list(responseId: string, query?: InputItemListParams, options?: Core.RequestOptions): Core.APIPromise<InputItemListResponse>;
|
|
8
8
|
list(responseId: string, options?: Core.RequestOptions): Core.APIPromise<InputItemListResponse>;
|
|
@@ -11,84 +11,153 @@ export declare class InputItems extends APIResource {
|
|
|
11
11
|
* List container for OpenAI response input items.
|
|
12
12
|
*/
|
|
13
13
|
export interface InputItemListResponse {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*/
|
|
17
|
-
data: Array<InputItemListResponse.OpenAIResponseOutputMessageWebSearchToolCall | InputItemListResponse.OpenAIResponseOutputMessageFileSearchToolCall | InputItemListResponse.OpenAIResponseOutputMessageFunctionToolCall | InputItemListResponse.OpenAIResponseInputFunctionToolCallOutput | InputItemListResponse.OpenAIResponseMessage>;
|
|
18
|
-
/**
|
|
19
|
-
* Object type identifier, always "list"
|
|
20
|
-
*/
|
|
21
|
-
object: 'list';
|
|
14
|
+
data: Array<InputItemListResponse.OpenAIResponseMessageOutput | InputItemListResponse.OpenAIResponseOutputMessageWebSearchToolCall | InputItemListResponse.OpenAIResponseOutputMessageFileSearchToolCall | InputItemListResponse.OpenAIResponseOutputMessageFunctionToolCall | InputItemListResponse.OpenAIResponseOutputMessageMcpCall | InputItemListResponse.OpenAIResponseOutputMessageMcpListTools | InputItemListResponse.OpenAIResponseMcpApprovalRequest | InputItemListResponse.OpenAIResponseInputFunctionToolCallOutput | InputItemListResponse.OpenAIResponseMcpApprovalResponse | InputItemListResponse.OpenAIResponseMessageOutput>;
|
|
15
|
+
object?: 'list';
|
|
22
16
|
}
|
|
23
17
|
export declare namespace InputItemListResponse {
|
|
24
18
|
/**
|
|
25
|
-
*
|
|
19
|
+
* Corresponds to the various Message types in the Responses API. They are all
|
|
20
|
+
* under one type because the Responses API gives them all the same "type" value,
|
|
21
|
+
* and there is no way to tell them apart in certain scenarios.
|
|
26
22
|
*/
|
|
27
|
-
interface
|
|
23
|
+
interface OpenAIResponseMessageOutput {
|
|
24
|
+
content: string | Array<OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentText | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentImage | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile> | Array<OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput | OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal>;
|
|
25
|
+
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
26
|
+
id?: string | null;
|
|
27
|
+
status?: string | null;
|
|
28
|
+
type?: 'message';
|
|
29
|
+
}
|
|
30
|
+
namespace OpenAIResponseMessageOutput {
|
|
28
31
|
/**
|
|
29
|
-
*
|
|
32
|
+
* Text content for input messages in OpenAI response format.
|
|
30
33
|
*/
|
|
31
|
-
|
|
34
|
+
interface OpenAIResponseInputMessageContentText {
|
|
35
|
+
text: string;
|
|
36
|
+
type?: 'input_text';
|
|
37
|
+
}
|
|
32
38
|
/**
|
|
33
|
-
*
|
|
39
|
+
* Image content for input messages in OpenAI response format.
|
|
34
40
|
*/
|
|
35
|
-
|
|
41
|
+
interface OpenAIResponseInputMessageContentImage {
|
|
42
|
+
detail?: 'low' | 'high' | 'auto';
|
|
43
|
+
file_id?: string | null;
|
|
44
|
+
image_url?: string | null;
|
|
45
|
+
type?: 'input_image';
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* File content for input messages in OpenAI response format.
|
|
49
|
+
*/
|
|
50
|
+
interface OpenAIResponseInputMessageContentFile {
|
|
51
|
+
file_data?: string | null;
|
|
52
|
+
file_id?: string | null;
|
|
53
|
+
file_url?: string | null;
|
|
54
|
+
filename?: string | null;
|
|
55
|
+
type?: 'input_file';
|
|
56
|
+
}
|
|
57
|
+
interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
58
|
+
text: string;
|
|
59
|
+
annotations?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath>;
|
|
60
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
|
|
61
|
+
type?: 'output_text';
|
|
62
|
+
}
|
|
63
|
+
namespace OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
64
|
+
/**
|
|
65
|
+
* File citation annotation for referencing specific files in response content.
|
|
66
|
+
*/
|
|
67
|
+
interface OpenAIResponseAnnotationFileCitation {
|
|
68
|
+
file_id: string;
|
|
69
|
+
filename: string;
|
|
70
|
+
index: number;
|
|
71
|
+
type?: 'file_citation';
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* URL citation annotation for referencing external web resources.
|
|
75
|
+
*/
|
|
76
|
+
interface OpenAIResponseAnnotationCitation {
|
|
77
|
+
end_index: number;
|
|
78
|
+
start_index: number;
|
|
79
|
+
title: string;
|
|
80
|
+
url: string;
|
|
81
|
+
type?: 'url_citation';
|
|
82
|
+
}
|
|
83
|
+
interface OpenAIResponseAnnotationContainerFileCitation {
|
|
84
|
+
container_id: string;
|
|
85
|
+
end_index: number;
|
|
86
|
+
file_id: string;
|
|
87
|
+
filename: string;
|
|
88
|
+
start_index: number;
|
|
89
|
+
type?: 'container_file_citation';
|
|
90
|
+
}
|
|
91
|
+
interface OpenAIResponseAnnotationFilePath {
|
|
92
|
+
file_id: string;
|
|
93
|
+
index: number;
|
|
94
|
+
type?: 'file_path';
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
98
|
+
* response.
|
|
99
|
+
*
|
|
100
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
101
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
102
|
+
*/
|
|
103
|
+
interface Logprob {
|
|
104
|
+
token: string;
|
|
105
|
+
logprob: number;
|
|
106
|
+
bytes?: Array<number> | null;
|
|
107
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
108
|
+
}
|
|
109
|
+
namespace Logprob {
|
|
110
|
+
/**
|
|
111
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
112
|
+
* response.
|
|
113
|
+
*
|
|
114
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
115
|
+
* probability of the token
|
|
116
|
+
*/
|
|
117
|
+
interface TopLogprob {
|
|
118
|
+
token: string;
|
|
119
|
+
logprob: number;
|
|
120
|
+
bytes?: Array<number> | null;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
36
124
|
/**
|
|
37
|
-
*
|
|
125
|
+
* Refusal content within a streamed response part.
|
|
38
126
|
*/
|
|
39
|
-
|
|
127
|
+
interface OpenAIResponseContentPartRefusal {
|
|
128
|
+
refusal: string;
|
|
129
|
+
type?: 'refusal';
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Web search tool call output message for OpenAI responses.
|
|
134
|
+
*/
|
|
135
|
+
interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
136
|
+
id: string;
|
|
137
|
+
status: string;
|
|
138
|
+
type?: 'web_search_call';
|
|
40
139
|
}
|
|
41
140
|
/**
|
|
42
141
|
* File search tool call output message for OpenAI responses.
|
|
43
142
|
*/
|
|
44
143
|
interface OpenAIResponseOutputMessageFileSearchToolCall {
|
|
45
|
-
/**
|
|
46
|
-
* Unique identifier for this tool call
|
|
47
|
-
*/
|
|
48
144
|
id: string;
|
|
49
|
-
/**
|
|
50
|
-
* List of search queries executed
|
|
51
|
-
*/
|
|
52
145
|
queries: Array<string>;
|
|
53
|
-
/**
|
|
54
|
-
* Current status of the file search operation
|
|
55
|
-
*/
|
|
56
146
|
status: string;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
*/
|
|
60
|
-
type: 'file_search_call';
|
|
61
|
-
/**
|
|
62
|
-
* (Optional) Search results returned by the file search operation
|
|
63
|
-
*/
|
|
64
|
-
results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result>;
|
|
147
|
+
results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result> | null;
|
|
148
|
+
type?: 'file_search_call';
|
|
65
149
|
}
|
|
66
150
|
namespace OpenAIResponseOutputMessageFileSearchToolCall {
|
|
67
151
|
/**
|
|
68
152
|
* Search results returned by the file search operation.
|
|
69
153
|
*/
|
|
70
154
|
interface Result {
|
|
71
|
-
/**
|
|
72
|
-
* (Optional) Key-value attributes associated with the file
|
|
73
|
-
*/
|
|
74
155
|
attributes: {
|
|
75
|
-
[key: string]:
|
|
156
|
+
[key: string]: unknown;
|
|
76
157
|
};
|
|
77
|
-
/**
|
|
78
|
-
* Unique identifier of the file containing the result
|
|
79
|
-
*/
|
|
80
158
|
file_id: string;
|
|
81
|
-
/**
|
|
82
|
-
* Name of the file containing the result
|
|
83
|
-
*/
|
|
84
159
|
filename: string;
|
|
85
|
-
/**
|
|
86
|
-
* Relevance score for this search result (between 0 and 1)
|
|
87
|
-
*/
|
|
88
160
|
score: number;
|
|
89
|
-
/**
|
|
90
|
-
* Text content of the search result
|
|
91
|
-
*/
|
|
92
161
|
text: string;
|
|
93
162
|
}
|
|
94
163
|
}
|
|
@@ -96,30 +165,55 @@ export declare namespace InputItemListResponse {
|
|
|
96
165
|
* Function tool call output message for OpenAI responses.
|
|
97
166
|
*/
|
|
98
167
|
interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
99
|
-
/**
|
|
100
|
-
* JSON string containing the function arguments
|
|
101
|
-
*/
|
|
102
168
|
arguments: string;
|
|
103
|
-
/**
|
|
104
|
-
* Unique identifier for the function call
|
|
105
|
-
*/
|
|
106
169
|
call_id: string;
|
|
107
|
-
/**
|
|
108
|
-
* Name of the function being called
|
|
109
|
-
*/
|
|
110
170
|
name: string;
|
|
171
|
+
id?: string | null;
|
|
172
|
+
status?: string | null;
|
|
173
|
+
type?: 'function_call';
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Model Context Protocol (MCP) call output message for OpenAI responses.
|
|
177
|
+
*/
|
|
178
|
+
interface OpenAIResponseOutputMessageMcpCall {
|
|
179
|
+
id: string;
|
|
180
|
+
arguments: string;
|
|
181
|
+
name: string;
|
|
182
|
+
server_label: string;
|
|
183
|
+
error?: string | null;
|
|
184
|
+
output?: string | null;
|
|
185
|
+
type?: 'mcp_call';
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* MCP list tools output message containing available tools from an MCP server.
|
|
189
|
+
*/
|
|
190
|
+
interface OpenAIResponseOutputMessageMcpListTools {
|
|
191
|
+
id: string;
|
|
192
|
+
server_label: string;
|
|
193
|
+
tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
|
|
194
|
+
type?: 'mcp_list_tools';
|
|
195
|
+
}
|
|
196
|
+
namespace OpenAIResponseOutputMessageMcpListTools {
|
|
111
197
|
/**
|
|
112
|
-
* Tool
|
|
113
|
-
*/
|
|
114
|
-
type: 'function_call';
|
|
115
|
-
/**
|
|
116
|
-
* (Optional) Additional identifier for the tool call
|
|
117
|
-
*/
|
|
118
|
-
id?: string;
|
|
119
|
-
/**
|
|
120
|
-
* (Optional) Current status of the function call execution
|
|
198
|
+
* Tool definition returned by MCP list tools operation.
|
|
121
199
|
*/
|
|
122
|
-
|
|
200
|
+
interface Tool {
|
|
201
|
+
input_schema: {
|
|
202
|
+
[key: string]: unknown;
|
|
203
|
+
};
|
|
204
|
+
name: string;
|
|
205
|
+
description?: string | null;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* A request for human approval of a tool invocation.
|
|
210
|
+
*/
|
|
211
|
+
interface OpenAIResponseMcpApprovalRequest {
|
|
212
|
+
id: string;
|
|
213
|
+
arguments: string;
|
|
214
|
+
name: string;
|
|
215
|
+
server_label: string;
|
|
216
|
+
type?: 'mcp_approval_request';
|
|
123
217
|
}
|
|
124
218
|
/**
|
|
125
219
|
* This represents the output of a function call that gets passed back to the
|
|
@@ -128,104 +222,84 @@ export declare namespace InputItemListResponse {
|
|
|
128
222
|
interface OpenAIResponseInputFunctionToolCallOutput {
|
|
129
223
|
call_id: string;
|
|
130
224
|
output: string;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
225
|
+
id?: string | null;
|
|
226
|
+
status?: string | null;
|
|
227
|
+
type?: 'function_call_output';
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* A response to an MCP approval request.
|
|
231
|
+
*/
|
|
232
|
+
interface OpenAIResponseMcpApprovalResponse {
|
|
233
|
+
approval_request_id: string;
|
|
234
|
+
approve: boolean;
|
|
235
|
+
id?: string | null;
|
|
236
|
+
reason?: string | null;
|
|
237
|
+
type?: 'mcp_approval_response';
|
|
134
238
|
}
|
|
135
239
|
/**
|
|
136
240
|
* Corresponds to the various Message types in the Responses API. They are all
|
|
137
241
|
* under one type because the Responses API gives them all the same "type" value,
|
|
138
242
|
* and there is no way to tell them apart in certain scenarios.
|
|
139
243
|
*/
|
|
140
|
-
interface
|
|
141
|
-
content: string | Array<
|
|
244
|
+
interface OpenAIResponseMessageOutput {
|
|
245
|
+
content: string | Array<OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentText | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentImage | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile> | Array<OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput | OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal>;
|
|
142
246
|
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
247
|
+
id?: string | null;
|
|
248
|
+
status?: string | null;
|
|
249
|
+
type?: 'message';
|
|
146
250
|
}
|
|
147
|
-
namespace
|
|
251
|
+
namespace OpenAIResponseMessageOutput {
|
|
148
252
|
/**
|
|
149
253
|
* Text content for input messages in OpenAI response format.
|
|
150
254
|
*/
|
|
151
255
|
interface OpenAIResponseInputMessageContentText {
|
|
152
|
-
/**
|
|
153
|
-
* The text content of the input message
|
|
154
|
-
*/
|
|
155
256
|
text: string;
|
|
156
|
-
|
|
157
|
-
* Content type identifier, always "input_text"
|
|
158
|
-
*/
|
|
159
|
-
type: 'input_text';
|
|
257
|
+
type?: 'input_text';
|
|
160
258
|
}
|
|
161
259
|
/**
|
|
162
260
|
* Image content for input messages in OpenAI response format.
|
|
163
261
|
*/
|
|
164
262
|
interface OpenAIResponseInputMessageContentImage {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Content type identifier, always "input_image"
|
|
171
|
-
*/
|
|
172
|
-
type: 'input_image';
|
|
173
|
-
/**
|
|
174
|
-
* (Optional) URL of the image content
|
|
175
|
-
*/
|
|
176
|
-
image_url?: string;
|
|
263
|
+
detail?: 'low' | 'high' | 'auto';
|
|
264
|
+
file_id?: string | null;
|
|
265
|
+
image_url?: string | null;
|
|
266
|
+
type?: 'input_image';
|
|
177
267
|
}
|
|
178
|
-
|
|
179
|
-
|
|
268
|
+
/**
|
|
269
|
+
* File content for input messages in OpenAI response format.
|
|
270
|
+
*/
|
|
271
|
+
interface OpenAIResponseInputMessageContentFile {
|
|
272
|
+
file_data?: string | null;
|
|
273
|
+
file_id?: string | null;
|
|
274
|
+
file_url?: string | null;
|
|
275
|
+
filename?: string | null;
|
|
276
|
+
type?: 'input_file';
|
|
277
|
+
}
|
|
278
|
+
interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
180
279
|
text: string;
|
|
181
|
-
|
|
280
|
+
annotations?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath>;
|
|
281
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
|
|
282
|
+
type?: 'output_text';
|
|
182
283
|
}
|
|
183
|
-
namespace
|
|
284
|
+
namespace OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
184
285
|
/**
|
|
185
286
|
* File citation annotation for referencing specific files in response content.
|
|
186
287
|
*/
|
|
187
288
|
interface OpenAIResponseAnnotationFileCitation {
|
|
188
|
-
/**
|
|
189
|
-
* Unique identifier of the referenced file
|
|
190
|
-
*/
|
|
191
289
|
file_id: string;
|
|
192
|
-
/**
|
|
193
|
-
* Name of the referenced file
|
|
194
|
-
*/
|
|
195
290
|
filename: string;
|
|
196
|
-
/**
|
|
197
|
-
* Position index of the citation within the content
|
|
198
|
-
*/
|
|
199
291
|
index: number;
|
|
200
|
-
|
|
201
|
-
* Annotation type identifier, always "file_citation"
|
|
202
|
-
*/
|
|
203
|
-
type: 'file_citation';
|
|
292
|
+
type?: 'file_citation';
|
|
204
293
|
}
|
|
205
294
|
/**
|
|
206
295
|
* URL citation annotation for referencing external web resources.
|
|
207
296
|
*/
|
|
208
297
|
interface OpenAIResponseAnnotationCitation {
|
|
209
|
-
/**
|
|
210
|
-
* End position of the citation span in the content
|
|
211
|
-
*/
|
|
212
298
|
end_index: number;
|
|
213
|
-
/**
|
|
214
|
-
* Start position of the citation span in the content
|
|
215
|
-
*/
|
|
216
299
|
start_index: number;
|
|
217
|
-
/**
|
|
218
|
-
* Title of the referenced web resource
|
|
219
|
-
*/
|
|
220
300
|
title: string;
|
|
221
|
-
/**
|
|
222
|
-
* Annotation type identifier, always "url_citation"
|
|
223
|
-
*/
|
|
224
|
-
type: 'url_citation';
|
|
225
|
-
/**
|
|
226
|
-
* URL of the referenced web resource
|
|
227
|
-
*/
|
|
228
301
|
url: string;
|
|
302
|
+
type?: 'url_citation';
|
|
229
303
|
}
|
|
230
304
|
interface OpenAIResponseAnnotationContainerFileCitation {
|
|
231
305
|
container_id: string;
|
|
@@ -233,38 +307,59 @@ export declare namespace InputItemListResponse {
|
|
|
233
307
|
file_id: string;
|
|
234
308
|
filename: string;
|
|
235
309
|
start_index: number;
|
|
236
|
-
type
|
|
310
|
+
type?: 'container_file_citation';
|
|
237
311
|
}
|
|
238
312
|
interface OpenAIResponseAnnotationFilePath {
|
|
239
313
|
file_id: string;
|
|
240
314
|
index: number;
|
|
241
|
-
type
|
|
315
|
+
type?: 'file_path';
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
319
|
+
* response.
|
|
320
|
+
*
|
|
321
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
322
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
323
|
+
*/
|
|
324
|
+
interface Logprob {
|
|
325
|
+
token: string;
|
|
326
|
+
logprob: number;
|
|
327
|
+
bytes?: Array<number> | null;
|
|
328
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
329
|
+
}
|
|
330
|
+
namespace Logprob {
|
|
331
|
+
/**
|
|
332
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
333
|
+
* response.
|
|
334
|
+
*
|
|
335
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
336
|
+
* probability of the token
|
|
337
|
+
*/
|
|
338
|
+
interface TopLogprob {
|
|
339
|
+
token: string;
|
|
340
|
+
logprob: number;
|
|
341
|
+
bytes?: Array<number> | null;
|
|
342
|
+
}
|
|
242
343
|
}
|
|
243
344
|
}
|
|
345
|
+
/**
|
|
346
|
+
* Refusal content within a streamed response part.
|
|
347
|
+
*/
|
|
348
|
+
interface OpenAIResponseContentPartRefusal {
|
|
349
|
+
refusal: string;
|
|
350
|
+
type?: 'refusal';
|
|
351
|
+
}
|
|
244
352
|
}
|
|
245
353
|
}
|
|
246
354
|
export interface InputItemListParams {
|
|
355
|
+
after?: string | null;
|
|
356
|
+
before?: string | null;
|
|
357
|
+
include?: Array<string> | null;
|
|
358
|
+
limit?: number | null;
|
|
247
359
|
/**
|
|
248
|
-
*
|
|
249
|
-
*/
|
|
250
|
-
after?: string;
|
|
251
|
-
/**
|
|
252
|
-
* An item ID to list items before, used for pagination.
|
|
253
|
-
*/
|
|
254
|
-
before?: string;
|
|
255
|
-
/**
|
|
256
|
-
* Additional fields to include in the response.
|
|
257
|
-
*/
|
|
258
|
-
include?: Array<string>;
|
|
259
|
-
/**
|
|
260
|
-
* A limit on the number of objects to be returned. Limit can range between 1 and
|
|
261
|
-
* 100, and the default is 20.
|
|
262
|
-
*/
|
|
263
|
-
limit?: number;
|
|
264
|
-
/**
|
|
265
|
-
* The order to return the input items in. Default is desc.
|
|
360
|
+
* Sort order for paginated responses.
|
|
266
361
|
*/
|
|
267
|
-
order?: 'asc' | 'desc';
|
|
362
|
+
order?: 'asc' | 'desc' | null;
|
|
268
363
|
}
|
|
269
364
|
export declare namespace InputItems {
|
|
270
365
|
export { type InputItemListResponse as InputItemListResponse, type InputItemListParams as InputItemListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-items.d.ts","sourceRoot":"","sources":["../../src/resources/responses/input-items.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,KAAK,CAAC,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IACzC,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAWhG;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC
|
|
1
|
+
{"version":3,"file":"input-items.d.ts","sourceRoot":"","sources":["../../src/resources/responses/input-items.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,KAAK,CAAC,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,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B,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAE/B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
//
|
|
5
5
|
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
6
|
// the root directory of this source tree.
|
|
7
|
+
//
|
|
8
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
7
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
10
|
exports.InputItems = void 0;
|
|
9
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
10
11
|
const resource_1 = require("../../resource.js");
|
|
11
12
|
const core_1 = require("../../core.js");
|
|
12
13
|
class InputItems extends resource_1.APIResource {
|
|
@@ -14,7 +15,7 @@ class InputItems extends resource_1.APIResource {
|
|
|
14
15
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
15
16
|
return this.list(responseId, {}, query);
|
|
16
17
|
}
|
|
17
|
-
return this._client.get(`/v1/
|
|
18
|
+
return this._client.get(`/v1/responses/${responseId}/input_items`, { query, ...options });
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
exports.InputItems = InputItems;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-items.js","sourceRoot":"","sources":["../../src/resources/responses/input-items.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C
|
|
1
|
+
{"version":3,"file":"input-items.js","sourceRoot":"","sources":["../../src/resources/responses/input-items.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,MAAa,UAAW,SAAQ,sBAAW;IAUzC,IAAI,CACF,UAAkB,EAClB,QAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACzC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,UAAU,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;AApBD,gCAoBC"}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
//
|
|
4
4
|
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
5
|
// the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
6
8
|
import { APIResource } from "../../resource.mjs";
|
|
7
9
|
import { isRequestOptions } from "../../core.mjs";
|
|
8
10
|
export class InputItems extends APIResource {
|
|
@@ -10,7 +12,7 @@ export class InputItems extends APIResource {
|
|
|
10
12
|
if (isRequestOptions(query)) {
|
|
11
13
|
return this.list(responseId, {}, query);
|
|
12
14
|
}
|
|
13
|
-
return this._client.get(`/v1/
|
|
15
|
+
return this._client.get(`/v1/responses/${responseId}/input_items`, { query, ...options });
|
|
14
16
|
}
|
|
15
17
|
}
|
|
16
18
|
//# sourceMappingURL=input-items.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-items.mjs","sourceRoot":"","sources":["../../src/resources/responses/input-items.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;
|
|
1
|
+
{"version":3,"file":"input-items.mjs","sourceRoot":"","sources":["../../src/resources/responses/input-items.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;AAG3B,MAAM,OAAO,UAAW,SAAQ,WAAW;IAUzC,IAAI,CACF,UAAkB,EAClB,QAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACzC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,UAAU,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF"}
|