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
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
3
|
-
import * as Shared from "../shared.js";
|
|
4
|
-
import * as SessionAPI from "./session.js";
|
|
5
|
-
import { Session, SessionCreateParams, SessionCreateResponse, SessionListParams, SessionListResponse, SessionResource, SessionRetrieveParams } from "./session.js";
|
|
6
|
-
import * as StepsAPI from "./steps.js";
|
|
7
|
-
import { StepRetrieveResponse, Steps } from "./steps.js";
|
|
8
|
-
import * as TurnAPI from "./turn.js";
|
|
9
|
-
import { AgentTurnResponseStreamChunk, Turn, TurnCreateParams, TurnCreateParamsNonStreaming, TurnCreateParamsStreaming, TurnResource, TurnResponseEvent, TurnResponseEventPayload, TurnResumeParams, TurnResumeParamsNonStreaming, TurnResumeParamsStreaming } from "./turn.js";
|
|
10
|
-
export declare class Agents extends APIResource {
|
|
11
|
-
session: SessionAPI.SessionResource;
|
|
12
|
-
steps: StepsAPI.Steps;
|
|
13
|
-
turn: TurnAPI.TurnResource;
|
|
14
|
-
/**
|
|
15
|
-
* Create an agent with the given configuration.
|
|
16
|
-
*/
|
|
17
|
-
create(body: AgentCreateParams, options?: Core.RequestOptions): Core.APIPromise<AgentCreateResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Describe an agent by its ID.
|
|
20
|
-
*/
|
|
21
|
-
retrieve(agentId: string, options?: Core.RequestOptions): Core.APIPromise<AgentRetrieveResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* List all agents.
|
|
24
|
-
*/
|
|
25
|
-
list(query?: AgentListParams, options?: Core.RequestOptions): Core.APIPromise<AgentListResponse>;
|
|
26
|
-
list(options?: Core.RequestOptions): Core.APIPromise<AgentListResponse>;
|
|
27
|
-
/**
|
|
28
|
-
* Delete an agent by its ID and its associated sessions and turns.
|
|
29
|
-
*/
|
|
30
|
-
delete(agentId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* An inference step in an agent turn.
|
|
34
|
-
*/
|
|
35
|
-
export interface InferenceStep {
|
|
36
|
-
/**
|
|
37
|
-
* The response from the LLM.
|
|
38
|
-
*/
|
|
39
|
-
model_response: Shared.CompletionMessage;
|
|
40
|
-
/**
|
|
41
|
-
* The ID of the step.
|
|
42
|
-
*/
|
|
43
|
-
step_id: string;
|
|
44
|
-
/**
|
|
45
|
-
* Type of the step in an agent turn.
|
|
46
|
-
*/
|
|
47
|
-
step_type: 'inference';
|
|
48
|
-
/**
|
|
49
|
-
* The ID of the turn.
|
|
50
|
-
*/
|
|
51
|
-
turn_id: string;
|
|
52
|
-
/**
|
|
53
|
-
* The time the step completed.
|
|
54
|
-
*/
|
|
55
|
-
completed_at?: string;
|
|
56
|
-
/**
|
|
57
|
-
* The time the step started.
|
|
58
|
-
*/
|
|
59
|
-
started_at?: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* A memory retrieval step in an agent turn.
|
|
63
|
-
*/
|
|
64
|
-
export interface MemoryRetrievalStep {
|
|
65
|
-
/**
|
|
66
|
-
* The context retrieved from the vector databases.
|
|
67
|
-
*/
|
|
68
|
-
inserted_context: Shared.InterleavedContent;
|
|
69
|
-
/**
|
|
70
|
-
* The ID of the step.
|
|
71
|
-
*/
|
|
72
|
-
step_id: string;
|
|
73
|
-
/**
|
|
74
|
-
* Type of the step in an agent turn.
|
|
75
|
-
*/
|
|
76
|
-
step_type: 'memory_retrieval';
|
|
77
|
-
/**
|
|
78
|
-
* The ID of the turn.
|
|
79
|
-
*/
|
|
80
|
-
turn_id: string;
|
|
81
|
-
/**
|
|
82
|
-
* The IDs of the vector databases to retrieve context from.
|
|
83
|
-
*/
|
|
84
|
-
vector_db_ids: string;
|
|
85
|
-
/**
|
|
86
|
-
* The time the step completed.
|
|
87
|
-
*/
|
|
88
|
-
completed_at?: string;
|
|
89
|
-
/**
|
|
90
|
-
* The time the step started.
|
|
91
|
-
*/
|
|
92
|
-
started_at?: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* A shield call step in an agent turn.
|
|
96
|
-
*/
|
|
97
|
-
export interface ShieldCallStep {
|
|
98
|
-
/**
|
|
99
|
-
* The ID of the step.
|
|
100
|
-
*/
|
|
101
|
-
step_id: string;
|
|
102
|
-
/**
|
|
103
|
-
* Type of the step in an agent turn.
|
|
104
|
-
*/
|
|
105
|
-
step_type: 'shield_call';
|
|
106
|
-
/**
|
|
107
|
-
* The ID of the turn.
|
|
108
|
-
*/
|
|
109
|
-
turn_id: string;
|
|
110
|
-
/**
|
|
111
|
-
* The time the step completed.
|
|
112
|
-
*/
|
|
113
|
-
completed_at?: string;
|
|
114
|
-
/**
|
|
115
|
-
* The time the step started.
|
|
116
|
-
*/
|
|
117
|
-
started_at?: string;
|
|
118
|
-
/**
|
|
119
|
-
* The violation from the shield call.
|
|
120
|
-
*/
|
|
121
|
-
violation?: Shared.SafetyViolation;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* A tool execution step in an agent turn.
|
|
125
|
-
*/
|
|
126
|
-
export interface ToolExecutionStep {
|
|
127
|
-
/**
|
|
128
|
-
* The ID of the step.
|
|
129
|
-
*/
|
|
130
|
-
step_id: string;
|
|
131
|
-
/**
|
|
132
|
-
* Type of the step in an agent turn.
|
|
133
|
-
*/
|
|
134
|
-
step_type: 'tool_execution';
|
|
135
|
-
/**
|
|
136
|
-
* The tool calls to execute.
|
|
137
|
-
*/
|
|
138
|
-
tool_calls: Array<Shared.ToolCall>;
|
|
139
|
-
/**
|
|
140
|
-
* The tool responses from the tool calls.
|
|
141
|
-
*/
|
|
142
|
-
tool_responses: Array<ToolResponse>;
|
|
143
|
-
/**
|
|
144
|
-
* The ID of the turn.
|
|
145
|
-
*/
|
|
146
|
-
turn_id: string;
|
|
147
|
-
/**
|
|
148
|
-
* The time the step completed.
|
|
149
|
-
*/
|
|
150
|
-
completed_at?: string;
|
|
151
|
-
/**
|
|
152
|
-
* The time the step started.
|
|
153
|
-
*/
|
|
154
|
-
started_at?: string;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Response from a tool invocation.
|
|
158
|
-
*/
|
|
159
|
-
export interface ToolResponse {
|
|
160
|
-
/**
|
|
161
|
-
* Unique identifier for the tool call this response is for
|
|
162
|
-
*/
|
|
163
|
-
call_id: string;
|
|
164
|
-
/**
|
|
165
|
-
* The response content from the tool
|
|
166
|
-
*/
|
|
167
|
-
content: Shared.InterleavedContent;
|
|
168
|
-
/**
|
|
169
|
-
* Name of the tool that was invoked
|
|
170
|
-
*/
|
|
171
|
-
tool_name: 'brave_search' | 'wolfram_alpha' | 'photogen' | 'code_interpreter' | (string & {});
|
|
172
|
-
/**
|
|
173
|
-
* (Optional) Additional metadata about the tool response
|
|
174
|
-
*/
|
|
175
|
-
metadata?: {
|
|
176
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Response returned when creating a new agent.
|
|
181
|
-
*/
|
|
182
|
-
export interface AgentCreateResponse {
|
|
183
|
-
/**
|
|
184
|
-
* Unique identifier for the created agent
|
|
185
|
-
*/
|
|
186
|
-
agent_id: string;
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* An agent instance with configuration and metadata.
|
|
190
|
-
*/
|
|
191
|
-
export interface AgentRetrieveResponse {
|
|
192
|
-
/**
|
|
193
|
-
* Configuration settings for the agent
|
|
194
|
-
*/
|
|
195
|
-
agent_config: Shared.AgentConfig;
|
|
196
|
-
/**
|
|
197
|
-
* Unique identifier for the agent
|
|
198
|
-
*/
|
|
199
|
-
agent_id: string;
|
|
200
|
-
/**
|
|
201
|
-
* Timestamp when the agent was created
|
|
202
|
-
*/
|
|
203
|
-
created_at: string;
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* A generic paginated response that follows a simple format.
|
|
207
|
-
*/
|
|
208
|
-
export interface AgentListResponse {
|
|
209
|
-
/**
|
|
210
|
-
* The list of items for the current page
|
|
211
|
-
*/
|
|
212
|
-
data: Array<{
|
|
213
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
214
|
-
}>;
|
|
215
|
-
/**
|
|
216
|
-
* Whether there are more items available after this set
|
|
217
|
-
*/
|
|
218
|
-
has_more: boolean;
|
|
219
|
-
/**
|
|
220
|
-
* The URL for accessing this list
|
|
221
|
-
*/
|
|
222
|
-
url?: string;
|
|
223
|
-
}
|
|
224
|
-
export interface AgentCreateParams {
|
|
225
|
-
/**
|
|
226
|
-
* The configuration for the agent.
|
|
227
|
-
*/
|
|
228
|
-
agent_config: Shared.AgentConfig;
|
|
229
|
-
}
|
|
230
|
-
export interface AgentListParams {
|
|
231
|
-
/**
|
|
232
|
-
* The number of agents to return.
|
|
233
|
-
*/
|
|
234
|
-
limit?: number;
|
|
235
|
-
/**
|
|
236
|
-
* The index to start the pagination from.
|
|
237
|
-
*/
|
|
238
|
-
start_index?: number;
|
|
239
|
-
}
|
|
240
|
-
export declare namespace Agents {
|
|
241
|
-
export { type InferenceStep as InferenceStep, type MemoryRetrievalStep as MemoryRetrievalStep, type ShieldCallStep as ShieldCallStep, type ToolExecutionStep as ToolExecutionStep, type ToolResponse as ToolResponse, type AgentCreateResponse as AgentCreateResponse, type AgentRetrieveResponse as AgentRetrieveResponse, type AgentListResponse as AgentListResponse, type AgentCreateParams as AgentCreateParams, type AgentListParams as AgentListParams, };
|
|
242
|
-
export { SessionResource as SessionResource, type Session as Session, type SessionCreateResponse as SessionCreateResponse, type SessionListResponse as SessionListResponse, type SessionCreateParams as SessionCreateParams, type SessionRetrieveParams as SessionRetrieveParams, type SessionListParams as SessionListParams, };
|
|
243
|
-
export { Steps as Steps, type StepRetrieveResponse as StepRetrieveResponse };
|
|
244
|
-
export { TurnResource as TurnResource, type AgentTurnResponseStreamChunk as AgentTurnResponseStreamChunk, type Turn as Turn, type TurnResponseEvent as TurnResponseEvent, type TurnResponseEventPayload as TurnResponseEventPayload, type TurnCreateParams as TurnCreateParams, type TurnCreateParamsNonStreaming as TurnCreateParamsNonStreaming, type TurnCreateParamsStreaming as TurnCreateParamsStreaming, type TurnResumeParams as TurnResumeParams, type TurnResumeParamsNonStreaming as TurnResumeParamsNonStreaming, type TurnResumeParamsStreaming as TurnResumeParamsStreaming, };
|
|
245
|
-
}
|
|
246
|
-
//# sourceMappingURL=agents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EACL,OAAO,EACP,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACtB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,E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AE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,OAAO,EAAE,EAAE;YAClD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA3CD,wBA2CC;AAsPD,MAAM,CAAC,eAAe,GAAG,yBAAe,CAAC;AACzC,MAAM,CAAC,KAAK,GAAG,aAAK,CAAC;AACrB,MAAM,CAAC,YAAY,GAAG,mBAAY,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
// All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
-
// the root directory of this source tree.
|
|
6
|
-
import { APIResource } from "../../resource.mjs";
|
|
7
|
-
import { isRequestOptions } from "../../core.mjs";
|
|
8
|
-
import * as SessionAPI from "./session.mjs";
|
|
9
|
-
import { SessionResource, } from "./session.mjs";
|
|
10
|
-
import * as StepsAPI from "./steps.mjs";
|
|
11
|
-
import { Steps } from "./steps.mjs";
|
|
12
|
-
import * as TurnAPI from "./turn.mjs";
|
|
13
|
-
import { TurnResource, } from "./turn.mjs";
|
|
14
|
-
export class Agents extends APIResource {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.session = new SessionAPI.SessionResource(this._client);
|
|
18
|
-
this.steps = new StepsAPI.Steps(this._client);
|
|
19
|
-
this.turn = new TurnAPI.TurnResource(this._client);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Create an agent with the given configuration.
|
|
23
|
-
*/
|
|
24
|
-
create(body, options) {
|
|
25
|
-
return this._client.post('/v1/agents', { body, ...options });
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Describe an agent by its ID.
|
|
29
|
-
*/
|
|
30
|
-
retrieve(agentId, options) {
|
|
31
|
-
return this._client.get(`/v1/agents/${agentId}`, options);
|
|
32
|
-
}
|
|
33
|
-
list(query = {}, options) {
|
|
34
|
-
if (isRequestOptions(query)) {
|
|
35
|
-
return this.list({}, query);
|
|
36
|
-
}
|
|
37
|
-
return this._client.get('/v1/agents', { query, ...options });
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Delete an agent by its ID and its associated sessions and turns.
|
|
41
|
-
*/
|
|
42
|
-
delete(agentId, options) {
|
|
43
|
-
return this._client.delete(`/v1/agents/${agentId}`, {
|
|
44
|
-
...options,
|
|
45
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
Agents.SessionResource = SessionResource;
|
|
50
|
-
Agents.Steps = Steps;
|
|
51
|
-
Agents.TurnResource = TurnResource;
|
|
52
|
-
//# sourceMappingURL=agents.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;OAInC,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,KAAK,UAAU;OACf,EAML,eAAe,GAEhB;OACM,KAAK,QAAQ;OACb,EAAwB,KAAK,EAAE;OAC/B,KAAK,OAAO;OACZ,EAML,YAAY,GAMb;AAED,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,YAAO,GAA+B,IAAI,UAAU,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnF,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,SAAI,GAAyB,IAAI,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwCtE,CAAC;IAtCC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAOD,IAAI,CACF,QAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,OAAO,EAAE,EAAE;YAClD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAsPD,MAAM,CAAC,eAAe,GAAG,eAAe,CAAC;AACzC,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;AACrB,MAAM,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { Agents, type InferenceStep, type MemoryRetrievalStep, type ShieldCallStep, type ToolExecutionStep, type ToolResponse, type AgentCreateResponse, type AgentRetrieveResponse, type AgentListResponse, type AgentCreateParams, type AgentListParams, } from "./agents.js";
|
|
2
|
-
export { SessionResource, type Session, type SessionCreateResponse, type SessionListResponse, type SessionCreateParams, type SessionRetrieveParams, type SessionListParams, } from "./session.js";
|
|
3
|
-
export { Steps, type StepRetrieveResponse } from "./steps.js";
|
|
4
|
-
export { TurnResource, type AgentTurnResponseStreamChunk, type Turn, type TurnResponseEvent, type TurnResponseEventPayload, type TurnCreateParams, type TurnCreateParamsNonStreaming, type TurnCreateParamsStreaming, type TurnResumeParams, type TurnResumeParamsNonStreaming, type TurnResumeParamsStreaming, } from "./turn.js";
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,eAAe,EACf,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,GACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,GAC/B,MAAM,QAAQ,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
// All rights reserved.
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
-
// the root directory of this source tree.
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.TurnResource = exports.Steps = exports.SessionResource = exports.Agents = void 0;
|
|
9
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
10
|
-
var agents_1 = require("./agents.js");
|
|
11
|
-
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
12
|
-
var session_1 = require("./session.js");
|
|
13
|
-
Object.defineProperty(exports, "SessionResource", { enumerable: true, get: function () { return session_1.SessionResource; } });
|
|
14
|
-
var steps_1 = require("./steps.js");
|
|
15
|
-
Object.defineProperty(exports, "Steps", { enumerable: true, get: function () { return steps_1.Steps; } });
|
|
16
|
-
var turn_1 = require("./turn.js");
|
|
17
|
-
Object.defineProperty(exports, "TurnResource", { enumerable: true, get: function () { return turn_1.TurnResource; } });
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;;;AAE1C,sFAAsF;AAEtF,sCAYkB;AAXhB,gGAAA,MAAM,OAAA;AAYR,wCAQmB;AAPjB,0GAAA,eAAe,OAAA;AAQjB,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,kCAYgB;AAXd,oGAAA,YAAY,OAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
// All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
-
// the root directory of this source tree.
|
|
6
|
-
export { Agents, } from "./agents.mjs";
|
|
7
|
-
export { SessionResource, } from "./session.mjs";
|
|
8
|
-
export { Steps } from "./steps.mjs";
|
|
9
|
-
export { TurnResource, } from "./turn.mjs";
|
|
10
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;OAInC,EACL,MAAM,GAWP;OACM,EACL,eAAe,GAOhB;OACM,EAAE,KAAK,EAA6B;OACpC,EACL,YAAY,GAWb"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
3
|
-
import * as TurnAPI from "./turn.js";
|
|
4
|
-
export declare class SessionResource extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new session for an agent.
|
|
7
|
-
*/
|
|
8
|
-
create(agentId: string, body: SessionCreateParams, options?: Core.RequestOptions): Core.APIPromise<SessionCreateResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Retrieve an agent session by its ID.
|
|
11
|
-
*/
|
|
12
|
-
retrieve(agentId: string, sessionId: string, query?: SessionRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<Session>;
|
|
13
|
-
retrieve(agentId: string, sessionId: string, options?: Core.RequestOptions): Core.APIPromise<Session>;
|
|
14
|
-
/**
|
|
15
|
-
* List all session(s) of a given agent.
|
|
16
|
-
*/
|
|
17
|
-
list(agentId: string, query?: SessionListParams, options?: Core.RequestOptions): Core.APIPromise<SessionListResponse>;
|
|
18
|
-
list(agentId: string, options?: Core.RequestOptions): Core.APIPromise<SessionListResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Delete an agent session by its ID and its associated turns.
|
|
21
|
-
*/
|
|
22
|
-
delete(agentId: string, sessionId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* A single session of an interaction with an Agentic System.
|
|
26
|
-
*/
|
|
27
|
-
export interface Session {
|
|
28
|
-
/**
|
|
29
|
-
* Unique identifier for the conversation session
|
|
30
|
-
*/
|
|
31
|
-
session_id: string;
|
|
32
|
-
/**
|
|
33
|
-
* Human-readable name for the session
|
|
34
|
-
*/
|
|
35
|
-
session_name: string;
|
|
36
|
-
/**
|
|
37
|
-
* Timestamp when the session was created
|
|
38
|
-
*/
|
|
39
|
-
started_at: string;
|
|
40
|
-
/**
|
|
41
|
-
* List of all turns that have occurred in this session
|
|
42
|
-
*/
|
|
43
|
-
turns: Array<TurnAPI.Turn>;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Response returned when creating a new agent session.
|
|
47
|
-
*/
|
|
48
|
-
export interface SessionCreateResponse {
|
|
49
|
-
/**
|
|
50
|
-
* Unique identifier for the created session
|
|
51
|
-
*/
|
|
52
|
-
session_id: string;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* A generic paginated response that follows a simple format.
|
|
56
|
-
*/
|
|
57
|
-
export interface SessionListResponse {
|
|
58
|
-
/**
|
|
59
|
-
* The list of items for the current page
|
|
60
|
-
*/
|
|
61
|
-
data: Array<{
|
|
62
|
-
[key: string]: boolean | number | string | Array<unknown> | unknown | null;
|
|
63
|
-
}>;
|
|
64
|
-
/**
|
|
65
|
-
* Whether there are more items available after this set
|
|
66
|
-
*/
|
|
67
|
-
has_more: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* The URL for accessing this list
|
|
70
|
-
*/
|
|
71
|
-
url?: string;
|
|
72
|
-
}
|
|
73
|
-
export interface SessionCreateParams {
|
|
74
|
-
/**
|
|
75
|
-
* The name of the session to create.
|
|
76
|
-
*/
|
|
77
|
-
session_name: string;
|
|
78
|
-
}
|
|
79
|
-
export interface SessionRetrieveParams {
|
|
80
|
-
/**
|
|
81
|
-
* (Optional) List of turn IDs to filter the session by.
|
|
82
|
-
*/
|
|
83
|
-
turn_ids?: Array<string>;
|
|
84
|
-
}
|
|
85
|
-
export interface SessionListParams {
|
|
86
|
-
/**
|
|
87
|
-
* The number of sessions to return.
|
|
88
|
-
*/
|
|
89
|
-
limit?: number;
|
|
90
|
-
/**
|
|
91
|
-
* The index to start the pagination from.
|
|
92
|
-
*/
|
|
93
|
-
start_index?: number;
|
|
94
|
-
}
|
|
95
|
-
export declare namespace SessionResource {
|
|
96
|
-
export { type Session as Session, type SessionCreateResponse as SessionCreateResponse, type SessionListResponse as SessionListResponse, type SessionCreateParams as SessionCreateParams, type SessionRetrieveParams as SessionRetrieveParams, type SessionListParams as SessionListParams, };
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=session.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/resources/agents/session.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAElC,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;OAEG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAIzC;;OAEG;IACH,QAAQ,CACN,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE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EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
// All rights reserved.
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
-
// the root directory of this source tree.
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.SessionResource = void 0;
|
|
9
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
10
|
-
const resource_1 = require("../../resource.js");
|
|
11
|
-
const core_1 = require("../../core.js");
|
|
12
|
-
class SessionResource extends resource_1.APIResource {
|
|
13
|
-
/**
|
|
14
|
-
* Create a new session for an agent.
|
|
15
|
-
*/
|
|
16
|
-
create(agentId, body, options) {
|
|
17
|
-
return this._client.post(`/v1/agents/${agentId}/session`, { body, ...options });
|
|
18
|
-
}
|
|
19
|
-
retrieve(agentId, sessionId, query = {}, options) {
|
|
20
|
-
if ((0, core_1.isRequestOptions)(query)) {
|
|
21
|
-
return this.retrieve(agentId, sessionId, {}, query);
|
|
22
|
-
}
|
|
23
|
-
return this._client.get(`/v1/agents/${agentId}/session/${sessionId}`, { query, ...options });
|
|
24
|
-
}
|
|
25
|
-
list(agentId, query = {}, options) {
|
|
26
|
-
if ((0, core_1.isRequestOptions)(query)) {
|
|
27
|
-
return this.list(agentId, {}, query);
|
|
28
|
-
}
|
|
29
|
-
return this._client.get(`/v1/agents/${agentId}/sessions`, { query, ...options });
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Delete an agent session by its ID and its associated turns.
|
|
33
|
-
*/
|
|
34
|
-
delete(agentId, sessionId, options) {
|
|
35
|
-
return this._client.delete(`/v1/agents/${agentId}/session/${sessionId}`, {
|
|
36
|
-
...options,
|
|
37
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.SessionResource = SessionResource;
|
|
42
|
-
//# sourceMappingURL=session.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/resources/agents/session.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;;;AAE1C,sFAAsF;AAEtF,gDAA6C;AAC7C,wCAA8C;AAI9C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,IAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,OAAO,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAYD,QAAQ,CACN,OAAe,EACf,SAAiB,EACjB,QAAqD,EAAE,EACvD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACrD;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,YAAY,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAWD,IAAI,CACF,OAAe,EACf,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACtC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,SAAiB,EAAE,OAA6B;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,OAAO,YAAY,SAAS,EAAE,EAAE;YACvE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA/DD,0CA+DC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
// All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
-
// the root directory of this source tree.
|
|
6
|
-
import { APIResource } from "../../resource.mjs";
|
|
7
|
-
import { isRequestOptions } from "../../core.mjs";
|
|
8
|
-
export class SessionResource extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create a new session for an agent.
|
|
11
|
-
*/
|
|
12
|
-
create(agentId, body, options) {
|
|
13
|
-
return this._client.post(`/v1/agents/${agentId}/session`, { body, ...options });
|
|
14
|
-
}
|
|
15
|
-
retrieve(agentId, sessionId, query = {}, options) {
|
|
16
|
-
if (isRequestOptions(query)) {
|
|
17
|
-
return this.retrieve(agentId, sessionId, {}, query);
|
|
18
|
-
}
|
|
19
|
-
return this._client.get(`/v1/agents/${agentId}/session/${sessionId}`, { query, ...options });
|
|
20
|
-
}
|
|
21
|
-
list(agentId, query = {}, options) {
|
|
22
|
-
if (isRequestOptions(query)) {
|
|
23
|
-
return this.list(agentId, {}, query);
|
|
24
|
-
}
|
|
25
|
-
return this._client.get(`/v1/agents/${agentId}/sessions`, { query, ...options });
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Delete an agent session by its ID and its associated turns.
|
|
29
|
-
*/
|
|
30
|
-
delete(agentId, sessionId, options) {
|
|
31
|
-
return this._client.delete(`/v1/agents/${agentId}/session/${sessionId}`, {
|
|
32
|
-
...options,
|
|
33
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=session.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.mjs","sourceRoot":"","sources":["../../src/resources/agents/session.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;OAInC,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAI3B,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,IAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,OAAO,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAYD,QAAQ,CACN,OAAe,EACf,SAAiB,EACjB,QAAqD,EAAE,EACvD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACrD;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,YAAY,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAWD,IAAI,CACF,OAAe,EACf,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACtC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,SAAiB,EAAE,OAA6B;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,OAAO,YAAY,SAAS,EAAE,EAAE;YACvE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
3
|
-
import * as AgentsAPI from "./agents.js";
|
|
4
|
-
export declare class Steps extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Retrieve an agent step by its ID.
|
|
7
|
-
*/
|
|
8
|
-
retrieve(agentId: string, sessionId: string, turnId: string, stepId: string, options?: Core.RequestOptions): Core.APIPromise<StepRetrieveResponse>;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Response containing details of a specific agent step.
|
|
12
|
-
*/
|
|
13
|
-
export interface StepRetrieveResponse {
|
|
14
|
-
/**
|
|
15
|
-
* The complete step data and execution details
|
|
16
|
-
*/
|
|
17
|
-
step: AgentsAPI.InferenceStep | AgentsAPI.ToolExecutionStep | AgentsAPI.ShieldCallStep | AgentsAPI.MemoryRetrievalStep;
|
|
18
|
-
}
|
|
19
|
-
export declare namespace Steps {
|
|
20
|
-
export { type StepRetrieveResponse as StepRetrieveResponse };
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=steps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../src/resources/agents/steps.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AAEtC,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CACN,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAMzC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EACA,SAAS,CAAC,aAAa,GACvB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,cAAc,GACxB,SAAS,CAAC,mBAAmB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC9D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"steps.js","sourceRoot":"","sources":["../../src/resources/agents/steps.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;;;AAE1C,sFAAsF;AAEtF,gDAA6C;AAI7C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,QAAQ,CACN,OAAe,EACf,SAAiB,EACjB,MAAc,EACd,MAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,cAAc,OAAO,YAAY,SAAS,SAAS,MAAM,SAAS,MAAM,EAAE,EAC1E,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAhBD,sBAgBC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
// All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
-
// the root directory of this source tree.
|
|
6
|
-
import { APIResource } from "../../resource.mjs";
|
|
7
|
-
export class Steps extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Retrieve an agent step by its ID.
|
|
10
|
-
*/
|
|
11
|
-
retrieve(agentId, sessionId, turnId, stepId, options) {
|
|
12
|
-
return this._client.get(`/v1/agents/${agentId}/session/${sessionId}/turn/${turnId}/step/${stepId}`, options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=steps.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"steps.mjs","sourceRoot":"","sources":["../../src/resources/agents/steps.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;OAInC,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CACN,OAAe,EACf,SAAiB,EACjB,MAAc,EACd,MAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,cAAc,OAAO,YAAY,SAAS,SAAS,MAAM,SAAS,MAAM,EAAE,EAC1E,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
|