llama-stack-client 0.3.5 → 0.4.0-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +153 -0
- package/README.md +48 -39
- package/error.d.ts.map +1 -1
- package/error.js +1 -0
- package/error.js.map +1 -1
- package/error.mjs.map +1 -1
- package/index.d.mts +33 -54
- package/index.d.ts +33 -54
- package/index.d.ts.map +1 -1
- package/index.js +20 -29
- package/index.js.map +1 -1
- package/index.mjs +18 -28
- package/index.mjs.map +1 -1
- package/lib/response-helpers.d.ts +23 -0
- package/lib/response-helpers.d.ts.map +1 -0
- package/lib/response-helpers.js +53 -0
- package/lib/response-helpers.js.map +1 -0
- package/lib/response-helpers.mjs +49 -0
- package/lib/response-helpers.mjs.map +1 -0
- package/package.json +7 -1
- package/pagination.d.ts.map +1 -1
- package/pagination.js +2 -4
- package/pagination.js.map +1 -1
- package/pagination.mjs +1 -4
- package/pagination.mjs.map +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/alpha/admin.d.ts +41 -0
- package/resources/alpha/admin.d.ts.map +1 -0
- package/resources/alpha/admin.js +46 -0
- package/resources/alpha/admin.js.map +1 -0
- package/resources/alpha/admin.mjs +42 -0
- package/resources/alpha/admin.mjs.map +1 -0
- package/resources/alpha/alpha.d.ts +26 -0
- package/resources/alpha/alpha.d.ts.map +1 -0
- package/resources/alpha/alpha.js +61 -0
- package/resources/alpha/alpha.js.map +1 -0
- package/resources/alpha/alpha.mjs +34 -0
- package/resources/alpha/alpha.mjs.map +1 -0
- package/resources/{benchmarks.d.ts → alpha/benchmarks.d.ts} +41 -15
- package/resources/alpha/benchmarks.d.ts.map +1 -0
- package/resources/{benchmarks.js → alpha/benchmarks.js} +18 -4
- package/resources/alpha/benchmarks.js.map +1 -0
- package/resources/alpha/benchmarks.mjs +44 -0
- package/resources/alpha/benchmarks.mjs.map +1 -0
- package/resources/alpha/eval/eval.d.ts +160 -0
- package/resources/alpha/eval/eval.d.ts.map +1 -0
- package/resources/{eval → alpha/eval}/eval.js +7 -6
- package/resources/alpha/eval/eval.js.map +1 -0
- package/resources/{eval → alpha/eval}/eval.mjs +7 -5
- package/resources/alpha/eval/eval.mjs.map +1 -0
- package/resources/alpha/eval/index.d.ts +3 -0
- package/resources/alpha/eval/index.d.ts.map +1 -0
- package/resources/{eval → alpha/eval}/index.js +2 -1
- package/resources/alpha/eval/index.js.map +1 -0
- package/resources/{eval → alpha/eval}/index.mjs +2 -0
- package/resources/alpha/eval/index.mjs.map +1 -0
- package/resources/{eval → alpha/eval}/jobs.d.ts +2 -2
- package/resources/alpha/eval/jobs.d.ts.map +1 -0
- package/resources/{eval → alpha/eval}/jobs.js +6 -5
- package/resources/alpha/eval/jobs.js.map +1 -0
- package/resources/{eval → alpha/eval}/jobs.mjs +6 -4
- package/resources/alpha/eval/jobs.mjs.map +1 -0
- package/resources/alpha/eval.d.ts.map +1 -0
- package/resources/{eval.js → alpha/eval.js} +1 -0
- package/resources/alpha/eval.js.map +1 -0
- package/resources/alpha/eval.mjs.map +1 -0
- package/resources/alpha/index.d.ts +7 -0
- package/resources/alpha/index.d.ts.map +1 -0
- package/resources/alpha/index.js +23 -0
- package/resources/alpha/index.js.map +1 -0
- package/resources/alpha/index.mjs +14 -0
- package/resources/alpha/index.mjs.map +1 -0
- package/resources/alpha/inference.d.ts +85 -0
- package/resources/alpha/inference.d.ts.map +1 -0
- package/resources/{agents/steps.js → alpha/inference.js} +9 -8
- package/resources/alpha/inference.js.map +1 -0
- package/resources/alpha/inference.mjs +17 -0
- package/resources/alpha/inference.mjs.map +1 -0
- package/resources/alpha/post-training/index.d.ts.map +1 -0
- package/resources/{post-training → alpha/post-training}/index.js +2 -1
- package/resources/alpha/post-training/index.js.map +1 -0
- package/resources/{post-training → alpha/post-training}/index.mjs +2 -0
- package/resources/alpha/post-training/index.mjs.map +1 -0
- package/resources/alpha/post-training/job.d.ts +113 -0
- package/resources/alpha/post-training/job.d.ts.map +1 -0
- package/resources/{post-training → alpha/post-training}/job.js +7 -6
- package/resources/alpha/post-training/job.js.map +1 -0
- package/resources/{post-training → alpha/post-training}/job.mjs +7 -5
- package/resources/alpha/post-training/job.mjs.map +1 -0
- package/resources/alpha/post-training/post-training.d.ts +245 -0
- package/resources/alpha/post-training/post-training.d.ts.map +1 -0
- package/resources/{post-training → alpha/post-training}/post-training.js +5 -4
- package/resources/alpha/post-training/post-training.js.map +1 -0
- package/resources/{post-training → alpha/post-training}/post-training.mjs +5 -3
- package/resources/alpha/post-training/post-training.mjs.map +1 -0
- package/resources/alpha/post-training.d.ts.map +1 -0
- package/resources/{post-training.js → alpha/post-training.js} +2 -1
- package/resources/alpha/post-training.js.map +1 -0
- package/resources/{post-training.mjs → alpha/post-training.mjs} +2 -0
- package/resources/alpha/post-training.mjs.map +1 -0
- package/resources/alpha.d.ts +2 -0
- package/resources/alpha.d.ts.map +1 -0
- package/resources/alpha.js +25 -0
- package/resources/alpha.js.map +1 -0
- package/resources/alpha.mjs +9 -0
- package/resources/alpha.mjs.map +1 -0
- package/resources/batches.d.ts +322 -0
- package/resources/batches.d.ts.map +1 -0
- package/resources/batches.js +45 -0
- package/resources/batches.js.map +1 -0
- package/resources/batches.mjs +40 -0
- package/resources/batches.mjs.map +1 -0
- package/resources/beta/beta.d.ts +10 -0
- package/resources/beta/beta.d.ts.map +1 -0
- package/resources/{tool-runtime/tool-runtime.js → beta/beta.js} +10 -22
- package/resources/beta/beta.js.map +1 -0
- package/resources/beta/beta.mjs +18 -0
- package/resources/beta/beta.mjs.map +1 -0
- package/resources/{datasets.d.ts → beta/datasets.d.ts} +117 -99
- package/resources/beta/datasets.d.ts.map +1 -0
- package/resources/{datasets.js → beta/datasets.js} +14 -9
- package/resources/beta/datasets.js.map +1 -0
- package/resources/{datasets.mjs → beta/datasets.mjs} +14 -8
- package/resources/beta/datasets.mjs.map +1 -0
- package/resources/beta/index.d.ts +3 -0
- package/resources/beta/index.d.ts.map +1 -0
- package/resources/beta/index.js +15 -0
- package/resources/beta/index.js.map +1 -0
- package/resources/beta/index.mjs +10 -0
- package/resources/beta/index.mjs.map +1 -0
- package/resources/beta.d.ts +2 -0
- package/resources/beta.d.ts.map +1 -0
- package/resources/{agents.js → beta.js} +4 -3
- package/resources/beta.js.map +1 -0
- package/resources/beta.mjs +9 -0
- package/resources/beta.mjs.map +1 -0
- package/resources/chat/chat.d.ts +75 -80
- package/resources/chat/chat.d.ts.map +1 -1
- package/resources/chat/chat.js +2 -2
- package/resources/chat/chat.js.map +1 -1
- package/resources/chat/chat.mjs +3 -2
- package/resources/chat/chat.mjs.map +1 -1
- package/resources/chat/completions.d.ts +760 -1406
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/chat/completions.js +8 -14
- package/resources/chat/completions.js.map +1 -1
- package/resources/chat/completions.mjs +7 -11
- package/resources/chat/completions.mjs.map +1 -1
- package/resources/chat/index.d.ts +1 -1
- package/resources/chat/index.d.ts.map +1 -1
- package/resources/chat/index.js +3 -3
- package/resources/chat/index.js.map +1 -1
- package/resources/chat/index.mjs +3 -1
- package/resources/chat/index.mjs.map +1 -1
- package/resources/chat.js +2 -1
- package/resources/chat.js.map +1 -1
- package/resources/chat.mjs +2 -0
- package/resources/chat.mjs.map +1 -1
- package/resources/completions.d.ts +54 -97
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js +3 -6
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs +3 -5
- package/resources/completions.mjs.map +1 -1
- package/resources/conversations/conversations.d.ts +320 -0
- package/resources/conversations/conversations.d.ts.map +1 -0
- package/resources/conversations/conversations.js +78 -0
- package/resources/conversations/conversations.js.map +1 -0
- package/resources/conversations/conversations.mjs +51 -0
- package/resources/conversations/conversations.mjs.map +1 -0
- package/resources/conversations/index.d.ts +3 -0
- package/resources/conversations/index.d.ts.map +1 -0
- package/resources/conversations/index.js +16 -0
- package/resources/conversations/index.js.map +1 -0
- package/resources/conversations/index.mjs +10 -0
- package/resources/conversations/index.mjs.map +1 -0
- package/resources/conversations/items.d.ts +874 -0
- package/resources/conversations/items.d.ts.map +1 -0
- package/resources/conversations/items.js +51 -0
- package/resources/conversations/items.js.map +1 -0
- package/resources/conversations/items.mjs +46 -0
- package/resources/conversations/items.mjs.map +1 -0
- package/resources/conversations.d.ts +2 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +25 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +9 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/embeddings.d.ts +10 -52
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/embeddings.js +5 -2
- package/resources/embeddings.js.map +1 -1
- package/resources/embeddings.mjs +5 -1
- package/resources/embeddings.mjs.map +1 -1
- package/resources/files.d.ts +44 -54
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +18 -9
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +18 -8
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.ts +11 -15
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -21
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +9 -11
- package/resources/index.mjs.map +1 -1
- package/resources/inspect.d.ts +3 -71
- package/resources/inspect.d.ts.map +1 -1
- package/resources/inspect.js +2 -1
- package/resources/inspect.js.map +1 -1
- package/resources/inspect.mjs +2 -0
- package/resources/inspect.mjs.map +1 -1
- package/resources/models/index.d.ts +2 -2
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js +2 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs +2 -0
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.ts +71 -31
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +13 -2
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +13 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/openai.d.ts +2 -16
- package/resources/models/openai.d.ts.map +1 -1
- package/resources/models/openai.js +3 -2
- package/resources/models/openai.js.map +1 -1
- package/resources/models/openai.mjs +3 -1
- package/resources/models/openai.mjs.map +1 -1
- package/resources/models.js +2 -1
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +2 -0
- package/resources/models.mjs.map +1 -1
- package/resources/moderations.d.ts +9 -35
- package/resources/moderations.d.ts.map +1 -1
- package/resources/moderations.js +5 -2
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +5 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/prompts/index.d.ts +3 -0
- package/resources/prompts/index.d.ts.map +1 -0
- package/resources/prompts/index.js +15 -0
- package/resources/prompts/index.js.map +1 -0
- package/resources/prompts/index.mjs +10 -0
- package/resources/prompts/index.mjs.map +1 -0
- package/resources/prompts/prompts.d.ts +96 -0
- package/resources/prompts/prompts.d.ts.map +1 -0
- package/resources/{agents/agents.js → prompts/prompts.js} +43 -30
- package/resources/prompts/prompts.js.map +1 -0
- package/resources/prompts/prompts.mjs +66 -0
- package/resources/prompts/prompts.mjs.map +1 -0
- package/resources/prompts/versions.d.ts +12 -0
- package/resources/prompts/versions.d.ts.map +1 -0
- package/resources/prompts/versions.js +23 -0
- package/resources/prompts/versions.js.map +1 -0
- package/resources/prompts/versions.mjs +19 -0
- package/resources/prompts/versions.mjs.map +1 -0
- package/resources/prompts.d.ts +2 -0
- package/resources/prompts.d.ts.map +1 -0
- package/resources/prompts.js +25 -0
- package/resources/prompts.js.map +1 -0
- package/resources/prompts.mjs +9 -0
- package/resources/prompts.mjs.map +1 -0
- package/resources/providers.d.ts +4 -13
- package/resources/providers.d.ts.map +1 -1
- package/resources/providers.js +2 -1
- package/resources/providers.js.map +1 -1
- package/resources/providers.mjs +2 -0
- package/resources/providers.mjs.map +1 -1
- package/resources/responses/index.js +2 -1
- package/resources/responses/index.js.map +1 -1
- package/resources/responses/index.mjs +2 -0
- package/resources/responses/index.mjs.map +1 -1
- package/resources/responses/input-items.d.ts +246 -151
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/input-items.js +3 -2
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +3 -1
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/responses.d.ts +1841 -1455
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +8 -11
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +8 -10
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/responses.js +2 -1
- package/resources/responses.js.map +1 -1
- package/resources/responses.mjs +2 -0
- package/resources/responses.mjs.map +1 -1
- package/resources/routes.d.ts +11 -10
- package/resources/routes.d.ts.map +1 -1
- package/resources/routes.js +8 -6
- package/resources/routes.js.map +1 -1
- package/resources/routes.mjs +8 -5
- package/resources/routes.mjs.map +1 -1
- package/resources/safety.d.ts +144 -10
- package/resources/safety.d.ts.map +1 -1
- package/resources/safety.js +4 -1
- package/resources/safety.js.map +1 -1
- package/resources/safety.mjs +4 -0
- package/resources/safety.mjs.map +1 -1
- package/resources/scoring-functions.d.ts +120 -50
- package/resources/scoring-functions.d.ts.map +1 -1
- package/resources/scoring-functions.js +15 -1
- package/resources/scoring-functions.js.map +1 -1
- package/resources/scoring-functions.mjs +15 -0
- package/resources/scoring-functions.mjs.map +1 -1
- package/resources/scoring.d.ts +85 -26
- package/resources/scoring.d.ts.map +1 -1
- package/resources/scoring.js +2 -1
- package/resources/scoring.js.map +1 -1
- package/resources/scoring.mjs +2 -0
- package/resources/scoring.mjs.map +1 -1
- package/resources/shared.d.ts +173 -591
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js +2 -0
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs +2 -0
- package/resources/shared.mjs.map +1 -1
- package/resources/shields.d.ts +19 -24
- package/resources/shields.d.ts.map +1 -1
- package/resources/shields.js +6 -1
- package/resources/shields.js.map +1 -1
- package/resources/shields.mjs +6 -0
- package/resources/shields.mjs.map +1 -1
- package/resources/tool-runtime.d.ts +151 -1
- package/resources/tool-runtime.d.ts.map +1 -1
- package/resources/tool-runtime.js +22 -16
- package/resources/tool-runtime.js.map +1 -1
- package/resources/tool-runtime.mjs +20 -1
- package/resources/tool-runtime.mjs.map +1 -1
- package/resources/toolgroups.d.ts +27 -37
- package/resources/toolgroups.d.ts.map +1 -1
- package/resources/toolgroups.js +10 -1
- package/resources/toolgroups.js.map +1 -1
- package/resources/toolgroups.mjs +10 -0
- package/resources/toolgroups.mjs.map +1 -1
- package/resources/tools.d.ts +9 -76
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +4 -1
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +4 -0
- package/resources/tools.mjs.map +1 -1
- package/resources/vector-io.d.ts +272 -148
- package/resources/vector-io.d.ts.map +1 -1
- package/resources/vector-io.js +2 -1
- package/resources/vector-io.js.map +1 -1
- package/resources/vector-io.mjs +2 -0
- package/resources/vector-io.mjs.map +1 -1
- package/resources/vector-stores/file-batches.d.ts +111 -0
- package/resources/vector-stores/file-batches.d.ts.map +1 -0
- package/resources/vector-stores/file-batches.js +45 -0
- package/resources/vector-stores/file-batches.js.map +1 -0
- package/resources/vector-stores/file-batches.mjs +41 -0
- package/resources/vector-stores/file-batches.mjs.map +1 -0
- package/resources/vector-stores/files.d.ts +83 -135
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +15 -14
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +15 -13
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.d.ts +2 -1
- package/resources/vector-stores/index.d.ts.map +1 -1
- package/resources/vector-stores/index.js +5 -2
- package/resources/vector-stores/index.js.map +1 -1
- package/resources/vector-stores/index.mjs +3 -0
- package/resources/vector-stores/index.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +118 -217
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +18 -12
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +18 -11
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/vector-stores.js +2 -1
- package/resources/vector-stores.js.map +1 -1
- package/resources/vector-stores.mjs +2 -0
- package/resources/vector-stores.mjs.map +1 -1
- package/src/error.ts +1 -0
- package/src/index.ts +92 -267
- package/src/lib/response-helpers.ts +60 -0
- package/src/pagination.ts +2 -5
- package/src/resource.ts +1 -0
- package/src/resources/alpha/admin.ts +84 -0
- package/src/resources/alpha/alpha.ts +93 -0
- package/src/resources/{benchmarks.ts → alpha/benchmarks.ts} +51 -16
- package/src/resources/{eval → alpha/eval}/eval.ts +83 -65
- package/src/resources/{eval → alpha/eval}/index.ts +1 -2
- package/src/resources/{eval → alpha/eval}/jobs.ts +6 -6
- package/src/resources/{eval.ts → alpha/eval.ts} +1 -0
- package/src/resources/alpha/index.ts +36 -0
- package/src/resources/alpha/inference.ts +132 -0
- package/src/resources/{post-training → alpha/post-training}/index.ts +1 -1
- package/src/resources/alpha/post-training/job.ts +177 -0
- package/src/resources/alpha/post-training/post-training.ts +372 -0
- package/src/resources/{post-training.ts → alpha/post-training.ts} +1 -1
- package/src/resources/alpha.ts +9 -0
- package/src/resources/batches.ts +572 -0
- package/src/resources/beta/beta.ts +41 -0
- package/src/resources/{datasets.ts → beta/datasets.ts} +128 -110
- package/src/resources/beta/index.ts +20 -0
- package/src/resources/{agents.ts → beta.ts} +2 -2
- package/src/resources/chat/chat.ts +84 -83
- package/src/resources/chat/completions.ts +876 -1486
- package/src/resources/chat/index.ts +1 -2
- package/src/resources/chat.ts +1 -1
- package/src/resources/completions.ts +59 -103
- package/src/resources/conversations/conversations.ts +491 -0
- package/src/resources/conversations/index.ts +25 -0
- package/src/resources/conversations/items.ts +1365 -0
- package/src/resources/conversations.ts +9 -0
- package/src/resources/embeddings.ts +14 -55
- package/src/resources/files.ts +54 -61
- package/src/resources/index.ts +35 -111
- package/src/resources/inspect.ts +4 -84
- package/src/resources/models/index.ts +4 -2
- package/src/resources/models/models.ts +79 -30
- package/src/resources/models/openai.ts +4 -24
- package/src/resources/models.ts +1 -1
- package/src/resources/moderations.ts +10 -36
- package/src/resources/prompts/index.ts +19 -0
- package/src/resources/prompts/prompts.ts +171 -0
- package/src/resources/prompts/versions.ts +26 -0
- package/src/resources/prompts.ts +9 -0
- package/src/resources/providers.ts +5 -18
- package/src/resources/responses/index.ts +1 -1
- package/src/resources/responses/input-items.ts +365 -161
- package/src/resources/responses/responses.ts +2959 -1870
- package/src/resources/responses.ts +1 -1
- package/src/resources/routes.ts +25 -14
- package/src/resources/safety.ts +199 -9
- package/src/resources/scoring-functions.ts +168 -52
- package/src/resources/scoring.ts +125 -22
- package/src/resources/shared.ts +187 -665
- package/src/resources/shields.ts +18 -23
- package/src/resources/tool-runtime.ts +210 -2
- package/src/resources/toolgroups.ts +26 -36
- package/src/resources/tools.ts +10 -94
- package/src/resources/vector-io.ts +323 -145
- package/src/resources/vector-stores/file-batches.ts +201 -0
- package/src/resources/vector-stores/files.ts +123 -143
- package/src/resources/vector-stores/index.ts +9 -1
- package/src/resources/vector-stores/vector-stores.ts +150 -216
- package/src/resources/vector-stores.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/agents/agents.d.ts +0 -246
- package/resources/agents/agents.d.ts.map +0 -1
- package/resources/agents/agents.js.map +0 -1
- package/resources/agents/agents.mjs +0 -52
- package/resources/agents/agents.mjs.map +0 -1
- package/resources/agents/index.d.ts +0 -5
- package/resources/agents/index.d.ts.map +0 -1
- package/resources/agents/index.js +0 -18
- package/resources/agents/index.js.map +0 -1
- package/resources/agents/index.mjs +0 -10
- package/resources/agents/index.mjs.map +0 -1
- package/resources/agents/session.d.ts +0 -98
- package/resources/agents/session.d.ts.map +0 -1
- package/resources/agents/session.js +0 -42
- package/resources/agents/session.js.map +0 -1
- package/resources/agents/session.mjs +0 -37
- package/resources/agents/session.mjs.map +0 -1
- package/resources/agents/steps.d.ts +0 -22
- package/resources/agents/steps.d.ts.map +0 -1
- package/resources/agents/steps.js.map +0 -1
- package/resources/agents/steps.mjs +0 -15
- package/resources/agents/steps.mjs.map +0 -1
- package/resources/agents/turn.d.ts +0 -461
- package/resources/agents/turn.d.ts.map +0 -1
- package/resources/agents/turn.js +0 -34
- package/resources/agents/turn.js.map +0 -1
- package/resources/agents/turn.mjs +0 -29
- package/resources/agents/turn.mjs.map +0 -1
- package/resources/agents.d.ts +0 -2
- package/resources/agents.d.ts.map +0 -1
- package/resources/agents.js.map +0 -1
- package/resources/agents.mjs +0 -7
- package/resources/agents.mjs.map +0 -1
- package/resources/benchmarks.d.ts.map +0 -1
- package/resources/benchmarks.js.map +0 -1
- package/resources/benchmarks.mjs +0 -31
- package/resources/benchmarks.mjs.map +0 -1
- package/resources/datasets.d.ts.map +0 -1
- package/resources/datasets.js.map +0 -1
- package/resources/datasets.mjs.map +0 -1
- package/resources/eval/eval.d.ts +0 -159
- package/resources/eval/eval.d.ts.map +0 -1
- package/resources/eval/eval.js.map +0 -1
- package/resources/eval/eval.mjs.map +0 -1
- package/resources/eval/index.d.ts +0 -3
- package/resources/eval/index.d.ts.map +0 -1
- package/resources/eval/index.js.map +0 -1
- package/resources/eval/index.mjs.map +0 -1
- package/resources/eval/jobs.d.ts.map +0 -1
- package/resources/eval/jobs.js.map +0 -1
- package/resources/eval/jobs.mjs.map +0 -1
- package/resources/eval.d.ts.map +0 -1
- package/resources/eval.js.map +0 -1
- package/resources/eval.mjs.map +0 -1
- package/resources/inference.d.ts +0 -580
- package/resources/inference.d.ts.map +0 -1
- package/resources/inference.js +0 -54
- package/resources/inference.js.map +0 -1
- package/resources/inference.mjs +0 -49
- package/resources/inference.mjs.map +0 -1
- package/resources/post-training/index.d.ts.map +0 -1
- package/resources/post-training/index.js.map +0 -1
- package/resources/post-training/index.mjs.map +0 -1
- package/resources/post-training/job.d.ts +0 -205
- package/resources/post-training/job.d.ts.map +0 -1
- package/resources/post-training/job.js.map +0 -1
- package/resources/post-training/job.mjs.map +0 -1
- package/resources/post-training/post-training.d.ts +0 -402
- package/resources/post-training/post-training.d.ts.map +0 -1
- package/resources/post-training/post-training.js.map +0 -1
- package/resources/post-training/post-training.mjs.map +0 -1
- package/resources/post-training.d.ts.map +0 -1
- package/resources/post-training.js.map +0 -1
- package/resources/post-training.mjs.map +0 -1
- package/resources/synthetic-data-generation.d.ts +0 -47
- package/resources/synthetic-data-generation.d.ts.map +0 -1
- package/resources/synthetic-data-generation.js +0 -20
- package/resources/synthetic-data-generation.js.map +0 -1
- package/resources/synthetic-data-generation.mjs +0 -15
- package/resources/synthetic-data-generation.mjs.map +0 -1
- package/resources/telemetry.d.ts +0 -519
- package/resources/telemetry.d.ts.map +0 -1
- package/resources/telemetry.js +0 -70
- package/resources/telemetry.js.map +0 -1
- package/resources/telemetry.mjs +0 -65
- package/resources/telemetry.mjs.map +0 -1
- package/resources/tool-runtime/index.d.ts +0 -3
- package/resources/tool-runtime/index.d.ts.map +0 -1
- package/resources/tool-runtime/index.js +0 -14
- package/resources/tool-runtime/index.js.map +0 -1
- package/resources/tool-runtime/index.mjs +0 -8
- package/resources/tool-runtime/index.mjs.map +0 -1
- package/resources/tool-runtime/rag-tool.d.ts +0 -45
- package/resources/tool-runtime/rag-tool.d.ts.map +0 -1
- package/resources/tool-runtime/rag-tool.js +0 -30
- package/resources/tool-runtime/rag-tool.js.map +0 -1
- package/resources/tool-runtime/rag-tool.mjs +0 -25
- package/resources/tool-runtime/rag-tool.mjs.map +0 -1
- package/resources/tool-runtime/tool-runtime.d.ts +0 -132
- package/resources/tool-runtime/tool-runtime.d.ts.map +0 -1
- package/resources/tool-runtime/tool-runtime.js.map +0 -1
- package/resources/tool-runtime/tool-runtime.mjs +0 -29
- package/resources/tool-runtime/tool-runtime.mjs.map +0 -1
- package/resources/vector-dbs.d.ts +0 -128
- package/resources/vector-dbs.d.ts.map +0 -1
- package/resources/vector-dbs.js +0 -41
- package/resources/vector-dbs.js.map +0 -1
- package/resources/vector-dbs.mjs +0 -36
- package/resources/vector-dbs.mjs.map +0 -1
- package/src/resources/agents/agents.ts +0 -372
- package/src/resources/agents/index.ts +0 -44
- package/src/resources/agents/session.ts +0 -169
- package/src/resources/agents/steps.ts +0 -47
- package/src/resources/agents/turn.ts +0 -638
- package/src/resources/inference.ts +0 -768
- package/src/resources/post-training/job.ts +0 -274
- package/src/resources/post-training/post-training.ts +0 -516
- package/src/resources/synthetic-data-generation.ts +0 -65
- package/src/resources/telemetry.ts +0 -692
- package/src/resources/tool-runtime/index.ts +0 -17
- package/src/resources/tool-runtime/rag-tool.ts +0 -69
- package/src/resources/tool-runtime/tool-runtime.ts +0 -191
- package/src/resources/vector-dbs.ts +0 -191
- /package/resources/{eval.d.ts → alpha/eval.d.ts} +0 -0
- /package/resources/{eval.mjs → alpha/eval.mjs} +0 -0
- /package/resources/{post-training → alpha/post-training}/index.d.ts +0 -0
- /package/resources/{post-training.d.ts → alpha/post-training.d.ts} +0 -0
package/resources/shared.d.ts
CHANGED
|
@@ -1,252 +1,45 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as ToolRuntimeAPI from "./tool-runtime/tool-runtime.js";
|
|
1
|
+
import * as ProvidersAPI from "./providers.js";
|
|
2
|
+
import * as RoutesAPI from "./routes.js";
|
|
4
3
|
/**
|
|
5
|
-
*
|
|
4
|
+
* Health status information for the service.
|
|
6
5
|
*/
|
|
7
|
-
export interface
|
|
6
|
+
export interface HealthInfo {
|
|
8
7
|
/**
|
|
9
|
-
* The
|
|
8
|
+
* The health status of the service
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* The model identifier to use for the agent
|
|
14
|
-
*/
|
|
15
|
-
model: string;
|
|
16
|
-
client_tools?: Array<ToolRuntimeAPI.ToolDef>;
|
|
17
|
-
/**
|
|
18
|
-
* Optional flag indicating whether session data has to be persisted
|
|
19
|
-
*/
|
|
20
|
-
enable_session_persistence?: boolean;
|
|
21
|
-
input_shields?: Array<string>;
|
|
22
|
-
max_infer_iters?: number;
|
|
23
|
-
/**
|
|
24
|
-
* Optional name for the agent, used in telemetry and identification
|
|
25
|
-
*/
|
|
26
|
-
name?: string;
|
|
27
|
-
output_shields?: Array<string>;
|
|
28
|
-
/**
|
|
29
|
-
* Optional response format configuration
|
|
30
|
-
*/
|
|
31
|
-
response_format?: ResponseFormat;
|
|
32
|
-
/**
|
|
33
|
-
* Sampling parameters.
|
|
34
|
-
*/
|
|
35
|
-
sampling_params?: SamplingParams;
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated Whether tool use is required or automatic. This is a hint to the
|
|
38
|
-
* model which may not be followed. It depends on the Instruction Following
|
|
39
|
-
* capabilities of the model.
|
|
40
|
-
*/
|
|
41
|
-
tool_choice?: 'auto' | 'required' | 'none';
|
|
42
|
-
/**
|
|
43
|
-
* Configuration for tool use.
|
|
44
|
-
*/
|
|
45
|
-
tool_config?: AgentConfig.ToolConfig;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated Prompt format for calling custom / zero shot tools.
|
|
48
|
-
*/
|
|
49
|
-
tool_prompt_format?: 'json' | 'function_tag' | 'python_list';
|
|
50
|
-
toolgroups?: Array<string | AgentConfig.AgentToolGroupWithArgs>;
|
|
51
|
-
}
|
|
52
|
-
export declare namespace AgentConfig {
|
|
53
|
-
/**
|
|
54
|
-
* Configuration for tool use.
|
|
55
|
-
*/
|
|
56
|
-
interface ToolConfig {
|
|
57
|
-
/**
|
|
58
|
-
* (Optional) Config for how to override the default system prompt. -
|
|
59
|
-
* `SystemMessageBehavior.append`: Appends the provided system message to the
|
|
60
|
-
* default system prompt. - `SystemMessageBehavior.replace`: Replaces the default
|
|
61
|
-
* system prompt with the provided system message. The system message can include
|
|
62
|
-
* the string '{{function_definitions}}' to indicate where the function definitions
|
|
63
|
-
* should be inserted.
|
|
64
|
-
*/
|
|
65
|
-
system_message_behavior?: 'append' | 'replace';
|
|
66
|
-
/**
|
|
67
|
-
* (Optional) Whether tool use is automatic, required, or none. Can also specify a
|
|
68
|
-
* tool name to use a specific tool. Defaults to ToolChoice.auto.
|
|
69
|
-
*/
|
|
70
|
-
tool_choice?: 'auto' | 'required' | 'none' | (string & {});
|
|
71
|
-
/**
|
|
72
|
-
* (Optional) Instructs the model how to format tool calls. By default, Llama Stack
|
|
73
|
-
* will attempt to use a format that is best adapted to the model. -
|
|
74
|
-
* `ToolPromptFormat.json`: The tool calls are formatted as a JSON object. -
|
|
75
|
-
* `ToolPromptFormat.function_tag`: The tool calls are enclosed in a
|
|
76
|
-
* <function=function_name> tag. - `ToolPromptFormat.python_list`: The tool calls
|
|
77
|
-
* are output as Python syntax -- a list of function calls.
|
|
78
|
-
*/
|
|
79
|
-
tool_prompt_format?: 'json' | 'function_tag' | 'python_list';
|
|
80
|
-
}
|
|
81
|
-
interface AgentToolGroupWithArgs {
|
|
82
|
-
args: {
|
|
83
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
84
|
-
};
|
|
85
|
-
name: string;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Response from a batch completion request.
|
|
90
|
-
*/
|
|
91
|
-
export interface BatchCompletion {
|
|
92
|
-
/**
|
|
93
|
-
* List of completion responses, one for each input in the batch
|
|
94
|
-
*/
|
|
95
|
-
batch: Array<InferenceAPI.CompletionResponse>;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Response from a chat completion request.
|
|
99
|
-
*/
|
|
100
|
-
export interface ChatCompletionResponse {
|
|
101
|
-
/**
|
|
102
|
-
* The complete response message
|
|
103
|
-
*/
|
|
104
|
-
completion_message: CompletionMessage;
|
|
105
|
-
/**
|
|
106
|
-
* Optional log probabilities for generated tokens
|
|
107
|
-
*/
|
|
108
|
-
logprobs?: Array<InferenceAPI.TokenLogProbs>;
|
|
109
|
-
/**
|
|
110
|
-
* (Optional) List of metrics associated with the API response
|
|
111
|
-
*/
|
|
112
|
-
metrics?: Array<Metric>;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* A message containing the model's (assistant) response in a chat conversation.
|
|
116
|
-
*/
|
|
117
|
-
export interface CompletionMessage {
|
|
118
|
-
/**
|
|
119
|
-
* The content of the model's response
|
|
120
|
-
*/
|
|
121
|
-
content: InterleavedContent;
|
|
122
|
-
/**
|
|
123
|
-
* Must be "assistant" to identify this as the model's response
|
|
124
|
-
*/
|
|
125
|
-
role: 'assistant';
|
|
126
|
-
/**
|
|
127
|
-
* Reason why the model stopped generating. Options are: -
|
|
128
|
-
* `StopReason.end_of_turn`: The model finished generating the entire response. -
|
|
129
|
-
* `StopReason.end_of_message`: The model finished generating but generated a
|
|
130
|
-
* partial response -- usually, a tool call. The user may call the tool and
|
|
131
|
-
* continue the conversation with the tool's response. -
|
|
132
|
-
* `StopReason.out_of_tokens`: The model ran out of token budget.
|
|
133
|
-
*/
|
|
134
|
-
stop_reason: 'end_of_turn' | 'end_of_message' | 'out_of_tokens';
|
|
135
|
-
/**
|
|
136
|
-
* List of tool calls. Each tool call is a ToolCall object.
|
|
137
|
-
*/
|
|
138
|
-
tool_calls?: Array<ToolCall>;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* A text content delta for streaming responses.
|
|
142
|
-
*/
|
|
143
|
-
export type ContentDelta = ContentDelta.TextDelta | ContentDelta.ImageDelta | ContentDelta.ToolCallDelta;
|
|
144
|
-
export declare namespace ContentDelta {
|
|
145
|
-
/**
|
|
146
|
-
* A text content delta for streaming responses.
|
|
147
|
-
*/
|
|
148
|
-
interface TextDelta {
|
|
149
|
-
/**
|
|
150
|
-
* The incremental text content
|
|
151
|
-
*/
|
|
152
|
-
text: string;
|
|
153
|
-
/**
|
|
154
|
-
* Discriminator type of the delta. Always "text"
|
|
155
|
-
*/
|
|
156
|
-
type: 'text';
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* An image content delta for streaming responses.
|
|
160
|
-
*/
|
|
161
|
-
interface ImageDelta {
|
|
162
|
-
/**
|
|
163
|
-
* The incremental image data as bytes
|
|
164
|
-
*/
|
|
165
|
-
image: string;
|
|
166
|
-
/**
|
|
167
|
-
* Discriminator type of the delta. Always "image"
|
|
168
|
-
*/
|
|
169
|
-
type: 'image';
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* A tool call content delta for streaming responses.
|
|
173
|
-
*/
|
|
174
|
-
interface ToolCallDelta {
|
|
175
|
-
/**
|
|
176
|
-
* Current parsing status of the tool call
|
|
177
|
-
*/
|
|
178
|
-
parse_status: 'started' | 'in_progress' | 'failed' | 'succeeded';
|
|
179
|
-
/**
|
|
180
|
-
* Either an in-progress tool call string or the final parsed tool call
|
|
181
|
-
*/
|
|
182
|
-
tool_call: string | Shared.ToolCall;
|
|
183
|
-
/**
|
|
184
|
-
* Discriminator type of the delta. Always "tool_call"
|
|
185
|
-
*/
|
|
186
|
-
type: 'tool_call';
|
|
187
|
-
}
|
|
10
|
+
status: 'OK' | 'Error' | 'Not Implemented';
|
|
188
11
|
}
|
|
189
12
|
/**
|
|
190
|
-
* A
|
|
13
|
+
* A image content item
|
|
191
14
|
*/
|
|
192
|
-
export
|
|
193
|
-
|
|
194
|
-
* The content of the document.
|
|
195
|
-
*/
|
|
196
|
-
content: string | Document.ImageContentItem | Document.TextContentItem | Array<InterleavedContentItem> | Document.URL;
|
|
197
|
-
/**
|
|
198
|
-
* The unique identifier for the document.
|
|
199
|
-
*/
|
|
200
|
-
document_id: string;
|
|
201
|
-
/**
|
|
202
|
-
* Additional metadata for the document.
|
|
203
|
-
*/
|
|
204
|
-
metadata: {
|
|
205
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
206
|
-
};
|
|
207
|
-
/**
|
|
208
|
-
* The MIME type of the document.
|
|
209
|
-
*/
|
|
210
|
-
mime_type?: string;
|
|
211
|
-
}
|
|
212
|
-
export declare namespace Document {
|
|
15
|
+
export type InterleavedContent = string | InterleavedContent.ImageContentItem | InterleavedContent.TextContentItem | Array<InterleavedContent.ImageContentItem | InterleavedContent.TextContentItem>;
|
|
16
|
+
export declare namespace InterleavedContent {
|
|
213
17
|
/**
|
|
214
18
|
* A image content item
|
|
215
19
|
*/
|
|
216
20
|
interface ImageContentItem {
|
|
217
21
|
/**
|
|
218
|
-
*
|
|
22
|
+
* A URL or a base64 encoded string
|
|
219
23
|
*/
|
|
220
24
|
image: ImageContentItem.Image;
|
|
221
|
-
|
|
222
|
-
* Discriminator type of the content item. Always "image"
|
|
223
|
-
*/
|
|
224
|
-
type: 'image';
|
|
25
|
+
type?: 'image';
|
|
225
26
|
}
|
|
226
27
|
namespace ImageContentItem {
|
|
227
28
|
/**
|
|
228
|
-
*
|
|
29
|
+
* A URL or a base64 encoded string
|
|
229
30
|
*/
|
|
230
31
|
interface Image {
|
|
32
|
+
data?: string | null;
|
|
231
33
|
/**
|
|
232
|
-
*
|
|
34
|
+
* A URL reference to external content.
|
|
233
35
|
*/
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* A URL of the image or data URL in the format of data:image/{type};base64,{data}.
|
|
237
|
-
* Note that URL could have length limits.
|
|
238
|
-
*/
|
|
239
|
-
url?: Image.URL;
|
|
36
|
+
url?: Image.URL | null;
|
|
240
37
|
}
|
|
241
38
|
namespace Image {
|
|
242
39
|
/**
|
|
243
|
-
* A URL
|
|
244
|
-
* Note that URL could have length limits.
|
|
40
|
+
* A URL reference to external content.
|
|
245
41
|
*/
|
|
246
42
|
interface URL {
|
|
247
|
-
/**
|
|
248
|
-
* The URL string pointing to the resource
|
|
249
|
-
*/
|
|
250
43
|
uri: string;
|
|
251
44
|
}
|
|
252
45
|
}
|
|
@@ -255,67 +48,35 @@ export declare namespace Document {
|
|
|
255
48
|
* A text content item
|
|
256
49
|
*/
|
|
257
50
|
interface TextContentItem {
|
|
258
|
-
/**
|
|
259
|
-
* Text content
|
|
260
|
-
*/
|
|
261
51
|
text: string;
|
|
262
|
-
|
|
263
|
-
* Discriminator type of the content item. Always "text"
|
|
264
|
-
*/
|
|
265
|
-
type: 'text';
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* A URL reference to external content.
|
|
269
|
-
*/
|
|
270
|
-
interface URL {
|
|
271
|
-
/**
|
|
272
|
-
* The URL string pointing to the resource
|
|
273
|
-
*/
|
|
274
|
-
uri: string;
|
|
52
|
+
type?: 'text';
|
|
275
53
|
}
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* A image content item
|
|
279
|
-
*/
|
|
280
|
-
export type InterleavedContent = string | InterleavedContent.ImageContentItem | InterleavedContent.TextContentItem | Array<InterleavedContentItem>;
|
|
281
|
-
export declare namespace InterleavedContent {
|
|
282
54
|
/**
|
|
283
55
|
* A image content item
|
|
284
56
|
*/
|
|
285
57
|
interface ImageContentItem {
|
|
286
58
|
/**
|
|
287
|
-
*
|
|
59
|
+
* A URL or a base64 encoded string
|
|
288
60
|
*/
|
|
289
61
|
image: ImageContentItem.Image;
|
|
290
|
-
|
|
291
|
-
* Discriminator type of the content item. Always "image"
|
|
292
|
-
*/
|
|
293
|
-
type: 'image';
|
|
62
|
+
type?: 'image';
|
|
294
63
|
}
|
|
295
64
|
namespace ImageContentItem {
|
|
296
65
|
/**
|
|
297
|
-
*
|
|
66
|
+
* A URL or a base64 encoded string
|
|
298
67
|
*/
|
|
299
68
|
interface Image {
|
|
69
|
+
data?: string | null;
|
|
300
70
|
/**
|
|
301
|
-
*
|
|
71
|
+
* A URL reference to external content.
|
|
302
72
|
*/
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* A URL of the image or data URL in the format of data:image/{type};base64,{data}.
|
|
306
|
-
* Note that URL could have length limits.
|
|
307
|
-
*/
|
|
308
|
-
url?: Image.URL;
|
|
73
|
+
url?: Image.URL | null;
|
|
309
74
|
}
|
|
310
75
|
namespace Image {
|
|
311
76
|
/**
|
|
312
|
-
* A URL
|
|
313
|
-
* Note that URL could have length limits.
|
|
77
|
+
* A URL reference to external content.
|
|
314
78
|
*/
|
|
315
79
|
interface URL {
|
|
316
|
-
/**
|
|
317
|
-
* The URL string pointing to the resource
|
|
318
|
-
*/
|
|
319
80
|
uri: string;
|
|
320
81
|
}
|
|
321
82
|
}
|
|
@@ -324,14 +85,8 @@ export declare namespace InterleavedContent {
|
|
|
324
85
|
* A text content item
|
|
325
86
|
*/
|
|
326
87
|
interface TextContentItem {
|
|
327
|
-
/**
|
|
328
|
-
* Text content
|
|
329
|
-
*/
|
|
330
88
|
text: string;
|
|
331
|
-
|
|
332
|
-
* Discriminator type of the content item. Always "text"
|
|
333
|
-
*/
|
|
334
|
-
type: 'text';
|
|
89
|
+
type?: 'text';
|
|
335
90
|
}
|
|
336
91
|
}
|
|
337
92
|
/**
|
|
@@ -344,38 +99,27 @@ export declare namespace InterleavedContentItem {
|
|
|
344
99
|
*/
|
|
345
100
|
interface ImageContentItem {
|
|
346
101
|
/**
|
|
347
|
-
*
|
|
102
|
+
* A URL or a base64 encoded string
|
|
348
103
|
*/
|
|
349
104
|
image: ImageContentItem.Image;
|
|
350
|
-
|
|
351
|
-
* Discriminator type of the content item. Always "image"
|
|
352
|
-
*/
|
|
353
|
-
type: 'image';
|
|
105
|
+
type?: 'image';
|
|
354
106
|
}
|
|
355
107
|
namespace ImageContentItem {
|
|
356
108
|
/**
|
|
357
|
-
*
|
|
109
|
+
* A URL or a base64 encoded string
|
|
358
110
|
*/
|
|
359
111
|
interface Image {
|
|
112
|
+
data?: string | null;
|
|
360
113
|
/**
|
|
361
|
-
*
|
|
362
|
-
*/
|
|
363
|
-
data?: string;
|
|
364
|
-
/**
|
|
365
|
-
* A URL of the image or data URL in the format of data:image/{type};base64,{data}.
|
|
366
|
-
* Note that URL could have length limits.
|
|
114
|
+
* A URL reference to external content.
|
|
367
115
|
*/
|
|
368
|
-
url?: Image.URL;
|
|
116
|
+
url?: Image.URL | null;
|
|
369
117
|
}
|
|
370
118
|
namespace Image {
|
|
371
119
|
/**
|
|
372
|
-
* A URL
|
|
373
|
-
* Note that URL could have length limits.
|
|
120
|
+
* A URL reference to external content.
|
|
374
121
|
*/
|
|
375
122
|
interface URL {
|
|
376
|
-
/**
|
|
377
|
-
* The URL string pointing to the resource
|
|
378
|
-
*/
|
|
379
123
|
uri: string;
|
|
380
124
|
}
|
|
381
125
|
}
|
|
@@ -384,328 +128,161 @@ export declare namespace InterleavedContentItem {
|
|
|
384
128
|
* A text content item
|
|
385
129
|
*/
|
|
386
130
|
interface TextContentItem {
|
|
387
|
-
/**
|
|
388
|
-
* Text content
|
|
389
|
-
*/
|
|
390
131
|
text: string;
|
|
391
|
-
|
|
392
|
-
* Discriminator type of the content item. Always "text"
|
|
393
|
-
*/
|
|
394
|
-
type: 'text';
|
|
132
|
+
type?: 'text';
|
|
395
133
|
}
|
|
396
134
|
}
|
|
397
135
|
/**
|
|
398
|
-
*
|
|
136
|
+
* Response containing a list of all available providers.
|
|
399
137
|
*/
|
|
400
|
-
export
|
|
401
|
-
/**
|
|
402
|
-
* A metric value included in API responses.
|
|
403
|
-
*/
|
|
404
|
-
export interface Metric {
|
|
405
|
-
/**
|
|
406
|
-
* The name of the metric
|
|
407
|
-
*/
|
|
408
|
-
metric: string;
|
|
138
|
+
export interface ListProvidersResponse {
|
|
409
139
|
/**
|
|
410
|
-
*
|
|
140
|
+
* List of provider information objects
|
|
411
141
|
*/
|
|
412
|
-
|
|
142
|
+
data: ProvidersAPI.ProviderListResponse;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Response containing a list of all available API routes.
|
|
146
|
+
*/
|
|
147
|
+
export interface ListRoutesResponse {
|
|
413
148
|
/**
|
|
414
|
-
*
|
|
149
|
+
* List of available API routes
|
|
415
150
|
*/
|
|
416
|
-
|
|
151
|
+
data: RoutesAPI.RouteListResponse;
|
|
417
152
|
}
|
|
418
153
|
/**
|
|
419
154
|
* Parameter type for string values.
|
|
420
155
|
*/
|
|
421
|
-
export type ParamType = ParamType.StringType | ParamType.NumberType | ParamType.BooleanType | ParamType.ArrayType | ParamType.ObjectType | ParamType.JsonType | ParamType.UnionType | ParamType.ChatCompletionInputType | ParamType.CompletionInputType
|
|
156
|
+
export type ParamType = ParamType.StringType | ParamType.NumberType | ParamType.BooleanType | ParamType.ArrayType | ParamType.ObjectType | ParamType.JsonType | ParamType.UnionType | ParamType.ChatCompletionInputType | ParamType.CompletionInputType;
|
|
422
157
|
export declare namespace ParamType {
|
|
423
158
|
/**
|
|
424
159
|
* Parameter type for string values.
|
|
425
160
|
*/
|
|
426
161
|
interface StringType {
|
|
427
|
-
|
|
428
|
-
* Discriminator type. Always "string"
|
|
429
|
-
*/
|
|
430
|
-
type: 'string';
|
|
162
|
+
type?: 'string';
|
|
431
163
|
}
|
|
432
164
|
/**
|
|
433
165
|
* Parameter type for numeric values.
|
|
434
166
|
*/
|
|
435
167
|
interface NumberType {
|
|
436
|
-
|
|
437
|
-
* Discriminator type. Always "number"
|
|
438
|
-
*/
|
|
439
|
-
type: 'number';
|
|
168
|
+
type?: 'number';
|
|
440
169
|
}
|
|
441
170
|
/**
|
|
442
171
|
* Parameter type for boolean values.
|
|
443
172
|
*/
|
|
444
173
|
interface BooleanType {
|
|
445
|
-
|
|
446
|
-
* Discriminator type. Always "boolean"
|
|
447
|
-
*/
|
|
448
|
-
type: 'boolean';
|
|
174
|
+
type?: 'boolean';
|
|
449
175
|
}
|
|
450
176
|
/**
|
|
451
177
|
* Parameter type for array values.
|
|
452
178
|
*/
|
|
453
179
|
interface ArrayType {
|
|
454
|
-
|
|
455
|
-
* Discriminator type. Always "array"
|
|
456
|
-
*/
|
|
457
|
-
type: 'array';
|
|
180
|
+
type?: 'array';
|
|
458
181
|
}
|
|
459
182
|
/**
|
|
460
183
|
* Parameter type for object values.
|
|
461
184
|
*/
|
|
462
185
|
interface ObjectType {
|
|
463
|
-
|
|
464
|
-
* Discriminator type. Always "object"
|
|
465
|
-
*/
|
|
466
|
-
type: 'object';
|
|
186
|
+
type?: 'object';
|
|
467
187
|
}
|
|
468
188
|
/**
|
|
469
189
|
* Parameter type for JSON values.
|
|
470
190
|
*/
|
|
471
191
|
interface JsonType {
|
|
472
|
-
|
|
473
|
-
* Discriminator type. Always "json"
|
|
474
|
-
*/
|
|
475
|
-
type: 'json';
|
|
192
|
+
type?: 'json';
|
|
476
193
|
}
|
|
477
194
|
/**
|
|
478
195
|
* Parameter type for union values.
|
|
479
196
|
*/
|
|
480
197
|
interface UnionType {
|
|
481
|
-
|
|
482
|
-
* Discriminator type. Always "union"
|
|
483
|
-
*/
|
|
484
|
-
type: 'union';
|
|
198
|
+
type?: 'union';
|
|
485
199
|
}
|
|
486
200
|
/**
|
|
487
201
|
* Parameter type for chat completion input.
|
|
488
202
|
*/
|
|
489
203
|
interface ChatCompletionInputType {
|
|
490
|
-
|
|
491
|
-
* Discriminator type. Always "chat_completion_input"
|
|
492
|
-
*/
|
|
493
|
-
type: 'chat_completion_input';
|
|
204
|
+
type?: 'chat_completion_input';
|
|
494
205
|
}
|
|
495
206
|
/**
|
|
496
207
|
* Parameter type for completion input.
|
|
497
208
|
*/
|
|
498
209
|
interface CompletionInputType {
|
|
499
|
-
|
|
500
|
-
* Discriminator type. Always "completion_input"
|
|
501
|
-
*/
|
|
502
|
-
type: 'completion_input';
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* Parameter type for agent turn input.
|
|
506
|
-
*/
|
|
507
|
-
interface AgentTurnInputType {
|
|
508
|
-
/**
|
|
509
|
-
* Discriminator type. Always "agent_turn_input"
|
|
510
|
-
*/
|
|
511
|
-
type: 'agent_turn_input';
|
|
210
|
+
type?: 'completion_input';
|
|
512
211
|
}
|
|
513
212
|
}
|
|
514
213
|
/**
|
|
515
|
-
*
|
|
214
|
+
* Information about a registered provider including its configuration and health
|
|
215
|
+
* status.
|
|
516
216
|
*/
|
|
517
|
-
export interface
|
|
217
|
+
export interface ProviderInfo {
|
|
518
218
|
/**
|
|
519
|
-
*
|
|
520
|
-
* placeholders: {index} (1-based chunk ordinal), {chunk.content} (chunk content
|
|
521
|
-
* string), {metadata} (chunk metadata dict). Default: "Result {index}\nContent:
|
|
522
|
-
* {chunk.content}\nMetadata: {metadata}\n"
|
|
219
|
+
* The API name this provider implements
|
|
523
220
|
*/
|
|
524
|
-
|
|
221
|
+
api: string;
|
|
525
222
|
/**
|
|
526
|
-
*
|
|
223
|
+
* Configuration parameters for the provider
|
|
527
224
|
*/
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
*/
|
|
532
|
-
max_tokens_in_context: number;
|
|
533
|
-
/**
|
|
534
|
-
* Configuration for the query generator.
|
|
535
|
-
*/
|
|
536
|
-
query_generator_config: QueryGeneratorConfig;
|
|
537
|
-
/**
|
|
538
|
-
* Search mode for retrieval—either "vector", "keyword", or "hybrid". Default
|
|
539
|
-
* "vector".
|
|
540
|
-
*/
|
|
541
|
-
mode?: 'vector' | 'keyword' | 'hybrid';
|
|
542
|
-
/**
|
|
543
|
-
* Configuration for the ranker to use in hybrid search. Defaults to RRF ranker.
|
|
544
|
-
*/
|
|
545
|
-
ranker?: QueryConfig.RrfRanker | QueryConfig.WeightedRanker;
|
|
546
|
-
}
|
|
547
|
-
export declare namespace QueryConfig {
|
|
548
|
-
/**
|
|
549
|
-
* Reciprocal Rank Fusion (RRF) ranker configuration.
|
|
550
|
-
*/
|
|
551
|
-
interface RrfRanker {
|
|
552
|
-
/**
|
|
553
|
-
* The impact factor for RRF scoring. Higher values give more weight to
|
|
554
|
-
* higher-ranked results. Must be greater than 0
|
|
555
|
-
*/
|
|
556
|
-
impact_factor: number;
|
|
557
|
-
/**
|
|
558
|
-
* The type of ranker, always "rrf"
|
|
559
|
-
*/
|
|
560
|
-
type: 'rrf';
|
|
561
|
-
}
|
|
225
|
+
config: {
|
|
226
|
+
[key: string]: unknown;
|
|
227
|
+
};
|
|
562
228
|
/**
|
|
563
|
-
*
|
|
229
|
+
* Current health status of the provider
|
|
564
230
|
*/
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
* vector scores, values in between blend both scores.
|
|
569
|
-
*/
|
|
570
|
-
alpha: number;
|
|
571
|
-
/**
|
|
572
|
-
* The type of ranker, always "weighted"
|
|
573
|
-
*/
|
|
574
|
-
type: 'weighted';
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
/**
|
|
578
|
-
* Configuration for the default RAG query generator.
|
|
579
|
-
*/
|
|
580
|
-
export type QueryGeneratorConfig = QueryGeneratorConfig.DefaultRagQueryGeneratorConfig | QueryGeneratorConfig.LlmragQueryGeneratorConfig;
|
|
581
|
-
export declare namespace QueryGeneratorConfig {
|
|
231
|
+
health: {
|
|
232
|
+
[key: string]: unknown;
|
|
233
|
+
};
|
|
582
234
|
/**
|
|
583
|
-
*
|
|
235
|
+
* Unique identifier for the provider
|
|
584
236
|
*/
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* String separator used to join query terms
|
|
588
|
-
*/
|
|
589
|
-
separator: string;
|
|
590
|
-
/**
|
|
591
|
-
* Type of query generator, always 'default'
|
|
592
|
-
*/
|
|
593
|
-
type: 'default';
|
|
594
|
-
}
|
|
237
|
+
provider_id: string;
|
|
595
238
|
/**
|
|
596
|
-
*
|
|
239
|
+
* The type of provider implementation
|
|
597
240
|
*/
|
|
598
|
-
|
|
599
|
-
/**
|
|
600
|
-
* Name of the language model to use for query generation
|
|
601
|
-
*/
|
|
602
|
-
model: string;
|
|
603
|
-
/**
|
|
604
|
-
* Template string for formatting the query generation prompt
|
|
605
|
-
*/
|
|
606
|
-
template: string;
|
|
607
|
-
/**
|
|
608
|
-
* Type of query generator, always 'llm'
|
|
609
|
-
*/
|
|
610
|
-
type: 'llm';
|
|
611
|
-
}
|
|
241
|
+
provider_type: string;
|
|
612
242
|
}
|
|
613
243
|
/**
|
|
614
|
-
*
|
|
244
|
+
* Information about an API route including its path, method, and implementing
|
|
245
|
+
* providers.
|
|
615
246
|
*/
|
|
616
|
-
export interface
|
|
247
|
+
export interface RouteInfo {
|
|
617
248
|
/**
|
|
618
|
-
*
|
|
249
|
+
* The HTTP method for the route
|
|
619
250
|
*/
|
|
620
|
-
|
|
621
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
622
|
-
};
|
|
251
|
+
method: string;
|
|
623
252
|
/**
|
|
624
|
-
*
|
|
253
|
+
* List of provider types implementing this route
|
|
625
254
|
*/
|
|
626
|
-
|
|
627
|
-
}
|
|
628
|
-
/**
|
|
629
|
-
* Configuration for JSON schema-guided response generation.
|
|
630
|
-
*/
|
|
631
|
-
export type ResponseFormat = ResponseFormat.JsonSchemaResponseFormat | ResponseFormat.GrammarResponseFormat;
|
|
632
|
-
export declare namespace ResponseFormat {
|
|
633
|
-
/**
|
|
634
|
-
* Configuration for JSON schema-guided response generation.
|
|
635
|
-
*/
|
|
636
|
-
interface JsonSchemaResponseFormat {
|
|
637
|
-
/**
|
|
638
|
-
* The JSON schema the response should conform to. In a Python SDK, this is often a
|
|
639
|
-
* `pydantic` model.
|
|
640
|
-
*/
|
|
641
|
-
json_schema: {
|
|
642
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
643
|
-
};
|
|
644
|
-
/**
|
|
645
|
-
* Must be "json_schema" to identify this format type
|
|
646
|
-
*/
|
|
647
|
-
type: 'json_schema';
|
|
648
|
-
}
|
|
255
|
+
provider_types: Array<string>;
|
|
649
256
|
/**
|
|
650
|
-
*
|
|
257
|
+
* The API route path
|
|
651
258
|
*/
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* The BNF grammar specification the response should conform to
|
|
655
|
-
*/
|
|
656
|
-
bnf: {
|
|
657
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
658
|
-
};
|
|
659
|
-
/**
|
|
660
|
-
* Must be "grammar" to identify this format type
|
|
661
|
-
*/
|
|
662
|
-
type: 'grammar';
|
|
663
|
-
}
|
|
259
|
+
route: string;
|
|
664
260
|
}
|
|
665
261
|
/**
|
|
666
262
|
* Details of a safety violation detected by content moderation.
|
|
667
263
|
*/
|
|
668
264
|
export interface SafetyViolation {
|
|
669
265
|
/**
|
|
670
|
-
*
|
|
671
|
-
* telemetry
|
|
672
|
-
*/
|
|
673
|
-
metadata: {
|
|
674
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
675
|
-
};
|
|
676
|
-
/**
|
|
677
|
-
* Severity level of the violation
|
|
266
|
+
* Severity level of a safety violation.
|
|
678
267
|
*/
|
|
679
268
|
violation_level: 'info' | 'warn' | 'error';
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
user_message?: string;
|
|
269
|
+
metadata?: {
|
|
270
|
+
[key: string]: unknown;
|
|
271
|
+
};
|
|
272
|
+
user_message?: string | null;
|
|
684
273
|
}
|
|
685
274
|
/**
|
|
686
275
|
* Sampling parameters.
|
|
687
276
|
*/
|
|
688
277
|
export interface SamplingParams {
|
|
278
|
+
max_tokens?: number | null;
|
|
279
|
+
repetition_penalty?: number | null;
|
|
280
|
+
stop?: Array<string> | null;
|
|
689
281
|
/**
|
|
690
|
-
*
|
|
691
|
-
|
|
692
|
-
strategy: SamplingParams.GreedySamplingStrategy | SamplingParams.TopPSamplingStrategy | SamplingParams.TopKSamplingStrategy;
|
|
693
|
-
/**
|
|
694
|
-
* The maximum number of tokens that can be generated in the completion. The token
|
|
695
|
-
* count of your prompt plus max_tokens cannot exceed the model's context length.
|
|
696
|
-
*/
|
|
697
|
-
max_tokens?: number;
|
|
698
|
-
/**
|
|
699
|
-
* Number between -2.0 and 2.0. Positive values penalize new tokens based on
|
|
700
|
-
* whether they appear in the text so far, increasing the model's likelihood to
|
|
701
|
-
* talk about new topics.
|
|
702
|
-
*/
|
|
703
|
-
repetition_penalty?: number;
|
|
704
|
-
/**
|
|
705
|
-
* Up to 4 sequences where the API will stop generating further tokens. The
|
|
706
|
-
* returned text will not contain the stop sequence.
|
|
282
|
+
* Greedy sampling strategy that selects the highest probability token at each
|
|
283
|
+
* step.
|
|
707
284
|
*/
|
|
708
|
-
|
|
285
|
+
strategy?: SamplingParams.GreedySamplingStrategy | SamplingParams.TopPSamplingStrategy | SamplingParams.TopKSamplingStrategy;
|
|
709
286
|
}
|
|
710
287
|
export declare namespace SamplingParams {
|
|
711
288
|
/**
|
|
@@ -713,58 +290,34 @@ export declare namespace SamplingParams {
|
|
|
713
290
|
* step.
|
|
714
291
|
*/
|
|
715
292
|
interface GreedySamplingStrategy {
|
|
716
|
-
|
|
717
|
-
* Must be "greedy" to identify this sampling strategy
|
|
718
|
-
*/
|
|
719
|
-
type: 'greedy';
|
|
293
|
+
type?: 'greedy';
|
|
720
294
|
}
|
|
721
295
|
/**
|
|
722
296
|
* Top-p (nucleus) sampling strategy that samples from the smallest set of tokens
|
|
723
297
|
* with cumulative probability >= p.
|
|
724
298
|
*/
|
|
725
299
|
interface TopPSamplingStrategy {
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
type: 'top_p';
|
|
730
|
-
/**
|
|
731
|
-
* Controls randomness in sampling. Higher values increase randomness
|
|
732
|
-
*/
|
|
733
|
-
temperature?: number;
|
|
734
|
-
/**
|
|
735
|
-
* Cumulative probability threshold for nucleus sampling. Defaults to 0.95
|
|
736
|
-
*/
|
|
737
|
-
top_p?: number;
|
|
300
|
+
temperature: number | null;
|
|
301
|
+
top_p?: number | null;
|
|
302
|
+
type?: 'top_p';
|
|
738
303
|
}
|
|
739
304
|
/**
|
|
740
305
|
* Top-k sampling strategy that restricts sampling to the k most likely tokens.
|
|
741
306
|
*/
|
|
742
307
|
interface TopKSamplingStrategy {
|
|
743
|
-
/**
|
|
744
|
-
* Number of top tokens to consider for sampling. Must be at least 1
|
|
745
|
-
*/
|
|
746
308
|
top_k: number;
|
|
747
|
-
|
|
748
|
-
* Must be "top_k" to identify this sampling strategy
|
|
749
|
-
*/
|
|
750
|
-
type: 'top_k';
|
|
309
|
+
type?: 'top_k';
|
|
751
310
|
}
|
|
752
311
|
}
|
|
753
312
|
/**
|
|
754
313
|
* A scoring result for a single row.
|
|
755
314
|
*/
|
|
756
315
|
export interface ScoringResult {
|
|
757
|
-
/**
|
|
758
|
-
* Map of metric name to aggregated value
|
|
759
|
-
*/
|
|
760
316
|
aggregated_results: {
|
|
761
|
-
[key: string]:
|
|
317
|
+
[key: string]: unknown;
|
|
762
318
|
};
|
|
763
|
-
/**
|
|
764
|
-
* The scoring result for each row. Each row is a map of column name to value.
|
|
765
|
-
*/
|
|
766
319
|
score_rows: Array<{
|
|
767
|
-
[key: string]:
|
|
320
|
+
[key: string]: unknown;
|
|
768
321
|
}>;
|
|
769
322
|
}
|
|
770
323
|
/**
|
|
@@ -772,65 +325,94 @@ export interface ScoringResult {
|
|
|
772
325
|
*/
|
|
773
326
|
export interface SystemMessage {
|
|
774
327
|
/**
|
|
775
|
-
*
|
|
776
|
-
* they are concatenated. The underlying Llama Stack code may also add other system
|
|
777
|
-
* messages (for example, for formatting tool definitions).
|
|
328
|
+
* A image content item
|
|
778
329
|
*/
|
|
779
|
-
content:
|
|
330
|
+
content: string | SystemMessage.ImageContentItemInput | SystemMessage.TextContentItem | Array<SystemMessage.ImageContentItemInput | SystemMessage.TextContentItem>;
|
|
331
|
+
role?: 'system';
|
|
332
|
+
}
|
|
333
|
+
export declare namespace SystemMessage {
|
|
780
334
|
/**
|
|
781
|
-
*
|
|
335
|
+
* A image content item
|
|
782
336
|
*/
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
337
|
+
interface ImageContentItemInput {
|
|
338
|
+
/**
|
|
339
|
+
* A URL or a base64 encoded string
|
|
340
|
+
*/
|
|
341
|
+
image: ImageContentItemInput.Image;
|
|
342
|
+
type?: 'image';
|
|
343
|
+
}
|
|
344
|
+
namespace ImageContentItemInput {
|
|
345
|
+
/**
|
|
346
|
+
* A URL or a base64 encoded string
|
|
347
|
+
*/
|
|
348
|
+
interface Image {
|
|
349
|
+
data?: string | null;
|
|
350
|
+
/**
|
|
351
|
+
* A URL reference to external content.
|
|
352
|
+
*/
|
|
353
|
+
url?: Image.URL | null;
|
|
354
|
+
}
|
|
355
|
+
namespace Image {
|
|
356
|
+
/**
|
|
357
|
+
* A URL reference to external content.
|
|
358
|
+
*/
|
|
359
|
+
interface URL {
|
|
360
|
+
uri: string;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
805
364
|
/**
|
|
806
|
-
*
|
|
365
|
+
* A text content item
|
|
807
366
|
*/
|
|
808
|
-
|
|
367
|
+
interface TextContentItem {
|
|
368
|
+
text: string;
|
|
369
|
+
type?: 'text';
|
|
370
|
+
}
|
|
809
371
|
/**
|
|
810
|
-
*
|
|
372
|
+
* A image content item
|
|
811
373
|
*/
|
|
812
|
-
|
|
374
|
+
interface ImageContentItemInput {
|
|
375
|
+
/**
|
|
376
|
+
* A URL or a base64 encoded string
|
|
377
|
+
*/
|
|
378
|
+
image: ImageContentItemInput.Image;
|
|
379
|
+
type?: 'image';
|
|
380
|
+
}
|
|
381
|
+
namespace ImageContentItemInput {
|
|
382
|
+
/**
|
|
383
|
+
* A URL or a base64 encoded string
|
|
384
|
+
*/
|
|
385
|
+
interface Image {
|
|
386
|
+
data?: string | null;
|
|
387
|
+
/**
|
|
388
|
+
* A URL reference to external content.
|
|
389
|
+
*/
|
|
390
|
+
url?: Image.URL | null;
|
|
391
|
+
}
|
|
392
|
+
namespace Image {
|
|
393
|
+
/**
|
|
394
|
+
* A URL reference to external content.
|
|
395
|
+
*/
|
|
396
|
+
interface URL {
|
|
397
|
+
uri: string;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
813
401
|
/**
|
|
814
|
-
*
|
|
402
|
+
* A text content item
|
|
815
403
|
*/
|
|
816
|
-
|
|
404
|
+
interface TextContentItem {
|
|
405
|
+
text: string;
|
|
406
|
+
type?: 'text';
|
|
407
|
+
}
|
|
817
408
|
}
|
|
818
409
|
/**
|
|
819
|
-
*
|
|
410
|
+
* Version information for the service.
|
|
820
411
|
*/
|
|
821
|
-
export interface
|
|
822
|
-
/**
|
|
823
|
-
* The content of the message, which can include text and other media
|
|
824
|
-
*/
|
|
825
|
-
content: InterleavedContent;
|
|
826
|
-
/**
|
|
827
|
-
* Must be "user" to identify this as a user message
|
|
828
|
-
*/
|
|
829
|
-
role: 'user';
|
|
412
|
+
export interface VersionInfo {
|
|
830
413
|
/**
|
|
831
|
-
*
|
|
832
|
-
* This field may be removed in the API in the future.
|
|
414
|
+
* The version string of the service
|
|
833
415
|
*/
|
|
834
|
-
|
|
416
|
+
version: string;
|
|
835
417
|
}
|
|
836
418
|
//# sourceMappingURL=shared.d.ts.map
|