llama-stack-client 0.3.4-rc3 → 0.4.0-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +153 -0
- package/README.md +19 -21
- package/error.d.ts.map +1 -1
- package/error.js +1 -0
- package/error.js.map +1 -1
- package/error.mjs.map +1 -1
- package/index.d.mts +23 -50
- package/index.d.ts +23 -50
- package/index.d.ts.map +1 -1
- package/index.js +20 -29
- package/index.js.map +1 -1
- package/index.mjs +18 -28
- package/index.mjs.map +1 -1
- package/lib/response-helpers.d.ts +23 -0
- package/lib/response-helpers.d.ts.map +1 -0
- package/lib/response-helpers.js +53 -0
- package/lib/response-helpers.js.map +1 -0
- package/lib/response-helpers.mjs +49 -0
- package/lib/response-helpers.mjs.map +1 -0
- package/package.json +1 -1
- package/pagination.d.ts.map +1 -1
- package/pagination.js +2 -4
- package/pagination.js.map +1 -1
- package/pagination.mjs +1 -4
- package/pagination.mjs.map +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/alpha/alpha.d.ts +22 -0
- package/resources/alpha/alpha.d.ts.map +1 -0
- package/resources/alpha/alpha.js +57 -0
- package/resources/alpha/alpha.js.map +1 -0
- package/resources/alpha/alpha.mjs +30 -0
- package/resources/alpha/alpha.mjs.map +1 -0
- package/resources/{benchmarks.d.ts → alpha/benchmarks.d.ts} +25 -35
- package/resources/alpha/benchmarks.d.ts.map +1 -0
- package/resources/{benchmarks.js → alpha/benchmarks.js} +18 -4
- package/resources/alpha/benchmarks.js.map +1 -0
- package/resources/alpha/benchmarks.mjs +44 -0
- package/resources/alpha/benchmarks.mjs.map +1 -0
- package/resources/alpha/eval/eval.d.ts +160 -0
- package/resources/alpha/eval/eval.d.ts.map +1 -0
- package/resources/{eval → alpha/eval}/eval.js +7 -6
- package/resources/alpha/eval/eval.js.map +1 -0
- package/resources/{eval → alpha/eval}/eval.mjs +7 -5
- package/resources/alpha/eval/eval.mjs.map +1 -0
- package/resources/alpha/eval/index.d.ts +3 -0
- package/resources/alpha/eval/index.d.ts.map +1 -0
- package/resources/{eval → alpha/eval}/index.js +2 -1
- package/resources/alpha/eval/index.js.map +1 -0
- package/resources/{eval → alpha/eval}/index.mjs +2 -0
- package/resources/alpha/eval/index.mjs.map +1 -0
- package/resources/{eval → alpha/eval}/jobs.d.ts +2 -2
- package/resources/alpha/eval/jobs.d.ts.map +1 -0
- package/resources/{eval → alpha/eval}/jobs.js +6 -5
- package/resources/alpha/eval/jobs.js.map +1 -0
- package/resources/{eval → alpha/eval}/jobs.mjs +6 -4
- package/resources/alpha/eval/jobs.mjs.map +1 -0
- package/resources/alpha/eval.d.ts.map +1 -0
- package/resources/{eval.js → alpha/eval.js} +1 -0
- package/resources/alpha/eval.js.map +1 -0
- package/resources/alpha/eval.mjs.map +1 -0
- package/resources/alpha/index.d.ts +6 -0
- package/resources/alpha/index.d.ts.map +1 -0
- package/resources/alpha/index.js +21 -0
- package/resources/alpha/index.js.map +1 -0
- package/resources/alpha/index.mjs +13 -0
- package/resources/alpha/index.mjs.map +1 -0
- package/resources/alpha/inference.d.ts +85 -0
- package/resources/alpha/inference.d.ts.map +1 -0
- package/resources/{agents/steps.js → alpha/inference.js} +9 -8
- package/resources/alpha/inference.js.map +1 -0
- package/resources/alpha/inference.mjs +17 -0
- package/resources/alpha/inference.mjs.map +1 -0
- package/resources/alpha/post-training/index.d.ts +3 -0
- package/resources/alpha/post-training/index.d.ts.map +1 -0
- package/resources/{post-training → alpha/post-training}/index.js +2 -1
- package/resources/alpha/post-training/index.js.map +1 -0
- package/resources/{post-training → alpha/post-training}/index.mjs +2 -0
- package/resources/alpha/post-training/index.mjs.map +1 -0
- package/resources/alpha/post-training/job.d.ts +116 -0
- package/resources/alpha/post-training/job.d.ts.map +1 -0
- package/resources/{post-training → alpha/post-training}/job.js +7 -6
- package/resources/alpha/post-training/job.js.map +1 -0
- package/resources/{post-training → alpha/post-training}/job.mjs +7 -5
- package/resources/alpha/post-training/job.mjs.map +1 -0
- package/resources/alpha/post-training/post-training.d.ts +242 -0
- package/resources/alpha/post-training/post-training.d.ts.map +1 -0
- package/resources/{post-training → alpha/post-training}/post-training.js +5 -4
- package/resources/alpha/post-training/post-training.js.map +1 -0
- package/resources/{post-training → alpha/post-training}/post-training.mjs +5 -3
- package/resources/alpha/post-training/post-training.mjs.map +1 -0
- package/resources/alpha/post-training.d.ts.map +1 -0
- package/resources/{post-training.js → alpha/post-training.js} +2 -1
- package/resources/alpha/post-training.js.map +1 -0
- package/resources/{post-training.mjs → alpha/post-training.mjs} +2 -0
- package/resources/alpha/post-training.mjs.map +1 -0
- package/resources/alpha.d.ts +2 -0
- package/resources/alpha.d.ts.map +1 -0
- package/resources/alpha.js +25 -0
- package/resources/alpha.js.map +1 -0
- package/resources/alpha.mjs +9 -0
- package/resources/alpha.mjs.map +1 -0
- package/resources/batches.d.ts +322 -0
- package/resources/batches.d.ts.map +1 -0
- package/resources/batches.js +45 -0
- package/resources/batches.js.map +1 -0
- package/resources/batches.mjs +40 -0
- package/resources/batches.mjs.map +1 -0
- package/resources/beta/beta.d.ts +10 -0
- package/resources/beta/beta.d.ts.map +1 -0
- package/resources/{tool-runtime/tool-runtime.js → beta/beta.js} +10 -22
- package/resources/beta/beta.js.map +1 -0
- package/resources/beta/beta.mjs +18 -0
- package/resources/beta/beta.mjs.map +1 -0
- package/resources/beta/datasets.d.ts +257 -0
- package/resources/beta/datasets.d.ts.map +1 -0
- package/resources/{datasets.js → beta/datasets.js} +14 -9
- package/resources/beta/datasets.js.map +1 -0
- package/resources/{datasets.mjs → beta/datasets.mjs} +14 -8
- package/resources/beta/datasets.mjs.map +1 -0
- package/resources/beta/index.d.ts +3 -0
- package/resources/beta/index.d.ts.map +1 -0
- package/resources/beta/index.js +15 -0
- package/resources/beta/index.js.map +1 -0
- package/resources/beta/index.mjs +10 -0
- package/resources/beta/index.mjs.map +1 -0
- package/resources/beta.d.ts +2 -0
- package/resources/beta.d.ts.map +1 -0
- package/resources/{agents.js → beta.js} +4 -3
- package/resources/beta.js.map +1 -0
- package/resources/beta.mjs +9 -0
- package/resources/beta.mjs.map +1 -0
- package/resources/chat/chat.d.ts +73 -78
- package/resources/chat/chat.d.ts.map +1 -1
- package/resources/chat/chat.js +2 -2
- package/resources/chat/chat.js.map +1 -1
- package/resources/chat/chat.mjs +3 -2
- package/resources/chat/chat.mjs.map +1 -1
- package/resources/chat/completions.d.ts +756 -1402
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/chat/completions.js +8 -14
- package/resources/chat/completions.js.map +1 -1
- package/resources/chat/completions.mjs +7 -11
- package/resources/chat/completions.mjs.map +1 -1
- package/resources/chat/index.d.ts +1 -1
- package/resources/chat/index.d.ts.map +1 -1
- package/resources/chat/index.js +3 -3
- package/resources/chat/index.js.map +1 -1
- package/resources/chat/index.mjs +3 -1
- package/resources/chat/index.mjs.map +1 -1
- package/resources/chat.js +2 -1
- package/resources/chat.js.map +1 -1
- package/resources/chat.mjs +2 -0
- package/resources/chat.mjs.map +1 -1
- package/resources/completions.d.ts +52 -95
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js +3 -6
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs +3 -5
- package/resources/completions.mjs.map +1 -1
- package/resources/conversations/conversations.d.ts +292 -0
- package/resources/conversations/conversations.d.ts.map +1 -0
- package/resources/conversations/conversations.js +78 -0
- package/resources/conversations/conversations.js.map +1 -0
- package/resources/conversations/conversations.mjs +51 -0
- package/resources/conversations/conversations.mjs.map +1 -0
- package/resources/conversations/index.d.ts +3 -0
- package/resources/conversations/index.d.ts.map +1 -0
- package/resources/conversations/index.js +16 -0
- package/resources/conversations/index.js.map +1 -0
- package/resources/conversations/index.mjs +10 -0
- package/resources/conversations/index.mjs.map +1 -0
- package/resources/conversations/items.d.ts +762 -0
- package/resources/conversations/items.d.ts.map +1 -0
- package/resources/conversations/items.js +51 -0
- package/resources/conversations/items.js.map +1 -0
- package/resources/conversations/items.mjs +46 -0
- package/resources/conversations/items.mjs.map +1 -0
- package/resources/conversations.d.ts +2 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +25 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +9 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/embeddings.d.ts +10 -52
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/embeddings.js +5 -2
- package/resources/embeddings.js.map +1 -1
- package/resources/embeddings.mjs +5 -1
- package/resources/embeddings.mjs.map +1 -1
- package/resources/files.d.ts +44 -54
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +18 -9
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +18 -8
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.ts +9 -13
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -21
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +9 -11
- package/resources/index.mjs.map +1 -1
- package/resources/inspect.d.ts +6 -32
- package/resources/inspect.d.ts.map +1 -1
- package/resources/inspect.js +6 -1
- package/resources/inspect.js.map +1 -1
- package/resources/inspect.mjs +6 -0
- package/resources/inspect.mjs.map +1 -1
- package/resources/models/index.d.ts +2 -2
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js +2 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs +2 -0
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.ts +71 -31
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +13 -2
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +13 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/openai.d.ts +2 -16
- package/resources/models/openai.d.ts.map +1 -1
- package/resources/models/openai.js +3 -2
- package/resources/models/openai.js.map +1 -1
- package/resources/models/openai.mjs +3 -1
- package/resources/models/openai.mjs.map +1 -1
- package/resources/models.js +2 -1
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +2 -0
- package/resources/models.mjs.map +1 -1
- package/resources/moderations.d.ts +9 -35
- package/resources/moderations.d.ts.map +1 -1
- package/resources/moderations.js +5 -2
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +5 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/prompts/index.d.ts +3 -0
- package/resources/prompts/index.d.ts.map +1 -0
- package/resources/prompts/index.js +15 -0
- package/resources/prompts/index.js.map +1 -0
- package/resources/prompts/index.mjs +10 -0
- package/resources/prompts/index.mjs.map +1 -0
- package/resources/prompts/prompts.d.ts +96 -0
- package/resources/prompts/prompts.d.ts.map +1 -0
- package/resources/{agents/agents.js → prompts/prompts.js} +43 -30
- package/resources/prompts/prompts.js.map +1 -0
- package/resources/prompts/prompts.mjs +66 -0
- package/resources/prompts/prompts.mjs.map +1 -0
- package/resources/prompts/versions.d.ts +12 -0
- package/resources/prompts/versions.d.ts.map +1 -0
- package/resources/prompts/versions.js +23 -0
- package/resources/prompts/versions.js.map +1 -0
- package/resources/prompts/versions.mjs +19 -0
- package/resources/prompts/versions.mjs.map +1 -0
- package/resources/prompts.d.ts +2 -0
- package/resources/prompts.d.ts.map +1 -0
- package/resources/prompts.js +25 -0
- package/resources/prompts.js.map +1 -0
- package/resources/prompts.mjs +9 -0
- package/resources/prompts.mjs.map +1 -0
- package/resources/providers.d.ts +4 -6
- package/resources/providers.d.ts.map +1 -1
- package/resources/providers.js +6 -1
- package/resources/providers.js.map +1 -1
- package/resources/providers.mjs +6 -0
- package/resources/providers.mjs.map +1 -1
- package/resources/responses/index.js +2 -1
- package/resources/responses/index.js.map +1 -1
- package/resources/responses/index.mjs +2 -0
- package/resources/responses/index.mjs.map +1 -1
- package/resources/responses/input-items.d.ts +190 -151
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/input-items.js +3 -2
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +3 -1
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/responses.d.ts +1387 -1449
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +8 -11
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +8 -10
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/responses.js +2 -1
- package/resources/responses.js.map +1 -1
- package/resources/responses.mjs +2 -0
- package/resources/responses.mjs.map +1 -1
- package/resources/routes.d.ts +7 -7
- package/resources/routes.d.ts.map +1 -1
- package/resources/routes.js +8 -6
- package/resources/routes.js.map +1 -1
- package/resources/routes.mjs +8 -5
- package/resources/routes.mjs.map +1 -1
- package/resources/safety.d.ts +144 -10
- package/resources/safety.d.ts.map +1 -1
- package/resources/safety.js +4 -1
- package/resources/safety.js.map +1 -1
- package/resources/safety.mjs +4 -0
- package/resources/safety.mjs.map +1 -1
- package/resources/scoring-functions.d.ts +120 -50
- package/resources/scoring-functions.d.ts.map +1 -1
- package/resources/scoring-functions.js +15 -1
- package/resources/scoring-functions.js.map +1 -1
- package/resources/scoring-functions.mjs +15 -0
- package/resources/scoring-functions.mjs.map +1 -1
- package/resources/scoring.d.ts +85 -26
- package/resources/scoring.d.ts.map +1 -1
- package/resources/scoring.js +2 -1
- package/resources/scoring.js.map +1 -1
- package/resources/scoring.mjs +2 -0
- package/resources/scoring.mjs.map +1 -1
- package/resources/shared.d.ts +125 -629
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js +2 -0
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs +2 -0
- package/resources/shared.mjs.map +1 -1
- package/resources/shields.d.ts +19 -24
- package/resources/shields.d.ts.map +1 -1
- package/resources/shields.js +6 -1
- package/resources/shields.js.map +1 -1
- package/resources/shields.mjs +6 -0
- package/resources/shields.mjs.map +1 -1
- package/resources/tool-runtime.d.ts +151 -1
- package/resources/tool-runtime.d.ts.map +1 -1
- package/resources/tool-runtime.js +22 -16
- package/resources/tool-runtime.js.map +1 -1
- package/resources/tool-runtime.mjs +20 -1
- package/resources/tool-runtime.mjs.map +1 -1
- package/resources/toolgroups.d.ts +27 -37
- package/resources/toolgroups.d.ts.map +1 -1
- package/resources/toolgroups.js +10 -1
- package/resources/toolgroups.js.map +1 -1
- package/resources/toolgroups.mjs +10 -0
- package/resources/toolgroups.mjs.map +1 -1
- package/resources/tools.d.ts +9 -76
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +4 -1
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +4 -0
- package/resources/tools.mjs.map +1 -1
- package/resources/vector-io.d.ts +272 -148
- package/resources/vector-io.d.ts.map +1 -1
- package/resources/vector-io.js +2 -1
- package/resources/vector-io.js.map +1 -1
- package/resources/vector-io.mjs +2 -0
- package/resources/vector-io.mjs.map +1 -1
- package/resources/vector-stores/file-batches.d.ts +111 -0
- package/resources/vector-stores/file-batches.d.ts.map +1 -0
- package/resources/vector-stores/file-batches.js +45 -0
- package/resources/vector-stores/file-batches.js.map +1 -0
- package/resources/vector-stores/file-batches.mjs +41 -0
- package/resources/vector-stores/file-batches.mjs.map +1 -0
- package/resources/vector-stores/files.d.ts +83 -135
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +15 -14
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +15 -13
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.d.ts +2 -1
- package/resources/vector-stores/index.d.ts.map +1 -1
- package/resources/vector-stores/index.js +5 -2
- package/resources/vector-stores/index.js.map +1 -1
- package/resources/vector-stores/index.mjs +3 -0
- package/resources/vector-stores/index.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +118 -217
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +18 -12
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +18 -11
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/vector-stores.js +2 -1
- package/resources/vector-stores.js.map +1 -1
- package/resources/vector-stores.mjs +2 -0
- package/resources/vector-stores.mjs.map +1 -1
- package/src/error.ts +1 -0
- package/src/index.ts +82 -252
- package/src/lib/response-helpers.ts +60 -0
- package/src/pagination.ts +2 -5
- package/src/resource.ts +1 -0
- package/src/resources/alpha/alpha.ts +85 -0
- package/src/resources/{benchmarks.ts → alpha/benchmarks.ts} +36 -37
- package/src/resources/{eval → alpha/eval}/eval.ts +83 -65
- package/src/resources/{eval → alpha/eval}/index.ts +1 -2
- package/src/resources/{eval → alpha/eval}/jobs.ts +6 -6
- package/src/resources/{eval.ts → alpha/eval.ts} +1 -0
- package/src/resources/alpha/index.ts +34 -0
- package/src/resources/alpha/inference.ts +132 -0
- package/src/resources/{post-training → alpha/post-training}/index.ts +2 -2
- package/src/resources/alpha/post-training/job.ts +182 -0
- package/src/resources/alpha/post-training/post-training.ts +369 -0
- package/src/resources/{post-training.ts → alpha/post-training.ts} +1 -1
- package/src/resources/alpha.ts +9 -0
- package/src/resources/batches.ts +572 -0
- package/src/resources/beta/beta.ts +41 -0
- package/src/resources/beta/datasets.ts +350 -0
- package/src/resources/beta/index.ts +20 -0
- package/src/resources/{agents.ts → beta.ts} +2 -2
- package/src/resources/chat/chat.ts +82 -81
- package/src/resources/chat/completions.ts +874 -1484
- package/src/resources/chat/index.ts +1 -2
- package/src/resources/chat.ts +1 -1
- package/src/resources/completions.ts +57 -101
- package/src/resources/conversations/conversations.ts +455 -0
- package/src/resources/conversations/index.ts +25 -0
- package/src/resources/conversations/items.ts +1221 -0
- package/src/resources/conversations.ts +9 -0
- package/src/resources/embeddings.ts +14 -55
- package/src/resources/files.ts +54 -61
- package/src/resources/index.ts +33 -109
- package/src/resources/inspect.ts +7 -33
- package/src/resources/models/index.ts +4 -2
- package/src/resources/models/models.ts +79 -30
- package/src/resources/models/openai.ts +4 -24
- package/src/resources/models.ts +1 -1
- package/src/resources/moderations.ts +10 -36
- package/src/resources/prompts/index.ts +19 -0
- package/src/resources/prompts/prompts.ts +171 -0
- package/src/resources/prompts/versions.ts +26 -0
- package/src/resources/prompts.ts +9 -0
- package/src/resources/providers.ts +5 -7
- package/src/resources/responses/index.ts +1 -1
- package/src/resources/responses/input-items.ts +293 -161
- package/src/resources/responses/responses.ts +2112 -1632
- package/src/resources/responses.ts +1 -1
- package/src/resources/routes.ts +25 -10
- package/src/resources/safety.ts +199 -9
- package/src/resources/scoring-functions.ts +168 -52
- package/src/resources/scoring.ts +125 -22
- package/src/resources/shared.ts +141 -714
- package/src/resources/shields.ts +18 -23
- package/src/resources/tool-runtime.ts +210 -2
- package/src/resources/toolgroups.ts +26 -36
- package/src/resources/tools.ts +10 -94
- package/src/resources/vector-io.ts +323 -145
- package/src/resources/vector-stores/file-batches.ts +201 -0
- package/src/resources/vector-stores/files.ts +123 -143
- package/src/resources/vector-stores/index.ts +9 -1
- package/src/resources/vector-stores/vector-stores.ts +150 -216
- package/src/resources/vector-stores.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/agents/agents.d.ts +0 -246
- package/resources/agents/agents.d.ts.map +0 -1
- package/resources/agents/agents.js.map +0 -1
- package/resources/agents/agents.mjs +0 -52
- package/resources/agents/agents.mjs.map +0 -1
- package/resources/agents/index.d.ts +0 -5
- package/resources/agents/index.d.ts.map +0 -1
- package/resources/agents/index.js +0 -18
- package/resources/agents/index.js.map +0 -1
- package/resources/agents/index.mjs +0 -10
- package/resources/agents/index.mjs.map +0 -1
- package/resources/agents/session.d.ts +0 -98
- package/resources/agents/session.d.ts.map +0 -1
- package/resources/agents/session.js +0 -42
- package/resources/agents/session.js.map +0 -1
- package/resources/agents/session.mjs +0 -37
- package/resources/agents/session.mjs.map +0 -1
- package/resources/agents/steps.d.ts +0 -22
- package/resources/agents/steps.d.ts.map +0 -1
- package/resources/agents/steps.js.map +0 -1
- package/resources/agents/steps.mjs +0 -15
- package/resources/agents/steps.mjs.map +0 -1
- package/resources/agents/turn.d.ts +0 -461
- package/resources/agents/turn.d.ts.map +0 -1
- package/resources/agents/turn.js +0 -34
- package/resources/agents/turn.js.map +0 -1
- package/resources/agents/turn.mjs +0 -29
- package/resources/agents/turn.mjs.map +0 -1
- package/resources/agents.d.ts +0 -2
- package/resources/agents.d.ts.map +0 -1
- package/resources/agents.js.map +0 -1
- package/resources/agents.mjs +0 -7
- package/resources/agents.mjs.map +0 -1
- package/resources/benchmarks.d.ts.map +0 -1
- package/resources/benchmarks.js.map +0 -1
- package/resources/benchmarks.mjs +0 -31
- package/resources/benchmarks.mjs.map +0 -1
- package/resources/datasets.d.ts +0 -320
- package/resources/datasets.d.ts.map +0 -1
- package/resources/datasets.js.map +0 -1
- package/resources/datasets.mjs.map +0 -1
- package/resources/eval/eval.d.ts +0 -159
- package/resources/eval/eval.d.ts.map +0 -1
- package/resources/eval/eval.js.map +0 -1
- package/resources/eval/eval.mjs.map +0 -1
- package/resources/eval/index.d.ts +0 -3
- package/resources/eval/index.d.ts.map +0 -1
- package/resources/eval/index.js.map +0 -1
- package/resources/eval/index.mjs.map +0 -1
- package/resources/eval/jobs.d.ts.map +0 -1
- package/resources/eval/jobs.js.map +0 -1
- package/resources/eval/jobs.mjs.map +0 -1
- package/resources/eval.d.ts.map +0 -1
- package/resources/eval.js.map +0 -1
- package/resources/eval.mjs.map +0 -1
- package/resources/inference.d.ts +0 -580
- package/resources/inference.d.ts.map +0 -1
- package/resources/inference.js +0 -54
- package/resources/inference.js.map +0 -1
- package/resources/inference.mjs +0 -49
- package/resources/inference.mjs.map +0 -1
- package/resources/post-training/index.d.ts +0 -3
- package/resources/post-training/index.d.ts.map +0 -1
- package/resources/post-training/index.js.map +0 -1
- package/resources/post-training/index.mjs.map +0 -1
- package/resources/post-training/job.d.ts +0 -205
- package/resources/post-training/job.d.ts.map +0 -1
- package/resources/post-training/job.js.map +0 -1
- package/resources/post-training/job.mjs.map +0 -1
- package/resources/post-training/post-training.d.ts +0 -402
- package/resources/post-training/post-training.d.ts.map +0 -1
- package/resources/post-training/post-training.js.map +0 -1
- package/resources/post-training/post-training.mjs.map +0 -1
- package/resources/post-training.d.ts.map +0 -1
- package/resources/post-training.js.map +0 -1
- package/resources/post-training.mjs.map +0 -1
- package/resources/synthetic-data-generation.d.ts +0 -47
- package/resources/synthetic-data-generation.d.ts.map +0 -1
- package/resources/synthetic-data-generation.js +0 -20
- package/resources/synthetic-data-generation.js.map +0 -1
- package/resources/synthetic-data-generation.mjs +0 -15
- package/resources/synthetic-data-generation.mjs.map +0 -1
- package/resources/telemetry.d.ts +0 -519
- package/resources/telemetry.d.ts.map +0 -1
- package/resources/telemetry.js +0 -70
- package/resources/telemetry.js.map +0 -1
- package/resources/telemetry.mjs +0 -65
- package/resources/telemetry.mjs.map +0 -1
- package/resources/tool-runtime/index.d.ts +0 -3
- package/resources/tool-runtime/index.d.ts.map +0 -1
- package/resources/tool-runtime/index.js +0 -14
- package/resources/tool-runtime/index.js.map +0 -1
- package/resources/tool-runtime/index.mjs +0 -8
- package/resources/tool-runtime/index.mjs.map +0 -1
- package/resources/tool-runtime/rag-tool.d.ts +0 -45
- package/resources/tool-runtime/rag-tool.d.ts.map +0 -1
- package/resources/tool-runtime/rag-tool.js +0 -30
- package/resources/tool-runtime/rag-tool.js.map +0 -1
- package/resources/tool-runtime/rag-tool.mjs +0 -25
- package/resources/tool-runtime/rag-tool.mjs.map +0 -1
- package/resources/tool-runtime/tool-runtime.d.ts +0 -132
- package/resources/tool-runtime/tool-runtime.d.ts.map +0 -1
- package/resources/tool-runtime/tool-runtime.js.map +0 -1
- package/resources/tool-runtime/tool-runtime.mjs +0 -29
- package/resources/tool-runtime/tool-runtime.mjs.map +0 -1
- package/resources/vector-dbs.d.ts +0 -128
- package/resources/vector-dbs.d.ts.map +0 -1
- package/resources/vector-dbs.js +0 -41
- package/resources/vector-dbs.js.map +0 -1
- package/resources/vector-dbs.mjs +0 -36
- package/resources/vector-dbs.mjs.map +0 -1
- package/src/resources/agents/agents.ts +0 -372
- package/src/resources/agents/index.ts +0 -44
- package/src/resources/agents/session.ts +0 -169
- package/src/resources/agents/steps.ts +0 -47
- package/src/resources/agents/turn.ts +0 -638
- package/src/resources/datasets.ts +0 -413
- package/src/resources/inference.ts +0 -768
- package/src/resources/post-training/job.ts +0 -274
- package/src/resources/post-training/post-training.ts +0 -516
- package/src/resources/synthetic-data-generation.ts +0 -65
- package/src/resources/telemetry.ts +0 -692
- package/src/resources/tool-runtime/index.ts +0 -17
- package/src/resources/tool-runtime/rag-tool.ts +0 -69
- package/src/resources/tool-runtime/tool-runtime.ts +0 -191
- package/src/resources/vector-dbs.ts +0 -191
- /package/resources/{eval.d.ts → alpha/eval.d.ts} +0 -0
- /package/resources/{eval.mjs → alpha/eval.mjs} +0 -0
- /package/resources/{post-training.d.ts → alpha/post-training.d.ts} +0 -0
|
@@ -0,0 +1,762 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import { OpenAICursorPage, type OpenAICursorPageParams } from "../../pagination.js";
|
|
4
|
+
export declare class Items extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create items.
|
|
7
|
+
*
|
|
8
|
+
* Create items in the conversation.
|
|
9
|
+
*/
|
|
10
|
+
create(conversationId: string, body: ItemCreateParams, options?: Core.RequestOptions): Core.APIPromise<ItemCreateResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* List items.
|
|
13
|
+
*
|
|
14
|
+
* List items in the conversation.
|
|
15
|
+
*/
|
|
16
|
+
list(conversationId: string, query?: ItemListParams, options?: Core.RequestOptions): Core.PagePromise<ItemListResponsesOpenAICursorPage, ItemListResponse>;
|
|
17
|
+
list(conversationId: string, options?: Core.RequestOptions): Core.PagePromise<ItemListResponsesOpenAICursorPage, ItemListResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Delete an item.
|
|
20
|
+
*
|
|
21
|
+
* Delete a conversation item.
|
|
22
|
+
*/
|
|
23
|
+
delete(conversationId: string, itemId: string, options?: Core.RequestOptions): Core.APIPromise<ItemDeleteResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve an item.
|
|
26
|
+
*
|
|
27
|
+
* Retrieve a conversation item.
|
|
28
|
+
*/
|
|
29
|
+
get(conversationId: string, itemId: string, options?: Core.RequestOptions): Core.APIPromise<ItemGetResponse>;
|
|
30
|
+
}
|
|
31
|
+
export declare class ItemListResponsesOpenAICursorPage extends OpenAICursorPage<ItemListResponse> {
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* List of conversation items with pagination.
|
|
35
|
+
*/
|
|
36
|
+
export interface ItemCreateResponse {
|
|
37
|
+
/**
|
|
38
|
+
* List of conversation items
|
|
39
|
+
*/
|
|
40
|
+
data: Array<ItemCreateResponse.OpenAIResponseMessageOutput | ItemCreateResponse.OpenAIResponseOutputMessageWebSearchToolCall | ItemCreateResponse.OpenAIResponseOutputMessageFileSearchToolCall | ItemCreateResponse.OpenAIResponseOutputMessageFunctionToolCall | ItemCreateResponse.OpenAIResponseInputFunctionToolCallOutput | ItemCreateResponse.OpenAIResponseMcpApprovalRequest | ItemCreateResponse.OpenAIResponseMcpApprovalResponse | ItemCreateResponse.OpenAIResponseOutputMessageMcpCall | ItemCreateResponse.OpenAIResponseOutputMessageMcpListTools>;
|
|
41
|
+
/**
|
|
42
|
+
* The ID of the first item in the list
|
|
43
|
+
*/
|
|
44
|
+
first_id?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Whether there are more items available
|
|
47
|
+
*/
|
|
48
|
+
has_more?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The ID of the last item in the list
|
|
51
|
+
*/
|
|
52
|
+
last_id?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Object type
|
|
55
|
+
*/
|
|
56
|
+
object?: string;
|
|
57
|
+
}
|
|
58
|
+
export declare namespace ItemCreateResponse {
|
|
59
|
+
/**
|
|
60
|
+
* Corresponds to the various Message types in the Responses API. They are all
|
|
61
|
+
* under one type because the Responses API gives them all the same "type" value,
|
|
62
|
+
* and there is no way to tell them apart in certain scenarios.
|
|
63
|
+
*/
|
|
64
|
+
interface OpenAIResponseMessageOutput {
|
|
65
|
+
content: string | Array<OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentText | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentImage | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile> | Array<OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputText | OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal>;
|
|
66
|
+
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
67
|
+
id?: string | null;
|
|
68
|
+
status?: string | null;
|
|
69
|
+
type?: 'message';
|
|
70
|
+
}
|
|
71
|
+
namespace OpenAIResponseMessageOutput {
|
|
72
|
+
/**
|
|
73
|
+
* Text content for input messages in OpenAI response format.
|
|
74
|
+
*/
|
|
75
|
+
interface OpenAIResponseInputMessageContentText {
|
|
76
|
+
text: string;
|
|
77
|
+
type?: 'input_text';
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Image content for input messages in OpenAI response format.
|
|
81
|
+
*/
|
|
82
|
+
interface OpenAIResponseInputMessageContentImage {
|
|
83
|
+
detail?: 'low' | 'high' | 'auto';
|
|
84
|
+
file_id?: string | null;
|
|
85
|
+
image_url?: string | null;
|
|
86
|
+
type?: 'input_image';
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* File content for input messages in OpenAI response format.
|
|
90
|
+
*/
|
|
91
|
+
interface OpenAIResponseInputMessageContentFile {
|
|
92
|
+
file_data?: string | null;
|
|
93
|
+
file_id?: string | null;
|
|
94
|
+
file_url?: string | null;
|
|
95
|
+
filename?: string | null;
|
|
96
|
+
type?: 'input_file';
|
|
97
|
+
}
|
|
98
|
+
interface OpenAIResponseOutputMessageContentOutputText {
|
|
99
|
+
text: string;
|
|
100
|
+
annotations?: Array<OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFileCitation | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationCitation | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationContainerFileCitation | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFilePath>;
|
|
101
|
+
type?: 'output_text';
|
|
102
|
+
}
|
|
103
|
+
namespace OpenAIResponseOutputMessageContentOutputText {
|
|
104
|
+
/**
|
|
105
|
+
* File citation annotation for referencing specific files in response content.
|
|
106
|
+
*/
|
|
107
|
+
interface OpenAIResponseAnnotationFileCitation {
|
|
108
|
+
file_id: string;
|
|
109
|
+
filename: string;
|
|
110
|
+
index: number;
|
|
111
|
+
type?: 'file_citation';
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* URL citation annotation for referencing external web resources.
|
|
115
|
+
*/
|
|
116
|
+
interface OpenAIResponseAnnotationCitation {
|
|
117
|
+
end_index: number;
|
|
118
|
+
start_index: number;
|
|
119
|
+
title: string;
|
|
120
|
+
url: string;
|
|
121
|
+
type?: 'url_citation';
|
|
122
|
+
}
|
|
123
|
+
interface OpenAIResponseAnnotationContainerFileCitation {
|
|
124
|
+
container_id: string;
|
|
125
|
+
end_index: number;
|
|
126
|
+
file_id: string;
|
|
127
|
+
filename: string;
|
|
128
|
+
start_index: number;
|
|
129
|
+
type?: 'container_file_citation';
|
|
130
|
+
}
|
|
131
|
+
interface OpenAIResponseAnnotationFilePath {
|
|
132
|
+
file_id: string;
|
|
133
|
+
index: number;
|
|
134
|
+
type?: 'file_path';
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Refusal content within a streamed response part.
|
|
139
|
+
*/
|
|
140
|
+
interface OpenAIResponseContentPartRefusal {
|
|
141
|
+
refusal: string;
|
|
142
|
+
type?: 'refusal';
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Web search tool call output message for OpenAI responses.
|
|
147
|
+
*/
|
|
148
|
+
interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
149
|
+
id: string;
|
|
150
|
+
status: string;
|
|
151
|
+
type?: 'web_search_call';
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* File search tool call output message for OpenAI responses.
|
|
155
|
+
*/
|
|
156
|
+
interface OpenAIResponseOutputMessageFileSearchToolCall {
|
|
157
|
+
id: string;
|
|
158
|
+
queries: Array<string>;
|
|
159
|
+
status: string;
|
|
160
|
+
results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result> | null;
|
|
161
|
+
type?: 'file_search_call';
|
|
162
|
+
}
|
|
163
|
+
namespace OpenAIResponseOutputMessageFileSearchToolCall {
|
|
164
|
+
/**
|
|
165
|
+
* Search results returned by the file search operation.
|
|
166
|
+
*/
|
|
167
|
+
interface Result {
|
|
168
|
+
attributes: {
|
|
169
|
+
[key: string]: unknown;
|
|
170
|
+
};
|
|
171
|
+
file_id: string;
|
|
172
|
+
filename: string;
|
|
173
|
+
score: number;
|
|
174
|
+
text: string;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Function tool call output message for OpenAI responses.
|
|
179
|
+
*/
|
|
180
|
+
interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
181
|
+
arguments: string;
|
|
182
|
+
call_id: string;
|
|
183
|
+
name: string;
|
|
184
|
+
id?: string | null;
|
|
185
|
+
status?: string | null;
|
|
186
|
+
type?: 'function_call';
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* This represents the output of a function call that gets passed back to the
|
|
190
|
+
* model.
|
|
191
|
+
*/
|
|
192
|
+
interface OpenAIResponseInputFunctionToolCallOutput {
|
|
193
|
+
call_id: string;
|
|
194
|
+
output: string;
|
|
195
|
+
id?: string | null;
|
|
196
|
+
status?: string | null;
|
|
197
|
+
type?: 'function_call_output';
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* A request for human approval of a tool invocation.
|
|
201
|
+
*/
|
|
202
|
+
interface OpenAIResponseMcpApprovalRequest {
|
|
203
|
+
id: string;
|
|
204
|
+
arguments: string;
|
|
205
|
+
name: string;
|
|
206
|
+
server_label: string;
|
|
207
|
+
type?: 'mcp_approval_request';
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* A response to an MCP approval request.
|
|
211
|
+
*/
|
|
212
|
+
interface OpenAIResponseMcpApprovalResponse {
|
|
213
|
+
approval_request_id: string;
|
|
214
|
+
approve: boolean;
|
|
215
|
+
id?: string | null;
|
|
216
|
+
reason?: string | null;
|
|
217
|
+
type?: 'mcp_approval_response';
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Model Context Protocol (MCP) call output message for OpenAI responses.
|
|
221
|
+
*/
|
|
222
|
+
interface OpenAIResponseOutputMessageMcpCall {
|
|
223
|
+
id: string;
|
|
224
|
+
arguments: string;
|
|
225
|
+
name: string;
|
|
226
|
+
server_label: string;
|
|
227
|
+
error?: string | null;
|
|
228
|
+
output?: string | null;
|
|
229
|
+
type?: 'mcp_call';
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* MCP list tools output message containing available tools from an MCP server.
|
|
233
|
+
*/
|
|
234
|
+
interface OpenAIResponseOutputMessageMcpListTools {
|
|
235
|
+
id: string;
|
|
236
|
+
server_label: string;
|
|
237
|
+
tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
|
|
238
|
+
type?: 'mcp_list_tools';
|
|
239
|
+
}
|
|
240
|
+
namespace OpenAIResponseOutputMessageMcpListTools {
|
|
241
|
+
/**
|
|
242
|
+
* Tool definition returned by MCP list tools operation.
|
|
243
|
+
*/
|
|
244
|
+
interface Tool {
|
|
245
|
+
input_schema: {
|
|
246
|
+
[key: string]: unknown;
|
|
247
|
+
};
|
|
248
|
+
name: string;
|
|
249
|
+
description?: string | null;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Corresponds to the various Message types in the Responses API. They are all
|
|
255
|
+
* under one type because the Responses API gives them all the same "type" value,
|
|
256
|
+
* and there is no way to tell them apart in certain scenarios.
|
|
257
|
+
*/
|
|
258
|
+
export type ItemListResponse = ItemListResponse.OpenAIResponseMessageOutput | ItemListResponse.OpenAIResponseOutputMessageWebSearchToolCall | ItemListResponse.OpenAIResponseOutputMessageFileSearchToolCall | ItemListResponse.OpenAIResponseOutputMessageFunctionToolCall | ItemListResponse.OpenAIResponseInputFunctionToolCallOutput | ItemListResponse.OpenAIResponseMcpApprovalRequest | ItemListResponse.OpenAIResponseMcpApprovalResponse | ItemListResponse.OpenAIResponseOutputMessageMcpCall | ItemListResponse.OpenAIResponseOutputMessageMcpListTools;
|
|
259
|
+
export declare namespace ItemListResponse {
|
|
260
|
+
/**
|
|
261
|
+
* Corresponds to the various Message types in the Responses API. They are all
|
|
262
|
+
* under one type because the Responses API gives them all the same "type" value,
|
|
263
|
+
* and there is no way to tell them apart in certain scenarios.
|
|
264
|
+
*/
|
|
265
|
+
interface OpenAIResponseMessageOutput {
|
|
266
|
+
content: string | Array<OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentText | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentImage | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile> | Array<OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputText | OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal>;
|
|
267
|
+
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
268
|
+
id?: string | null;
|
|
269
|
+
status?: string | null;
|
|
270
|
+
type?: 'message';
|
|
271
|
+
}
|
|
272
|
+
namespace OpenAIResponseMessageOutput {
|
|
273
|
+
/**
|
|
274
|
+
* Text content for input messages in OpenAI response format.
|
|
275
|
+
*/
|
|
276
|
+
interface OpenAIResponseInputMessageContentText {
|
|
277
|
+
text: string;
|
|
278
|
+
type?: 'input_text';
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Image content for input messages in OpenAI response format.
|
|
282
|
+
*/
|
|
283
|
+
interface OpenAIResponseInputMessageContentImage {
|
|
284
|
+
detail?: 'low' | 'high' | 'auto';
|
|
285
|
+
file_id?: string | null;
|
|
286
|
+
image_url?: string | null;
|
|
287
|
+
type?: 'input_image';
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* File content for input messages in OpenAI response format.
|
|
291
|
+
*/
|
|
292
|
+
interface OpenAIResponseInputMessageContentFile {
|
|
293
|
+
file_data?: string | null;
|
|
294
|
+
file_id?: string | null;
|
|
295
|
+
file_url?: string | null;
|
|
296
|
+
filename?: string | null;
|
|
297
|
+
type?: 'input_file';
|
|
298
|
+
}
|
|
299
|
+
interface OpenAIResponseOutputMessageContentOutputText {
|
|
300
|
+
text: string;
|
|
301
|
+
annotations?: Array<OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFileCitation | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationCitation | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationContainerFileCitation | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFilePath>;
|
|
302
|
+
type?: 'output_text';
|
|
303
|
+
}
|
|
304
|
+
namespace OpenAIResponseOutputMessageContentOutputText {
|
|
305
|
+
/**
|
|
306
|
+
* File citation annotation for referencing specific files in response content.
|
|
307
|
+
*/
|
|
308
|
+
interface OpenAIResponseAnnotationFileCitation {
|
|
309
|
+
file_id: string;
|
|
310
|
+
filename: string;
|
|
311
|
+
index: number;
|
|
312
|
+
type?: 'file_citation';
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* URL citation annotation for referencing external web resources.
|
|
316
|
+
*/
|
|
317
|
+
interface OpenAIResponseAnnotationCitation {
|
|
318
|
+
end_index: number;
|
|
319
|
+
start_index: number;
|
|
320
|
+
title: string;
|
|
321
|
+
url: string;
|
|
322
|
+
type?: 'url_citation';
|
|
323
|
+
}
|
|
324
|
+
interface OpenAIResponseAnnotationContainerFileCitation {
|
|
325
|
+
container_id: string;
|
|
326
|
+
end_index: number;
|
|
327
|
+
file_id: string;
|
|
328
|
+
filename: string;
|
|
329
|
+
start_index: number;
|
|
330
|
+
type?: 'container_file_citation';
|
|
331
|
+
}
|
|
332
|
+
interface OpenAIResponseAnnotationFilePath {
|
|
333
|
+
file_id: string;
|
|
334
|
+
index: number;
|
|
335
|
+
type?: 'file_path';
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Refusal content within a streamed response part.
|
|
340
|
+
*/
|
|
341
|
+
interface OpenAIResponseContentPartRefusal {
|
|
342
|
+
refusal: string;
|
|
343
|
+
type?: 'refusal';
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Web search tool call output message for OpenAI responses.
|
|
348
|
+
*/
|
|
349
|
+
interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
350
|
+
id: string;
|
|
351
|
+
status: string;
|
|
352
|
+
type?: 'web_search_call';
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* File search tool call output message for OpenAI responses.
|
|
356
|
+
*/
|
|
357
|
+
interface OpenAIResponseOutputMessageFileSearchToolCall {
|
|
358
|
+
id: string;
|
|
359
|
+
queries: Array<string>;
|
|
360
|
+
status: string;
|
|
361
|
+
results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result> | null;
|
|
362
|
+
type?: 'file_search_call';
|
|
363
|
+
}
|
|
364
|
+
namespace OpenAIResponseOutputMessageFileSearchToolCall {
|
|
365
|
+
/**
|
|
366
|
+
* Search results returned by the file search operation.
|
|
367
|
+
*/
|
|
368
|
+
interface Result {
|
|
369
|
+
attributes: {
|
|
370
|
+
[key: string]: unknown;
|
|
371
|
+
};
|
|
372
|
+
file_id: string;
|
|
373
|
+
filename: string;
|
|
374
|
+
score: number;
|
|
375
|
+
text: string;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Function tool call output message for OpenAI responses.
|
|
380
|
+
*/
|
|
381
|
+
interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
382
|
+
arguments: string;
|
|
383
|
+
call_id: string;
|
|
384
|
+
name: string;
|
|
385
|
+
id?: string | null;
|
|
386
|
+
status?: string | null;
|
|
387
|
+
type?: 'function_call';
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* This represents the output of a function call that gets passed back to the
|
|
391
|
+
* model.
|
|
392
|
+
*/
|
|
393
|
+
interface OpenAIResponseInputFunctionToolCallOutput {
|
|
394
|
+
call_id: string;
|
|
395
|
+
output: string;
|
|
396
|
+
id?: string | null;
|
|
397
|
+
status?: string | null;
|
|
398
|
+
type?: 'function_call_output';
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* A request for human approval of a tool invocation.
|
|
402
|
+
*/
|
|
403
|
+
interface OpenAIResponseMcpApprovalRequest {
|
|
404
|
+
id: string;
|
|
405
|
+
arguments: string;
|
|
406
|
+
name: string;
|
|
407
|
+
server_label: string;
|
|
408
|
+
type?: 'mcp_approval_request';
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* A response to an MCP approval request.
|
|
412
|
+
*/
|
|
413
|
+
interface OpenAIResponseMcpApprovalResponse {
|
|
414
|
+
approval_request_id: string;
|
|
415
|
+
approve: boolean;
|
|
416
|
+
id?: string | null;
|
|
417
|
+
reason?: string | null;
|
|
418
|
+
type?: 'mcp_approval_response';
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Model Context Protocol (MCP) call output message for OpenAI responses.
|
|
422
|
+
*/
|
|
423
|
+
interface OpenAIResponseOutputMessageMcpCall {
|
|
424
|
+
id: string;
|
|
425
|
+
arguments: string;
|
|
426
|
+
name: string;
|
|
427
|
+
server_label: string;
|
|
428
|
+
error?: string | null;
|
|
429
|
+
output?: string | null;
|
|
430
|
+
type?: 'mcp_call';
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* MCP list tools output message containing available tools from an MCP server.
|
|
434
|
+
*/
|
|
435
|
+
interface OpenAIResponseOutputMessageMcpListTools {
|
|
436
|
+
id: string;
|
|
437
|
+
server_label: string;
|
|
438
|
+
tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
|
|
439
|
+
type?: 'mcp_list_tools';
|
|
440
|
+
}
|
|
441
|
+
namespace OpenAIResponseOutputMessageMcpListTools {
|
|
442
|
+
/**
|
|
443
|
+
* Tool definition returned by MCP list tools operation.
|
|
444
|
+
*/
|
|
445
|
+
interface Tool {
|
|
446
|
+
input_schema: {
|
|
447
|
+
[key: string]: unknown;
|
|
448
|
+
};
|
|
449
|
+
name: string;
|
|
450
|
+
description?: string | null;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Response for deleted conversation item.
|
|
456
|
+
*/
|
|
457
|
+
export interface ItemDeleteResponse {
|
|
458
|
+
/**
|
|
459
|
+
* The deleted item identifier
|
|
460
|
+
*/
|
|
461
|
+
id: string;
|
|
462
|
+
/**
|
|
463
|
+
* Whether the object was deleted
|
|
464
|
+
*/
|
|
465
|
+
deleted?: boolean;
|
|
466
|
+
/**
|
|
467
|
+
* Object type
|
|
468
|
+
*/
|
|
469
|
+
object?: string;
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Corresponds to the various Message types in the Responses API. They are all
|
|
473
|
+
* under one type because the Responses API gives them all the same "type" value,
|
|
474
|
+
* and there is no way to tell them apart in certain scenarios.
|
|
475
|
+
*/
|
|
476
|
+
export interface ItemGetResponse {
|
|
477
|
+
content: string | Array<ItemGetResponse.OpenAIResponseInputMessageContentText | ItemGetResponse.OpenAIResponseInputMessageContentImage | ItemGetResponse.OpenAIResponseInputMessageContentFile> | Array<ItemGetResponse.OpenAIResponseOutputMessageContentOutputText | ItemGetResponse.OpenAIResponseContentPartRefusal>;
|
|
478
|
+
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
479
|
+
id?: string | null;
|
|
480
|
+
status?: string | null;
|
|
481
|
+
type?: 'message';
|
|
482
|
+
}
|
|
483
|
+
export declare namespace ItemGetResponse {
|
|
484
|
+
/**
|
|
485
|
+
* Text content for input messages in OpenAI response format.
|
|
486
|
+
*/
|
|
487
|
+
interface OpenAIResponseInputMessageContentText {
|
|
488
|
+
text: string;
|
|
489
|
+
type?: 'input_text';
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Image content for input messages in OpenAI response format.
|
|
493
|
+
*/
|
|
494
|
+
interface OpenAIResponseInputMessageContentImage {
|
|
495
|
+
detail?: 'low' | 'high' | 'auto';
|
|
496
|
+
file_id?: string | null;
|
|
497
|
+
image_url?: string | null;
|
|
498
|
+
type?: 'input_image';
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* File content for input messages in OpenAI response format.
|
|
502
|
+
*/
|
|
503
|
+
interface OpenAIResponseInputMessageContentFile {
|
|
504
|
+
file_data?: string | null;
|
|
505
|
+
file_id?: string | null;
|
|
506
|
+
file_url?: string | null;
|
|
507
|
+
filename?: string | null;
|
|
508
|
+
type?: 'input_file';
|
|
509
|
+
}
|
|
510
|
+
interface OpenAIResponseOutputMessageContentOutputText {
|
|
511
|
+
text: string;
|
|
512
|
+
annotations?: Array<OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFileCitation | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationCitation | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationContainerFileCitation | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFilePath>;
|
|
513
|
+
type?: 'output_text';
|
|
514
|
+
}
|
|
515
|
+
namespace OpenAIResponseOutputMessageContentOutputText {
|
|
516
|
+
/**
|
|
517
|
+
* File citation annotation for referencing specific files in response content.
|
|
518
|
+
*/
|
|
519
|
+
interface OpenAIResponseAnnotationFileCitation {
|
|
520
|
+
file_id: string;
|
|
521
|
+
filename: string;
|
|
522
|
+
index: number;
|
|
523
|
+
type?: 'file_citation';
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* URL citation annotation for referencing external web resources.
|
|
527
|
+
*/
|
|
528
|
+
interface OpenAIResponseAnnotationCitation {
|
|
529
|
+
end_index: number;
|
|
530
|
+
start_index: number;
|
|
531
|
+
title: string;
|
|
532
|
+
url: string;
|
|
533
|
+
type?: 'url_citation';
|
|
534
|
+
}
|
|
535
|
+
interface OpenAIResponseAnnotationContainerFileCitation {
|
|
536
|
+
container_id: string;
|
|
537
|
+
end_index: number;
|
|
538
|
+
file_id: string;
|
|
539
|
+
filename: string;
|
|
540
|
+
start_index: number;
|
|
541
|
+
type?: 'container_file_citation';
|
|
542
|
+
}
|
|
543
|
+
interface OpenAIResponseAnnotationFilePath {
|
|
544
|
+
file_id: string;
|
|
545
|
+
index: number;
|
|
546
|
+
type?: 'file_path';
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Refusal content within a streamed response part.
|
|
551
|
+
*/
|
|
552
|
+
interface OpenAIResponseContentPartRefusal {
|
|
553
|
+
refusal: string;
|
|
554
|
+
type?: 'refusal';
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
export interface ItemCreateParams {
|
|
558
|
+
items: Array<ItemCreateParams.OpenAIResponseMessageInput | ItemCreateParams.OpenAIResponseOutputMessageWebSearchToolCall | ItemCreateParams.OpenAIResponseOutputMessageFileSearchToolCall | ItemCreateParams.OpenAIResponseOutputMessageFunctionToolCall | ItemCreateParams.OpenAIResponseInputFunctionToolCallOutput | ItemCreateParams.OpenAIResponseMcpApprovalRequest | ItemCreateParams.OpenAIResponseMcpApprovalResponse | ItemCreateParams.OpenAIResponseOutputMessageMcpCall | ItemCreateParams.OpenAIResponseOutputMessageMcpListTools>;
|
|
559
|
+
}
|
|
560
|
+
export declare namespace ItemCreateParams {
|
|
561
|
+
/**
|
|
562
|
+
* Corresponds to the various Message types in the Responses API. They are all
|
|
563
|
+
* under one type because the Responses API gives them all the same "type" value,
|
|
564
|
+
* and there is no way to tell them apart in certain scenarios.
|
|
565
|
+
*/
|
|
566
|
+
interface OpenAIResponseMessageInput {
|
|
567
|
+
content: string | Array<OpenAIResponseMessageInput.OpenAIResponseInputMessageContentText | OpenAIResponseMessageInput.OpenAIResponseInputMessageContentImage | OpenAIResponseMessageInput.OpenAIResponseInputMessageContentFile> | Array<OpenAIResponseMessageInput.OpenAIResponseOutputMessageContentOutputText | OpenAIResponseMessageInput.OpenAIResponseContentPartRefusal>;
|
|
568
|
+
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
569
|
+
id?: string | null;
|
|
570
|
+
status?: string | null;
|
|
571
|
+
type?: 'message';
|
|
572
|
+
}
|
|
573
|
+
namespace OpenAIResponseMessageInput {
|
|
574
|
+
/**
|
|
575
|
+
* Text content for input messages in OpenAI response format.
|
|
576
|
+
*/
|
|
577
|
+
interface OpenAIResponseInputMessageContentText {
|
|
578
|
+
text: string;
|
|
579
|
+
type?: 'input_text';
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* Image content for input messages in OpenAI response format.
|
|
583
|
+
*/
|
|
584
|
+
interface OpenAIResponseInputMessageContentImage {
|
|
585
|
+
detail?: 'low' | 'high' | 'auto';
|
|
586
|
+
file_id?: string | null;
|
|
587
|
+
image_url?: string | null;
|
|
588
|
+
type?: 'input_image';
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* File content for input messages in OpenAI response format.
|
|
592
|
+
*/
|
|
593
|
+
interface OpenAIResponseInputMessageContentFile {
|
|
594
|
+
file_data?: string | null;
|
|
595
|
+
file_id?: string | null;
|
|
596
|
+
file_url?: string | null;
|
|
597
|
+
filename?: string | null;
|
|
598
|
+
type?: 'input_file';
|
|
599
|
+
}
|
|
600
|
+
interface OpenAIResponseOutputMessageContentOutputText {
|
|
601
|
+
text: string;
|
|
602
|
+
annotations?: Array<OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFileCitation | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationCitation | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationContainerFileCitation | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFilePath>;
|
|
603
|
+
type?: 'output_text';
|
|
604
|
+
}
|
|
605
|
+
namespace OpenAIResponseOutputMessageContentOutputText {
|
|
606
|
+
/**
|
|
607
|
+
* File citation annotation for referencing specific files in response content.
|
|
608
|
+
*/
|
|
609
|
+
interface OpenAIResponseAnnotationFileCitation {
|
|
610
|
+
file_id: string;
|
|
611
|
+
filename: string;
|
|
612
|
+
index: number;
|
|
613
|
+
type?: 'file_citation';
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* URL citation annotation for referencing external web resources.
|
|
617
|
+
*/
|
|
618
|
+
interface OpenAIResponseAnnotationCitation {
|
|
619
|
+
end_index: number;
|
|
620
|
+
start_index: number;
|
|
621
|
+
title: string;
|
|
622
|
+
url: string;
|
|
623
|
+
type?: 'url_citation';
|
|
624
|
+
}
|
|
625
|
+
interface OpenAIResponseAnnotationContainerFileCitation {
|
|
626
|
+
container_id: string;
|
|
627
|
+
end_index: number;
|
|
628
|
+
file_id: string;
|
|
629
|
+
filename: string;
|
|
630
|
+
start_index: number;
|
|
631
|
+
type?: 'container_file_citation';
|
|
632
|
+
}
|
|
633
|
+
interface OpenAIResponseAnnotationFilePath {
|
|
634
|
+
file_id: string;
|
|
635
|
+
index: number;
|
|
636
|
+
type?: 'file_path';
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Refusal content within a streamed response part.
|
|
641
|
+
*/
|
|
642
|
+
interface OpenAIResponseContentPartRefusal {
|
|
643
|
+
refusal: string;
|
|
644
|
+
type?: 'refusal';
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Web search tool call output message for OpenAI responses.
|
|
649
|
+
*/
|
|
650
|
+
interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
651
|
+
id: string;
|
|
652
|
+
status: string;
|
|
653
|
+
type?: 'web_search_call';
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* File search tool call output message for OpenAI responses.
|
|
657
|
+
*/
|
|
658
|
+
interface OpenAIResponseOutputMessageFileSearchToolCall {
|
|
659
|
+
id: string;
|
|
660
|
+
queries: Array<string>;
|
|
661
|
+
status: string;
|
|
662
|
+
results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result> | null;
|
|
663
|
+
type?: 'file_search_call';
|
|
664
|
+
}
|
|
665
|
+
namespace OpenAIResponseOutputMessageFileSearchToolCall {
|
|
666
|
+
/**
|
|
667
|
+
* Search results returned by the file search operation.
|
|
668
|
+
*/
|
|
669
|
+
interface Result {
|
|
670
|
+
attributes: {
|
|
671
|
+
[key: string]: unknown;
|
|
672
|
+
};
|
|
673
|
+
file_id: string;
|
|
674
|
+
filename: string;
|
|
675
|
+
score: number;
|
|
676
|
+
text: string;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Function tool call output message for OpenAI responses.
|
|
681
|
+
*/
|
|
682
|
+
interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
683
|
+
arguments: string;
|
|
684
|
+
call_id: string;
|
|
685
|
+
name: string;
|
|
686
|
+
id?: string | null;
|
|
687
|
+
status?: string | null;
|
|
688
|
+
type?: 'function_call';
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* This represents the output of a function call that gets passed back to the
|
|
692
|
+
* model.
|
|
693
|
+
*/
|
|
694
|
+
interface OpenAIResponseInputFunctionToolCallOutput {
|
|
695
|
+
call_id: string;
|
|
696
|
+
output: string;
|
|
697
|
+
id?: string | null;
|
|
698
|
+
status?: string | null;
|
|
699
|
+
type?: 'function_call_output';
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* A request for human approval of a tool invocation.
|
|
703
|
+
*/
|
|
704
|
+
interface OpenAIResponseMcpApprovalRequest {
|
|
705
|
+
id: string;
|
|
706
|
+
arguments: string;
|
|
707
|
+
name: string;
|
|
708
|
+
server_label: string;
|
|
709
|
+
type?: 'mcp_approval_request';
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* A response to an MCP approval request.
|
|
713
|
+
*/
|
|
714
|
+
interface OpenAIResponseMcpApprovalResponse {
|
|
715
|
+
approval_request_id: string;
|
|
716
|
+
approve: boolean;
|
|
717
|
+
id?: string | null;
|
|
718
|
+
reason?: string | null;
|
|
719
|
+
type?: 'mcp_approval_response';
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* Model Context Protocol (MCP) call output message for OpenAI responses.
|
|
723
|
+
*/
|
|
724
|
+
interface OpenAIResponseOutputMessageMcpCall {
|
|
725
|
+
id: string;
|
|
726
|
+
arguments: string;
|
|
727
|
+
name: string;
|
|
728
|
+
server_label: string;
|
|
729
|
+
error?: string | null;
|
|
730
|
+
output?: string | null;
|
|
731
|
+
type?: 'mcp_call';
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* MCP list tools output message containing available tools from an MCP server.
|
|
735
|
+
*/
|
|
736
|
+
interface OpenAIResponseOutputMessageMcpListTools {
|
|
737
|
+
id: string;
|
|
738
|
+
server_label: string;
|
|
739
|
+
tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
|
|
740
|
+
type?: 'mcp_list_tools';
|
|
741
|
+
}
|
|
742
|
+
namespace OpenAIResponseOutputMessageMcpListTools {
|
|
743
|
+
/**
|
|
744
|
+
* Tool definition returned by MCP list tools operation.
|
|
745
|
+
*/
|
|
746
|
+
interface Tool {
|
|
747
|
+
input_schema: {
|
|
748
|
+
[key: string]: unknown;
|
|
749
|
+
};
|
|
750
|
+
name: string;
|
|
751
|
+
description?: string | null;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
export interface ItemListParams extends OpenAICursorPageParams {
|
|
756
|
+
include?: Array<'web_search_call.action.sources' | 'code_interpreter_call.outputs' | 'computer_call_output.output.image_url' | 'file_search_call.results' | 'message.input_image.image_url' | 'message.output_text.logprobs' | 'reasoning.encrypted_content'> | null;
|
|
757
|
+
order?: 'asc' | 'desc' | null;
|
|
758
|
+
}
|
|
759
|
+
export declare namespace Items {
|
|
760
|
+
export { type ItemCreateResponse as ItemCreateResponse, type ItemListResponse as ItemListResponse, type ItemDeleteResponse as ItemDeleteResponse, type ItemGetResponse as ItemGetResponse, ItemListResponsesOpenAICursorPage as ItemListResponsesOpenAICursorPage, type ItemCreateParams as ItemCreateParams, type ItemListParams as ItemListParams, };
|
|
761
|
+
}
|
|
762
|
+
//# sourceMappingURL=items.d.ts.map
|