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
|
@@ -3,7 +3,7 @@
|
|
|
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
|
-
|
|
6
|
+
//
|
|
7
7
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
8
|
|
|
9
9
|
import { APIResource } from '../../resource';
|
|
@@ -12,7 +12,7 @@ import * as Core from '../../core';
|
|
|
12
12
|
|
|
13
13
|
export class InputItems extends APIResource {
|
|
14
14
|
/**
|
|
15
|
-
* List input items
|
|
15
|
+
* List input items.
|
|
16
16
|
*/
|
|
17
17
|
list(
|
|
18
18
|
responseId: string,
|
|
@@ -28,7 +28,7 @@ export class InputItems extends APIResource {
|
|
|
28
28
|
if (isRequestOptions(query)) {
|
|
29
29
|
return this.list(responseId, {}, query);
|
|
30
30
|
}
|
|
31
|
-
return this._client.get(`/v1/
|
|
31
|
+
return this._client.get(`/v1/responses/${responseId}/input_items`, { query, ...options });
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -36,72 +36,223 @@ export class InputItems extends APIResource {
|
|
|
36
36
|
* List container for OpenAI response input items.
|
|
37
37
|
*/
|
|
38
38
|
export interface InputItemListResponse {
|
|
39
|
-
/**
|
|
40
|
-
* List of input items
|
|
41
|
-
*/
|
|
42
39
|
data: Array<
|
|
40
|
+
| InputItemListResponse.OpenAIResponseMessageOutput
|
|
43
41
|
| InputItemListResponse.OpenAIResponseOutputMessageWebSearchToolCall
|
|
44
42
|
| InputItemListResponse.OpenAIResponseOutputMessageFileSearchToolCall
|
|
45
43
|
| InputItemListResponse.OpenAIResponseOutputMessageFunctionToolCall
|
|
44
|
+
| InputItemListResponse.OpenAIResponseOutputMessageMcpCall
|
|
45
|
+
| InputItemListResponse.OpenAIResponseOutputMessageMcpListTools
|
|
46
|
+
| InputItemListResponse.OpenAIResponseMcpApprovalRequest
|
|
46
47
|
| InputItemListResponse.OpenAIResponseInputFunctionToolCallOutput
|
|
47
|
-
| InputItemListResponse.
|
|
48
|
+
| InputItemListResponse.OpenAIResponseMcpApprovalResponse
|
|
49
|
+
| InputItemListResponse.OpenAIResponseMessageOutput
|
|
48
50
|
>;
|
|
49
51
|
|
|
50
|
-
|
|
51
|
-
* Object type identifier, always "list"
|
|
52
|
-
*/
|
|
53
|
-
object: 'list';
|
|
52
|
+
object?: 'list';
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
export namespace InputItemListResponse {
|
|
57
56
|
/**
|
|
58
|
-
*
|
|
57
|
+
* Corresponds to the various Message types in the Responses API. They are all
|
|
58
|
+
* under one type because the Responses API gives them all the same "type" value,
|
|
59
|
+
* and there is no way to tell them apart in certain scenarios.
|
|
59
60
|
*/
|
|
60
|
-
export interface
|
|
61
|
+
export interface OpenAIResponseMessageOutput {
|
|
62
|
+
content:
|
|
63
|
+
| string
|
|
64
|
+
| Array<
|
|
65
|
+
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentText
|
|
66
|
+
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentImage
|
|
67
|
+
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile
|
|
68
|
+
>
|
|
69
|
+
| Array<
|
|
70
|
+
| OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput
|
|
71
|
+
| OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal
|
|
72
|
+
>;
|
|
73
|
+
|
|
74
|
+
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
75
|
+
|
|
76
|
+
id?: string | null;
|
|
77
|
+
|
|
78
|
+
status?: string | null;
|
|
79
|
+
|
|
80
|
+
type?: 'message';
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export namespace OpenAIResponseMessageOutput {
|
|
61
84
|
/**
|
|
62
|
-
*
|
|
85
|
+
* Text content for input messages in OpenAI response format.
|
|
63
86
|
*/
|
|
64
|
-
|
|
87
|
+
export interface OpenAIResponseInputMessageContentText {
|
|
88
|
+
text: string;
|
|
89
|
+
|
|
90
|
+
type?: 'input_text';
|
|
91
|
+
}
|
|
65
92
|
|
|
66
93
|
/**
|
|
67
|
-
*
|
|
94
|
+
* Image content for input messages in OpenAI response format.
|
|
68
95
|
*/
|
|
69
|
-
|
|
96
|
+
export interface OpenAIResponseInputMessageContentImage {
|
|
97
|
+
detail?: 'low' | 'high' | 'auto';
|
|
98
|
+
|
|
99
|
+
file_id?: string | null;
|
|
100
|
+
|
|
101
|
+
image_url?: string | null;
|
|
102
|
+
|
|
103
|
+
type?: 'input_image';
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* File content for input messages in OpenAI response format.
|
|
108
|
+
*/
|
|
109
|
+
export interface OpenAIResponseInputMessageContentFile {
|
|
110
|
+
file_data?: string | null;
|
|
111
|
+
|
|
112
|
+
file_id?: string | null;
|
|
113
|
+
|
|
114
|
+
file_url?: string | null;
|
|
115
|
+
|
|
116
|
+
filename?: string | null;
|
|
117
|
+
|
|
118
|
+
type?: 'input_file';
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
122
|
+
text: string;
|
|
123
|
+
|
|
124
|
+
annotations?: Array<
|
|
125
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation
|
|
126
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation
|
|
127
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation
|
|
128
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath
|
|
129
|
+
>;
|
|
130
|
+
|
|
131
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
|
|
132
|
+
|
|
133
|
+
type?: 'output_text';
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
137
|
+
/**
|
|
138
|
+
* File citation annotation for referencing specific files in response content.
|
|
139
|
+
*/
|
|
140
|
+
export interface OpenAIResponseAnnotationFileCitation {
|
|
141
|
+
file_id: string;
|
|
142
|
+
|
|
143
|
+
filename: string;
|
|
144
|
+
|
|
145
|
+
index: number;
|
|
146
|
+
|
|
147
|
+
type?: 'file_citation';
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* URL citation annotation for referencing external web resources.
|
|
152
|
+
*/
|
|
153
|
+
export interface OpenAIResponseAnnotationCitation {
|
|
154
|
+
end_index: number;
|
|
155
|
+
|
|
156
|
+
start_index: number;
|
|
157
|
+
|
|
158
|
+
title: string;
|
|
159
|
+
|
|
160
|
+
url: string;
|
|
161
|
+
|
|
162
|
+
type?: 'url_citation';
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
166
|
+
container_id: string;
|
|
167
|
+
|
|
168
|
+
end_index: number;
|
|
169
|
+
|
|
170
|
+
file_id: string;
|
|
171
|
+
|
|
172
|
+
filename: string;
|
|
173
|
+
|
|
174
|
+
start_index: number;
|
|
175
|
+
|
|
176
|
+
type?: 'container_file_citation';
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export interface OpenAIResponseAnnotationFilePath {
|
|
180
|
+
file_id: string;
|
|
181
|
+
|
|
182
|
+
index: number;
|
|
183
|
+
|
|
184
|
+
type?: 'file_path';
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
189
|
+
* response.
|
|
190
|
+
*
|
|
191
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
192
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
193
|
+
*/
|
|
194
|
+
export interface Logprob {
|
|
195
|
+
token: string;
|
|
196
|
+
|
|
197
|
+
logprob: number;
|
|
198
|
+
|
|
199
|
+
bytes?: Array<number> | null;
|
|
200
|
+
|
|
201
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export namespace Logprob {
|
|
205
|
+
/**
|
|
206
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
207
|
+
* response.
|
|
208
|
+
*
|
|
209
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
210
|
+
* probability of the token
|
|
211
|
+
*/
|
|
212
|
+
export interface TopLogprob {
|
|
213
|
+
token: string;
|
|
214
|
+
|
|
215
|
+
logprob: number;
|
|
216
|
+
|
|
217
|
+
bytes?: Array<number> | null;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
70
221
|
|
|
71
222
|
/**
|
|
72
|
-
*
|
|
223
|
+
* Refusal content within a streamed response part.
|
|
73
224
|
*/
|
|
74
|
-
|
|
225
|
+
export interface OpenAIResponseContentPartRefusal {
|
|
226
|
+
refusal: string;
|
|
227
|
+
|
|
228
|
+
type?: 'refusal';
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Web search tool call output message for OpenAI responses.
|
|
234
|
+
*/
|
|
235
|
+
export interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
236
|
+
id: string;
|
|
237
|
+
|
|
238
|
+
status: string;
|
|
239
|
+
|
|
240
|
+
type?: 'web_search_call';
|
|
75
241
|
}
|
|
76
242
|
|
|
77
243
|
/**
|
|
78
244
|
* File search tool call output message for OpenAI responses.
|
|
79
245
|
*/
|
|
80
246
|
export interface OpenAIResponseOutputMessageFileSearchToolCall {
|
|
81
|
-
/**
|
|
82
|
-
* Unique identifier for this tool call
|
|
83
|
-
*/
|
|
84
247
|
id: string;
|
|
85
248
|
|
|
86
|
-
/**
|
|
87
|
-
* List of search queries executed
|
|
88
|
-
*/
|
|
89
249
|
queries: Array<string>;
|
|
90
250
|
|
|
91
|
-
/**
|
|
92
|
-
* Current status of the file search operation
|
|
93
|
-
*/
|
|
94
251
|
status: string;
|
|
95
252
|
|
|
96
|
-
|
|
97
|
-
* Tool call type identifier, always "file_search_call"
|
|
98
|
-
*/
|
|
99
|
-
type: 'file_search_call';
|
|
253
|
+
results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result> | null;
|
|
100
254
|
|
|
101
|
-
|
|
102
|
-
* (Optional) Search results returned by the file search operation
|
|
103
|
-
*/
|
|
104
|
-
results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result>;
|
|
255
|
+
type?: 'file_search_call';
|
|
105
256
|
}
|
|
106
257
|
|
|
107
258
|
export namespace OpenAIResponseOutputMessageFileSearchToolCall {
|
|
@@ -109,29 +260,14 @@ export namespace InputItemListResponse {
|
|
|
109
260
|
* Search results returned by the file search operation.
|
|
110
261
|
*/
|
|
111
262
|
export interface Result {
|
|
112
|
-
|
|
113
|
-
* (Optional) Key-value attributes associated with the file
|
|
114
|
-
*/
|
|
115
|
-
attributes: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
263
|
+
attributes: { [key: string]: unknown };
|
|
116
264
|
|
|
117
|
-
/**
|
|
118
|
-
* Unique identifier of the file containing the result
|
|
119
|
-
*/
|
|
120
265
|
file_id: string;
|
|
121
266
|
|
|
122
|
-
/**
|
|
123
|
-
* Name of the file containing the result
|
|
124
|
-
*/
|
|
125
267
|
filename: string;
|
|
126
268
|
|
|
127
|
-
/**
|
|
128
|
-
* Relevance score for this search result (between 0 and 1)
|
|
129
|
-
*/
|
|
130
269
|
score: number;
|
|
131
270
|
|
|
132
|
-
/**
|
|
133
|
-
* Text content of the search result
|
|
134
|
-
*/
|
|
135
271
|
text: string;
|
|
136
272
|
}
|
|
137
273
|
}
|
|
@@ -140,35 +276,77 @@ export namespace InputItemListResponse {
|
|
|
140
276
|
* Function tool call output message for OpenAI responses.
|
|
141
277
|
*/
|
|
142
278
|
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
143
|
-
/**
|
|
144
|
-
* JSON string containing the function arguments
|
|
145
|
-
*/
|
|
146
279
|
arguments: string;
|
|
147
280
|
|
|
148
|
-
/**
|
|
149
|
-
* Unique identifier for the function call
|
|
150
|
-
*/
|
|
151
281
|
call_id: string;
|
|
152
282
|
|
|
153
|
-
/**
|
|
154
|
-
* Name of the function being called
|
|
155
|
-
*/
|
|
156
283
|
name: string;
|
|
157
284
|
|
|
158
|
-
|
|
159
|
-
* Tool call type identifier, always "function_call"
|
|
160
|
-
*/
|
|
161
|
-
type: 'function_call';
|
|
285
|
+
id?: string | null;
|
|
162
286
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
287
|
+
status?: string | null;
|
|
288
|
+
|
|
289
|
+
type?: 'function_call';
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Model Context Protocol (MCP) call output message for OpenAI responses.
|
|
294
|
+
*/
|
|
295
|
+
export interface OpenAIResponseOutputMessageMcpCall {
|
|
296
|
+
id: string;
|
|
297
|
+
|
|
298
|
+
arguments: string;
|
|
299
|
+
|
|
300
|
+
name: string;
|
|
301
|
+
|
|
302
|
+
server_label: string;
|
|
303
|
+
|
|
304
|
+
error?: string | null;
|
|
305
|
+
|
|
306
|
+
output?: string | null;
|
|
307
|
+
|
|
308
|
+
type?: 'mcp_call';
|
|
309
|
+
}
|
|
167
310
|
|
|
311
|
+
/**
|
|
312
|
+
* MCP list tools output message containing available tools from an MCP server.
|
|
313
|
+
*/
|
|
314
|
+
export interface OpenAIResponseOutputMessageMcpListTools {
|
|
315
|
+
id: string;
|
|
316
|
+
|
|
317
|
+
server_label: string;
|
|
318
|
+
|
|
319
|
+
tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
|
|
320
|
+
|
|
321
|
+
type?: 'mcp_list_tools';
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export namespace OpenAIResponseOutputMessageMcpListTools {
|
|
168
325
|
/**
|
|
169
|
-
*
|
|
326
|
+
* Tool definition returned by MCP list tools operation.
|
|
170
327
|
*/
|
|
171
|
-
|
|
328
|
+
export interface Tool {
|
|
329
|
+
input_schema: { [key: string]: unknown };
|
|
330
|
+
|
|
331
|
+
name: string;
|
|
332
|
+
|
|
333
|
+
description?: string | null;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* A request for human approval of a tool invocation.
|
|
339
|
+
*/
|
|
340
|
+
export interface OpenAIResponseMcpApprovalRequest {
|
|
341
|
+
id: string;
|
|
342
|
+
|
|
343
|
+
arguments: string;
|
|
344
|
+
|
|
345
|
+
name: string;
|
|
346
|
+
|
|
347
|
+
server_label: string;
|
|
348
|
+
|
|
349
|
+
type?: 'mcp_approval_request';
|
|
172
350
|
}
|
|
173
351
|
|
|
174
352
|
/**
|
|
@@ -180,11 +358,26 @@ export namespace InputItemListResponse {
|
|
|
180
358
|
|
|
181
359
|
output: string;
|
|
182
360
|
|
|
183
|
-
|
|
361
|
+
id?: string | null;
|
|
362
|
+
|
|
363
|
+
status?: string | null;
|
|
364
|
+
|
|
365
|
+
type?: 'function_call_output';
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* A response to an MCP approval request.
|
|
370
|
+
*/
|
|
371
|
+
export interface OpenAIResponseMcpApprovalResponse {
|
|
372
|
+
approval_request_id: string;
|
|
373
|
+
|
|
374
|
+
approve: boolean;
|
|
184
375
|
|
|
185
|
-
id?: string;
|
|
376
|
+
id?: string | null;
|
|
186
377
|
|
|
187
|
-
|
|
378
|
+
reason?: string | null;
|
|
379
|
+
|
|
380
|
+
type?: 'mcp_approval_response';
|
|
188
381
|
}
|
|
189
382
|
|
|
190
383
|
/**
|
|
@@ -192,127 +385,108 @@ export namespace InputItemListResponse {
|
|
|
192
385
|
* under one type because the Responses API gives them all the same "type" value,
|
|
193
386
|
* and there is no way to tell them apart in certain scenarios.
|
|
194
387
|
*/
|
|
195
|
-
export interface
|
|
388
|
+
export interface OpenAIResponseMessageOutput {
|
|
196
389
|
content:
|
|
197
390
|
| string
|
|
198
391
|
| Array<
|
|
199
|
-
|
|
|
200
|
-
|
|
|
392
|
+
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentText
|
|
393
|
+
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentImage
|
|
394
|
+
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile
|
|
201
395
|
>
|
|
202
|
-
| Array<
|
|
396
|
+
| Array<
|
|
397
|
+
| OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput
|
|
398
|
+
| OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal
|
|
399
|
+
>;
|
|
203
400
|
|
|
204
401
|
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
205
402
|
|
|
206
|
-
|
|
403
|
+
id?: string | null;
|
|
207
404
|
|
|
208
|
-
|
|
405
|
+
status?: string | null;
|
|
209
406
|
|
|
210
|
-
|
|
407
|
+
type?: 'message';
|
|
211
408
|
}
|
|
212
409
|
|
|
213
|
-
export namespace
|
|
410
|
+
export namespace OpenAIResponseMessageOutput {
|
|
214
411
|
/**
|
|
215
412
|
* Text content for input messages in OpenAI response format.
|
|
216
413
|
*/
|
|
217
414
|
export interface OpenAIResponseInputMessageContentText {
|
|
218
|
-
/**
|
|
219
|
-
* The text content of the input message
|
|
220
|
-
*/
|
|
221
415
|
text: string;
|
|
222
416
|
|
|
223
|
-
|
|
224
|
-
* Content type identifier, always "input_text"
|
|
225
|
-
*/
|
|
226
|
-
type: 'input_text';
|
|
417
|
+
type?: 'input_text';
|
|
227
418
|
}
|
|
228
419
|
|
|
229
420
|
/**
|
|
230
421
|
* Image content for input messages in OpenAI response format.
|
|
231
422
|
*/
|
|
232
423
|
export interface OpenAIResponseInputMessageContentImage {
|
|
233
|
-
|
|
234
|
-
* Level of detail for image processing, can be "low", "high", or "auto"
|
|
235
|
-
*/
|
|
236
|
-
detail: 'low' | 'high' | 'auto';
|
|
424
|
+
detail?: 'low' | 'high' | 'auto';
|
|
237
425
|
|
|
238
|
-
|
|
239
|
-
* Content type identifier, always "input_image"
|
|
240
|
-
*/
|
|
241
|
-
type: 'input_image';
|
|
426
|
+
file_id?: string | null;
|
|
242
427
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
image_url?: string;
|
|
428
|
+
image_url?: string | null;
|
|
429
|
+
|
|
430
|
+
type?: 'input_image';
|
|
247
431
|
}
|
|
248
432
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
433
|
+
/**
|
|
434
|
+
* File content for input messages in OpenAI response format.
|
|
435
|
+
*/
|
|
436
|
+
export interface OpenAIResponseInputMessageContentFile {
|
|
437
|
+
file_data?: string | null;
|
|
438
|
+
|
|
439
|
+
file_id?: string | null;
|
|
440
|
+
|
|
441
|
+
file_url?: string | null;
|
|
442
|
+
|
|
443
|
+
filename?: string | null;
|
|
444
|
+
|
|
445
|
+
type?: 'input_file';
|
|
446
|
+
}
|
|
256
447
|
|
|
448
|
+
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
257
449
|
text: string;
|
|
258
450
|
|
|
259
|
-
|
|
451
|
+
annotations?: Array<
|
|
452
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation
|
|
453
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation
|
|
454
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation
|
|
455
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath
|
|
456
|
+
>;
|
|
457
|
+
|
|
458
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
|
|
459
|
+
|
|
460
|
+
type?: 'output_text';
|
|
260
461
|
}
|
|
261
462
|
|
|
262
|
-
export namespace
|
|
463
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
263
464
|
/**
|
|
264
465
|
* File citation annotation for referencing specific files in response content.
|
|
265
466
|
*/
|
|
266
467
|
export interface OpenAIResponseAnnotationFileCitation {
|
|
267
|
-
/**
|
|
268
|
-
* Unique identifier of the referenced file
|
|
269
|
-
*/
|
|
270
468
|
file_id: string;
|
|
271
469
|
|
|
272
|
-
/**
|
|
273
|
-
* Name of the referenced file
|
|
274
|
-
*/
|
|
275
470
|
filename: string;
|
|
276
471
|
|
|
277
|
-
/**
|
|
278
|
-
* Position index of the citation within the content
|
|
279
|
-
*/
|
|
280
472
|
index: number;
|
|
281
473
|
|
|
282
|
-
|
|
283
|
-
* Annotation type identifier, always "file_citation"
|
|
284
|
-
*/
|
|
285
|
-
type: 'file_citation';
|
|
474
|
+
type?: 'file_citation';
|
|
286
475
|
}
|
|
287
476
|
|
|
288
477
|
/**
|
|
289
478
|
* URL citation annotation for referencing external web resources.
|
|
290
479
|
*/
|
|
291
480
|
export interface OpenAIResponseAnnotationCitation {
|
|
292
|
-
/**
|
|
293
|
-
* End position of the citation span in the content
|
|
294
|
-
*/
|
|
295
481
|
end_index: number;
|
|
296
482
|
|
|
297
|
-
/**
|
|
298
|
-
* Start position of the citation span in the content
|
|
299
|
-
*/
|
|
300
483
|
start_index: number;
|
|
301
484
|
|
|
302
|
-
/**
|
|
303
|
-
* Title of the referenced web resource
|
|
304
|
-
*/
|
|
305
485
|
title: string;
|
|
306
486
|
|
|
307
|
-
/**
|
|
308
|
-
* Annotation type identifier, always "url_citation"
|
|
309
|
-
*/
|
|
310
|
-
type: 'url_citation';
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* URL of the referenced web resource
|
|
314
|
-
*/
|
|
315
487
|
url: string;
|
|
488
|
+
|
|
489
|
+
type?: 'url_citation';
|
|
316
490
|
}
|
|
317
491
|
|
|
318
492
|
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
@@ -326,7 +500,7 @@ export namespace InputItemListResponse {
|
|
|
326
500
|
|
|
327
501
|
start_index: number;
|
|
328
502
|
|
|
329
|
-
type
|
|
503
|
+
type?: 'container_file_citation';
|
|
330
504
|
}
|
|
331
505
|
|
|
332
506
|
export interface OpenAIResponseAnnotationFilePath {
|
|
@@ -334,38 +508,68 @@ export namespace InputItemListResponse {
|
|
|
334
508
|
|
|
335
509
|
index: number;
|
|
336
510
|
|
|
337
|
-
type
|
|
511
|
+
type?: 'file_path';
|
|
338
512
|
}
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
516
|
+
* response.
|
|
517
|
+
*
|
|
518
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
519
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
520
|
+
*/
|
|
521
|
+
export interface Logprob {
|
|
522
|
+
token: string;
|
|
523
|
+
|
|
524
|
+
logprob: number;
|
|
525
|
+
|
|
526
|
+
bytes?: Array<number> | null;
|
|
527
|
+
|
|
528
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export namespace Logprob {
|
|
532
|
+
/**
|
|
533
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
534
|
+
* response.
|
|
535
|
+
*
|
|
536
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
537
|
+
* probability of the token
|
|
538
|
+
*/
|
|
539
|
+
export interface TopLogprob {
|
|
540
|
+
token: string;
|
|
541
|
+
|
|
542
|
+
logprob: number;
|
|
543
|
+
|
|
544
|
+
bytes?: Array<number> | null;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Refusal content within a streamed response part.
|
|
551
|
+
*/
|
|
552
|
+
export interface OpenAIResponseContentPartRefusal {
|
|
553
|
+
refusal: string;
|
|
554
|
+
|
|
555
|
+
type?: 'refusal';
|
|
339
556
|
}
|
|
340
557
|
}
|
|
341
558
|
}
|
|
342
559
|
|
|
343
560
|
export interface InputItemListParams {
|
|
344
|
-
|
|
345
|
-
* An item ID to list items after, used for pagination.
|
|
346
|
-
*/
|
|
347
|
-
after?: string;
|
|
561
|
+
after?: string | null;
|
|
348
562
|
|
|
349
|
-
|
|
350
|
-
* An item ID to list items before, used for pagination.
|
|
351
|
-
*/
|
|
352
|
-
before?: string;
|
|
563
|
+
before?: string | null;
|
|
353
564
|
|
|
354
|
-
|
|
355
|
-
* Additional fields to include in the response.
|
|
356
|
-
*/
|
|
357
|
-
include?: Array<string>;
|
|
565
|
+
include?: Array<string> | null;
|
|
358
566
|
|
|
359
|
-
|
|
360
|
-
* A limit on the number of objects to be returned. Limit can range between 1 and
|
|
361
|
-
* 100, and the default is 20.
|
|
362
|
-
*/
|
|
363
|
-
limit?: number;
|
|
567
|
+
limit?: number | null;
|
|
364
568
|
|
|
365
569
|
/**
|
|
366
|
-
*
|
|
570
|
+
* Sort order for paginated responses.
|
|
367
571
|
*/
|
|
368
|
-
order?: 'asc' | 'desc';
|
|
572
|
+
order?: 'asc' | 'desc' | null;
|
|
369
573
|
}
|
|
370
574
|
|
|
371
575
|
export declare namespace InputItems {
|