llama-stack-client 0.0.35 → 0.1.0
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/LICENSE +22 -201
- package/README.md +60 -26
- package/core.d.ts +7 -7
- package/core.d.ts.map +1 -1
- package/core.js +35 -16
- package/core.js.map +1 -1
- package/core.mjs +32 -14
- package/core.mjs.map +1 -1
- package/error.d.ts +18 -24
- package/error.d.ts.map +1 -1
- package/error.js +1 -31
- package/error.js.map +1 -1
- package/error.mjs +1 -31
- package/error.mjs.map +1 -1
- package/index.d.mts +100 -121
- package/index.d.ts +100 -121
- package/index.d.ts.map +1 -1
- package/index.js +90 -44
- package/index.js.map +1 -1
- package/index.mjs +74 -43
- package/index.mjs.map +1 -1
- package/internal/decoders/jsonl.d.ts +12 -0
- package/internal/decoders/jsonl.d.ts.map +1 -0
- package/internal/decoders/jsonl.js +35 -0
- package/internal/decoders/jsonl.js.map +1 -0
- package/internal/decoders/jsonl.mjs +31 -0
- package/internal/decoders/jsonl.mjs.map +1 -0
- package/internal/decoders/line.d.ts +20 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +88 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +84 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/qs/formats.d.ts +6 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +11 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +8 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +280 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +276 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.ts +14 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +229 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/stream-utils.d.ts +8 -0
- package/internal/stream-utils.d.ts.map +1 -0
- package/internal/stream-utils.js +39 -0
- package/internal/stream-utils.js.map +1 -0
- package/internal/stream-utils.mjs +35 -0
- package/internal/stream-utils.mjs.map +1 -0
- package/package.json +8 -6
- package/resources/agents/agents.d.ts +22 -187
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +15 -32
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +15 -32
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/index.d.ts +4 -4
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +7 -7
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +3 -3
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/session.d.ts +28 -0
- package/resources/agents/session.d.ts.map +1 -0
- package/resources/agents/session.js +25 -0
- package/resources/agents/session.js.map +1 -0
- package/resources/agents/session.mjs +21 -0
- package/resources/agents/session.mjs.map +1 -0
- package/resources/agents/steps.d.ts +3 -24
- package/resources/agents/steps.d.ts.map +1 -1
- package/resources/agents/steps.js +2 -14
- package/resources/agents/steps.js.map +1 -1
- package/resources/agents/steps.mjs +2 -14
- package/resources/agents/steps.mjs.map +1 -1
- package/resources/agents/turn.d.ts +169 -0
- package/resources/agents/turn.d.ts.map +1 -0
- package/resources/agents/turn.js +19 -0
- package/resources/agents/turn.js.map +1 -0
- package/resources/agents/turn.mjs +15 -0
- package/resources/agents/turn.mjs.map +1 -0
- package/resources/batch-inference.d.ts +17 -64
- package/resources/batch-inference.d.ts.map +1 -1
- package/resources/batch-inference.js +4 -26
- package/resources/batch-inference.js.map +1 -1
- package/resources/batch-inference.mjs +4 -26
- package/resources/batch-inference.mjs.map +1 -1
- package/resources/datasetio.d.ts +25 -0
- package/resources/datasetio.d.ts.map +1 -0
- package/resources/datasetio.js +19 -0
- package/resources/datasetio.js.map +1 -0
- package/resources/datasetio.mjs +15 -0
- package/resources/datasetio.mjs.map +1 -0
- package/resources/datasets.d.ts +45 -46
- package/resources/datasets.d.ts.map +1 -1
- package/resources/datasets.js +11 -35
- package/resources/datasets.js.map +1 -1
- package/resources/datasets.mjs +11 -35
- package/resources/datasets.mjs.map +1 -1
- package/resources/eval/eval.d.ts +59 -0
- package/resources/eval/eval.d.ts.map +1 -0
- package/resources/{inference/embeddings.js → eval/eval.js} +16 -20
- package/resources/eval/eval.js.map +1 -0
- package/resources/eval/eval.mjs +18 -0
- package/resources/eval/eval.mjs.map +1 -0
- package/resources/eval/index.d.ts +3 -0
- package/resources/eval/index.d.ts.map +1 -0
- package/resources/eval/index.js +9 -0
- package/resources/eval/index.js.map +1 -0
- package/resources/eval/index.mjs +4 -0
- package/resources/eval/index.mjs.map +1 -0
- package/resources/eval/jobs.d.ts +13 -0
- package/resources/eval/jobs.d.ts.map +1 -0
- package/resources/eval/jobs.js +21 -0
- package/resources/eval/jobs.js.map +1 -0
- package/resources/eval/jobs.mjs +17 -0
- package/resources/eval/jobs.mjs.map +1 -0
- package/resources/eval-tasks.d.ts +32 -0
- package/resources/eval-tasks.d.ts.map +1 -0
- package/resources/eval-tasks.js +22 -0
- package/resources/eval-tasks.js.map +1 -0
- package/resources/eval-tasks.mjs +18 -0
- package/resources/eval-tasks.mjs.map +1 -0
- package/resources/index.d.ts +23 -15
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +33 -17
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +19 -11
- package/resources/index.mjs.map +1 -1
- package/resources/inference.d.ts +241 -0
- package/resources/inference.d.ts.map +1 -0
- package/resources/inference.js +29 -0
- package/resources/inference.js.map +1 -0
- package/resources/inference.mjs +25 -0
- package/resources/inference.mjs.map +1 -0
- package/resources/inspect.d.ts +26 -0
- package/resources/inspect.d.ts.map +1 -0
- package/resources/inspect.js +15 -0
- package/resources/inspect.js.map +1 -0
- package/resources/inspect.mjs +11 -0
- package/resources/inspect.mjs.map +1 -0
- package/resources/models.d.ts +21 -36
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +11 -27
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +11 -27
- package/resources/models.mjs.map +1 -1
- package/resources/post-training/index.d.ts +2 -2
- package/resources/post-training/index.d.ts.map +1 -1
- package/resources/post-training/index.js +3 -3
- package/resources/post-training/index.js.map +1 -1
- package/resources/post-training/index.mjs +1 -1
- package/resources/post-training/index.mjs.map +1 -1
- package/resources/post-training/job.d.ts +40 -0
- package/resources/post-training/job.d.ts.map +1 -0
- package/resources/post-training/job.js +25 -0
- package/resources/post-training/job.js.map +1 -0
- package/resources/post-training/job.mjs +21 -0
- package/resources/post-training/job.mjs.map +1 -0
- package/resources/post-training/post-training.d.ts +95 -142
- package/resources/post-training/post-training.d.ts.map +1 -1
- package/resources/post-training/post-training.js +8 -29
- package/resources/post-training/post-training.js.map +1 -1
- package/resources/post-training/post-training.mjs +8 -29
- package/resources/post-training/post-training.mjs.map +1 -1
- package/resources/providers.d.ts +14 -0
- package/resources/providers.d.ts.map +1 -0
- package/resources/providers.js +12 -0
- package/resources/providers.js.map +1 -0
- package/resources/providers.mjs +8 -0
- package/resources/providers.mjs.map +1 -0
- package/resources/routes.d.ts +14 -0
- package/resources/routes.d.ts.map +1 -0
- package/resources/routes.js +12 -0
- package/resources/routes.js.map +1 -0
- package/resources/routes.mjs +8 -0
- package/resources/routes.mjs.map +1 -0
- package/resources/safety.d.ts +6 -29
- package/resources/safety.d.ts.map +1 -1
- package/resources/safety.js +2 -14
- package/resources/safety.js.map +1 -1
- package/resources/safety.mjs +2 -14
- package/resources/safety.mjs.map +1 -1
- package/resources/scoring-functions.d.ts +53 -0
- package/resources/scoring-functions.d.ts.map +1 -0
- package/resources/scoring-functions.js +22 -0
- package/resources/scoring-functions.js.map +1 -0
- package/resources/scoring-functions.mjs +18 -0
- package/resources/scoring-functions.mjs.map +1 -0
- package/resources/scoring.d.ts +28 -0
- package/resources/scoring.d.ts.map +1 -0
- package/resources/scoring.js +15 -0
- package/resources/scoring.js.map +1 -0
- package/resources/scoring.mjs +11 -0
- package/resources/scoring.mjs.map +1 -0
- package/resources/shared.d.ts +338 -14
- package/resources/shared.d.ts.map +1 -1
- package/resources/shields.d.ts +18 -32
- package/resources/shields.d.ts.map +1 -1
- package/resources/shields.js +7 -29
- package/resources/shields.js.map +1 -1
- package/resources/shields.mjs +7 -29
- package/resources/shields.mjs.map +1 -1
- package/resources/synthetic-data-generation.d.ts +7 -24
- package/resources/synthetic-data-generation.d.ts.map +1 -1
- package/resources/synthetic-data-generation.js +5 -17
- package/resources/synthetic-data-generation.js.map +1 -1
- package/resources/synthetic-data-generation.mjs +3 -15
- package/resources/synthetic-data-generation.mjs.map +1 -1
- package/resources/telemetry.d.ts +95 -35
- package/resources/telemetry.d.ts.map +1 -1
- package/resources/telemetry.js +29 -22
- package/resources/telemetry.js.map +1 -1
- package/resources/telemetry.mjs +29 -22
- package/resources/telemetry.mjs.map +1 -1
- package/resources/tool-runtime/index.d.ts +3 -0
- package/resources/tool-runtime/index.d.ts.map +1 -0
- package/resources/tool-runtime/index.js +9 -0
- package/resources/tool-runtime/index.js.map +1 -0
- package/resources/tool-runtime/index.mjs +4 -0
- package/resources/tool-runtime/index.mjs.map +1 -0
- package/resources/tool-runtime/rag-tool.d.ts +27 -0
- package/resources/tool-runtime/rag-tool.d.ts.map +1 -0
- package/resources/tool-runtime/rag-tool.js +25 -0
- package/resources/tool-runtime/rag-tool.js.map +1 -0
- package/resources/tool-runtime/rag-tool.mjs +21 -0
- package/resources/tool-runtime/rag-tool.mjs.map +1 -0
- package/resources/tool-runtime/tool-runtime.d.ts +48 -0
- package/resources/tool-runtime/tool-runtime.d.ts.map +1 -0
- package/resources/{evaluate/evaluate.js → tool-runtime/tool-runtime.js} +29 -18
- package/resources/tool-runtime/tool-runtime.js.map +1 -0
- package/resources/tool-runtime/tool-runtime.mjs +33 -0
- package/resources/tool-runtime/tool-runtime.mjs.map +1 -0
- package/resources/toolgroups.d.ts +40 -0
- package/resources/toolgroups.d.ts.map +1 -0
- package/resources/toolgroups.js +37 -0
- package/resources/toolgroups.js.map +1 -0
- package/resources/toolgroups.mjs +33 -0
- package/resources/toolgroups.mjs.map +1 -0
- package/resources/tools.d.ts +41 -0
- package/resources/tools.d.ts.map +1 -0
- package/resources/tools.js +19 -0
- package/resources/tools.js.map +1 -0
- package/resources/tools.mjs +15 -0
- package/resources/tools.mjs.map +1 -0
- package/resources/vector-dbs.d.ts +59 -0
- package/resources/vector-dbs.d.ts.map +1 -0
- package/resources/vector-dbs.js +24 -0
- package/resources/vector-dbs.js.map +1 -0
- package/resources/vector-dbs.mjs +20 -0
- package/resources/vector-dbs.mjs.map +1 -0
- package/resources/vector-io.d.ts +37 -0
- package/resources/vector-io.d.ts.map +1 -0
- package/resources/vector-io.js +19 -0
- package/resources/vector-io.js.map +1 -0
- package/resources/vector-io.mjs +15 -0
- package/resources/vector-io.mjs.map +1 -0
- package/src/core.ts +46 -24
- package/src/error.ts +25 -41
- package/src/index.ts +437 -155
- package/src/internal/decoders/jsonl.ts +41 -0
- package/src/internal/decoders/line.ts +114 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +9 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +388 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/stream-utils.ts +32 -0
- package/src/resources/agents/agents.ts +72 -299
- package/src/resources/agents/index.ts +24 -27
- package/src/resources/agents/session.ts +73 -0
- package/src/resources/agents/steps.ts +14 -40
- package/src/resources/agents/turn.ts +292 -0
- package/src/resources/batch-inference.ts +30 -95
- package/src/resources/datasetio.ts +53 -0
- package/src/resources/datasets.ts +87 -81
- package/src/resources/eval/eval.ts +104 -0
- package/src/resources/eval/index.ts +12 -0
- package/src/resources/eval/jobs.ts +36 -0
- package/src/resources/eval-tasks.ts +69 -0
- package/src/resources/index.ts +141 -65
- package/src/resources/inference.ts +346 -0
- package/src/resources/inspect.ts +47 -0
- package/src/resources/models.ts +46 -66
- package/src/resources/post-training/index.ts +14 -14
- package/src/resources/post-training/job.ts +84 -0
- package/src/resources/post-training/post-training.ts +151 -182
- package/src/resources/providers.ts +26 -0
- package/src/resources/routes.ts +23 -0
- package/src/resources/safety.ts +8 -47
- package/src/resources/scoring-functions.ts +108 -0
- package/src/resources/scoring.ts +52 -0
- package/src/resources/shared.ts +462 -14
- package/src/resources/shields.ts +37 -64
- package/src/resources/synthetic-data-generation.ts +13 -40
- package/src/resources/telemetry.ts +229 -65
- package/src/resources/tool-runtime/index.ts +10 -0
- package/src/resources/tool-runtime/rag-tool.ts +45 -0
- package/src/resources/tool-runtime/tool-runtime.ts +106 -0
- package/src/resources/toolgroups.ts +80 -0
- package/src/resources/tools.ts +81 -0
- package/src/resources/vector-dbs.ts +121 -0
- package/src/resources/vector-io.ts +65 -0
- package/src/streaming.ts +6 -148
- package/src/version.ts +1 -1
- package/streaming.d.ts +0 -7
- package/streaming.d.ts.map +1 -1
- package/streaming.js +8 -123
- package/streaming.js.map +1 -1
- package/streaming.mjs +4 -118
- package/streaming.mjs.map +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/sessions.d.ts +0 -76
- package/resources/agents/sessions.d.ts.map +0 -1
- package/resources/agents/sessions.js +0 -52
- package/resources/agents/sessions.js.map +0 -1
- package/resources/agents/sessions.mjs +0 -48
- package/resources/agents/sessions.mjs.map +0 -1
- package/resources/agents/turns.d.ts +0 -133
- package/resources/agents/turns.d.ts.map +0 -1
- package/resources/agents/turns.js +0 -38
- package/resources/agents/turns.js.map +0 -1
- package/resources/agents/turns.mjs +0 -34
- package/resources/agents/turns.mjs.map +0 -1
- package/resources/evaluate/evaluate.d.ts +0 -29
- package/resources/evaluate/evaluate.d.ts.map +0 -1
- package/resources/evaluate/evaluate.js.map +0 -1
- package/resources/evaluate/evaluate.mjs +0 -22
- package/resources/evaluate/evaluate.mjs.map +0 -1
- package/resources/evaluate/index.d.ts +0 -6
- package/resources/evaluate/index.d.ts.map +0 -1
- package/resources/evaluate/index.js +0 -15
- package/resources/evaluate/index.js.map +0 -1
- package/resources/evaluate/index.mjs +0 -7
- package/resources/evaluate/index.mjs.map +0 -1
- package/resources/evaluate/jobs/artifacts.d.ts +0 -22
- package/resources/evaluate/jobs/artifacts.d.ts.map +0 -1
- package/resources/evaluate/jobs/artifacts.js +0 -24
- package/resources/evaluate/jobs/artifacts.js.map +0 -1
- package/resources/evaluate/jobs/artifacts.mjs +0 -20
- package/resources/evaluate/jobs/artifacts.mjs.map +0 -1
- package/resources/evaluate/jobs/index.d.ts +0 -5
- package/resources/evaluate/jobs/index.d.ts.map +0 -1
- package/resources/evaluate/jobs/index.js +0 -13
- package/resources/evaluate/jobs/index.js.map +0 -1
- package/resources/evaluate/jobs/index.mjs +0 -6
- package/resources/evaluate/jobs/index.mjs.map +0 -1
- package/resources/evaluate/jobs/jobs.d.ts +0 -56
- package/resources/evaluate/jobs/jobs.d.ts.map +0 -1
- package/resources/evaluate/jobs/jobs.js +0 -76
- package/resources/evaluate/jobs/jobs.js.map +0 -1
- package/resources/evaluate/jobs/jobs.mjs +0 -49
- package/resources/evaluate/jobs/jobs.mjs.map +0 -1
- package/resources/evaluate/jobs/logs.d.ts +0 -22
- package/resources/evaluate/jobs/logs.d.ts.map +0 -1
- package/resources/evaluate/jobs/logs.js +0 -24
- package/resources/evaluate/jobs/logs.js.map +0 -1
- package/resources/evaluate/jobs/logs.mjs +0 -20
- package/resources/evaluate/jobs/logs.mjs.map +0 -1
- package/resources/evaluate/jobs/status.d.ts +0 -22
- package/resources/evaluate/jobs/status.d.ts.map +0 -1
- package/resources/evaluate/jobs/status.js +0 -24
- package/resources/evaluate/jobs/status.js.map +0 -1
- package/resources/evaluate/jobs/status.mjs +0 -20
- package/resources/evaluate/jobs/status.mjs.map +0 -1
- package/resources/evaluate/question-answering.d.ts +0 -22
- package/resources/evaluate/question-answering.d.ts.map +0 -1
- package/resources/evaluate/question-answering.js +0 -24
- package/resources/evaluate/question-answering.js.map +0 -1
- package/resources/evaluate/question-answering.mjs +0 -20
- package/resources/evaluate/question-answering.mjs.map +0 -1
- package/resources/evaluate/summarization.d.ts +0 -4
- package/resources/evaluate/summarization.d.ts.map +0 -1
- package/resources/evaluate/summarization.js +0 -9
- package/resources/evaluate/summarization.js.map +0 -1
- package/resources/evaluate/summarization.mjs +0 -5
- package/resources/evaluate/summarization.mjs.map +0 -1
- package/resources/evaluate/text-generation.d.ts +0 -4
- package/resources/evaluate/text-generation.d.ts.map +0 -1
- package/resources/evaluate/text-generation.js +0 -9
- package/resources/evaluate/text-generation.js.map +0 -1
- package/resources/evaluate/text-generation.mjs +0 -5
- package/resources/evaluate/text-generation.mjs.map +0 -1
- package/resources/evaluations.d.ts +0 -35
- package/resources/evaluations.d.ts.map +0 -1
- package/resources/evaluations.js +0 -37
- package/resources/evaluations.js.map +0 -1
- package/resources/evaluations.mjs +0 -33
- package/resources/evaluations.mjs.map +0 -1
- package/resources/inference/embeddings.d.ts +0 -29
- package/resources/inference/embeddings.d.ts.map +0 -1
- package/resources/inference/embeddings.js.map +0 -1
- package/resources/inference/embeddings.mjs +0 -22
- package/resources/inference/embeddings.mjs.map +0 -1
- package/resources/inference/index.d.ts +0 -3
- package/resources/inference/index.d.ts.map +0 -1
- package/resources/inference/index.js +0 -9
- package/resources/inference/index.js.map +0 -1
- package/resources/inference/index.mjs +0 -4
- package/resources/inference/index.mjs.map +0 -1
- package/resources/inference/inference.d.ts +0 -172
- package/resources/inference/inference.d.ts.map +0 -1
- package/resources/inference/inference.js +0 -67
- package/resources/inference/inference.js.map +0 -1
- package/resources/inference/inference.mjs +0 -40
- package/resources/inference/inference.mjs.map +0 -1
- package/resources/memory/documents.d.ts +0 -49
- package/resources/memory/documents.d.ts.map +0 -1
- package/resources/memory/documents.js +0 -39
- package/resources/memory/documents.js.map +0 -1
- package/resources/memory/documents.mjs +0 -35
- package/resources/memory/documents.mjs.map +0 -1
- package/resources/memory/index.d.ts +0 -3
- package/resources/memory/index.d.ts.map +0 -1
- package/resources/memory/index.js +0 -9
- package/resources/memory/index.js.map +0 -1
- package/resources/memory/index.mjs +0 -4
- package/resources/memory/index.mjs.map +0 -1
- package/resources/memory/memory.d.ts +0 -158
- package/resources/memory/memory.d.ts.map +0 -1
- package/resources/memory/memory.js +0 -137
- package/resources/memory/memory.js.map +0 -1
- package/resources/memory/memory.mjs +0 -110
- package/resources/memory/memory.mjs.map +0 -1
- package/resources/memory-banks.d.ts +0 -42
- package/resources/memory-banks.d.ts.map +0 -1
- package/resources/memory-banks.js +0 -40
- package/resources/memory-banks.js.map +0 -1
- package/resources/memory-banks.mjs +0 -36
- package/resources/memory-banks.mjs.map +0 -1
- package/resources/post-training/jobs.d.ts +0 -91
- package/resources/post-training/jobs.d.ts.map +0 -1
- package/resources/post-training/jobs.js +0 -80
- package/resources/post-training/jobs.js.map +0 -1
- package/resources/post-training/jobs.mjs +0 -76
- package/resources/post-training/jobs.mjs.map +0 -1
- package/resources/reward-scoring.d.ts +0 -47
- package/resources/reward-scoring.d.ts.map +0 -1
- package/resources/reward-scoring.js +0 -24
- package/resources/reward-scoring.js.map +0 -1
- package/resources/reward-scoring.mjs +0 -20
- package/resources/reward-scoring.mjs.map +0 -1
- package/src/resources/agents/sessions.ts +0 -135
- package/src/resources/agents/turns.ts +0 -231
- package/src/resources/evaluate/evaluate.ts +0 -35
- package/src/resources/evaluate/index.ts +0 -14
- package/src/resources/evaluate/jobs/artifacts.ts +0 -42
- package/src/resources/evaluate/jobs/index.ts +0 -13
- package/src/resources/evaluate/jobs/jobs.ts +0 -99
- package/src/resources/evaluate/jobs/logs.ts +0 -42
- package/src/resources/evaluate/jobs/status.ts +0 -42
- package/src/resources/evaluate/question-answering.ts +0 -42
- package/src/resources/evaluate/summarization.ts +0 -5
- package/src/resources/evaluate/text-generation.ts +0 -5
- package/src/resources/evaluations.ts +0 -73
- package/src/resources/inference/embeddings.ts +0 -48
- package/src/resources/inference/index.ts +0 -15
- package/src/resources/inference/inference.ts +0 -268
- package/src/resources/memory/documents.ts +0 -92
- package/src/resources/memory/index.ts +0 -23
- package/src/resources/memory/memory.ts +0 -297
- package/src/resources/memory-banks.ts +0 -84
- package/src/resources/post-training/jobs.ts +0 -192
- package/src/resources/reward-scoring.ts +0 -82
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../src/resources/agents/steps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../src/resources/agents/steps.ts"],"names":[],"mappings":"AAEA,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,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,MAAM,WAAW,oBAAoB;IACnC,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"}
|
|
@@ -4,21 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Steps = void 0;
|
|
5
5
|
const resource_1 = require("../../resource.js");
|
|
6
6
|
class Steps extends resource_1.APIResource {
|
|
7
|
-
retrieve(
|
|
8
|
-
|
|
9
|
-
return this._client.get('/agents/step/get', {
|
|
10
|
-
query,
|
|
11
|
-
...options,
|
|
12
|
-
headers: {
|
|
13
|
-
...(xLlamaStackProviderData != null ?
|
|
14
|
-
{ 'X-LlamaStack-ProviderData': xLlamaStackProviderData }
|
|
15
|
-
: undefined),
|
|
16
|
-
...options?.headers,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
7
|
+
retrieve(agentId, sessionId, turnId, stepId, options) {
|
|
8
|
+
return this._client.get(`/v1/agents/${agentId}/session/${sessionId}/turn/${turnId}/step/${stepId}`, options);
|
|
19
9
|
}
|
|
20
10
|
}
|
|
21
11
|
exports.Steps = Steps;
|
|
22
|
-
(function (Steps) {
|
|
23
|
-
})(Steps = exports.Steps || (exports.Steps = {}));
|
|
24
12
|
//# sourceMappingURL=steps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.js","sourceRoot":"","sources":["../../src/resources/agents/steps.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;
|
|
1
|
+
{"version":3,"file":"steps.js","sourceRoot":"","sources":["../../src/resources/agents/steps.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,KAAM,SAAQ,sBAAW;IACpC,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;AAbD,sBAaC"}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
export class Steps extends APIResource {
|
|
4
|
-
retrieve(
|
|
5
|
-
|
|
6
|
-
return this._client.get('/agents/step/get', {
|
|
7
|
-
query,
|
|
8
|
-
...options,
|
|
9
|
-
headers: {
|
|
10
|
-
...(xLlamaStackProviderData != null ?
|
|
11
|
-
{ 'X-LlamaStack-ProviderData': xLlamaStackProviderData }
|
|
12
|
-
: undefined),
|
|
13
|
-
...options?.headers,
|
|
14
|
-
},
|
|
15
|
-
});
|
|
4
|
+
retrieve(agentId, sessionId, turnId, stepId, options) {
|
|
5
|
+
return this._client.get(`/v1/agents/${agentId}/session/${sessionId}/turn/${turnId}/step/${stepId}`, options);
|
|
16
6
|
}
|
|
17
7
|
}
|
|
18
|
-
(function (Steps) {
|
|
19
|
-
})(Steps || (Steps = {}));
|
|
20
8
|
//# sourceMappingURL=steps.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.mjs","sourceRoot":"","sources":["../../src/resources/agents/steps.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"steps.mjs","sourceRoot":"","sources":["../../src/resources/agents/steps.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC,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"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import { APIPromise } from "../../core.js";
|
|
3
|
+
import * as Core from "../../core.js";
|
|
4
|
+
import * as TurnAPI from "./turn.js";
|
|
5
|
+
import * as Shared from "../shared.js";
|
|
6
|
+
import * as AgentsAPI from "./agents.js";
|
|
7
|
+
import { Stream } from "../../streaming.js";
|
|
8
|
+
export declare class TurnResource extends APIResource {
|
|
9
|
+
create(agentId: string, sessionId: string, body: TurnCreateParamsNonStreaming, options?: Core.RequestOptions): APIPromise<Turn>;
|
|
10
|
+
create(agentId: string, sessionId: string, body: TurnCreateParamsStreaming, options?: Core.RequestOptions): APIPromise<Stream<AgentTurnResponseStreamChunk>>;
|
|
11
|
+
create(agentId: string, sessionId: string, body: TurnCreateParamsBase, options?: Core.RequestOptions): APIPromise<Stream<AgentTurnResponseStreamChunk> | Turn>;
|
|
12
|
+
retrieve(agentId: string, sessionId: string, turnId: string, options?: Core.RequestOptions): Core.APIPromise<Turn>;
|
|
13
|
+
}
|
|
14
|
+
export interface AgentTurnResponseStreamChunk {
|
|
15
|
+
event: TurnResponseEvent;
|
|
16
|
+
}
|
|
17
|
+
export interface Turn {
|
|
18
|
+
input_messages: Array<Shared.UserMessage | Shared.ToolResponseMessage>;
|
|
19
|
+
output_attachments: Array<Turn.OutputAttachment>;
|
|
20
|
+
output_message: Shared.CompletionMessage;
|
|
21
|
+
session_id: string;
|
|
22
|
+
started_at: string;
|
|
23
|
+
steps: Array<AgentsAPI.InferenceStep | AgentsAPI.ToolExecutionStep | AgentsAPI.ShieldCallStep | AgentsAPI.MemoryRetrievalStep>;
|
|
24
|
+
turn_id: string;
|
|
25
|
+
completed_at?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace Turn {
|
|
28
|
+
interface OutputAttachment {
|
|
29
|
+
content: string | OutputAttachment.ImageContentItem | OutputAttachment.TextContentItem | Array<Shared.InterleavedContentItem> | Shared.URL;
|
|
30
|
+
mime_type: string;
|
|
31
|
+
}
|
|
32
|
+
namespace OutputAttachment {
|
|
33
|
+
interface ImageContentItem {
|
|
34
|
+
/**
|
|
35
|
+
* Image as a base64 encoded string or an URL
|
|
36
|
+
*/
|
|
37
|
+
image: ImageContentItem.Image;
|
|
38
|
+
/**
|
|
39
|
+
* Discriminator type of the content item. Always "image"
|
|
40
|
+
*/
|
|
41
|
+
type: 'image';
|
|
42
|
+
}
|
|
43
|
+
namespace ImageContentItem {
|
|
44
|
+
/**
|
|
45
|
+
* Image as a base64 encoded string or an URL
|
|
46
|
+
*/
|
|
47
|
+
interface Image {
|
|
48
|
+
/**
|
|
49
|
+
* base64 encoded image data as string
|
|
50
|
+
*/
|
|
51
|
+
data?: string;
|
|
52
|
+
/**
|
|
53
|
+
* A URL of the image or data URL in the format of data:image/{type};base64,{data}.
|
|
54
|
+
* Note that URL could have length limits.
|
|
55
|
+
*/
|
|
56
|
+
url?: Shared.URL;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
interface TextContentItem {
|
|
60
|
+
/**
|
|
61
|
+
* Text content
|
|
62
|
+
*/
|
|
63
|
+
text: string;
|
|
64
|
+
/**
|
|
65
|
+
* Discriminator type of the content item. Always "text"
|
|
66
|
+
*/
|
|
67
|
+
type: 'text';
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export interface TurnResponseEvent {
|
|
72
|
+
payload: TurnResponseEventPayload;
|
|
73
|
+
}
|
|
74
|
+
export type TurnResponseEventPayload = TurnResponseEventPayload.AgentTurnResponseStepStartPayload | TurnResponseEventPayload.AgentTurnResponseStepProgressPayload | TurnResponseEventPayload.AgentTurnResponseStepCompletePayload | TurnResponseEventPayload.AgentTurnResponseTurnStartPayload | TurnResponseEventPayload.AgentTurnResponseTurnCompletePayload;
|
|
75
|
+
export declare namespace TurnResponseEventPayload {
|
|
76
|
+
interface AgentTurnResponseStepStartPayload {
|
|
77
|
+
event_type: 'step_start';
|
|
78
|
+
step_id: string;
|
|
79
|
+
step_type: 'inference' | 'tool_execution' | 'shield_call' | 'memory_retrieval';
|
|
80
|
+
metadata?: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
81
|
+
}
|
|
82
|
+
interface AgentTurnResponseStepProgressPayload {
|
|
83
|
+
delta: Shared.ContentDelta;
|
|
84
|
+
event_type: 'step_progress';
|
|
85
|
+
step_id: string;
|
|
86
|
+
step_type: 'inference' | 'tool_execution' | 'shield_call' | 'memory_retrieval';
|
|
87
|
+
}
|
|
88
|
+
interface AgentTurnResponseStepCompletePayload {
|
|
89
|
+
event_type: 'step_complete';
|
|
90
|
+
step_details: AgentsAPI.InferenceStep | AgentsAPI.ToolExecutionStep | AgentsAPI.ShieldCallStep | AgentsAPI.MemoryRetrievalStep;
|
|
91
|
+
step_id: string;
|
|
92
|
+
step_type: 'inference' | 'tool_execution' | 'shield_call' | 'memory_retrieval';
|
|
93
|
+
}
|
|
94
|
+
interface AgentTurnResponseTurnStartPayload {
|
|
95
|
+
event_type: 'turn_start';
|
|
96
|
+
turn_id: string;
|
|
97
|
+
}
|
|
98
|
+
interface AgentTurnResponseTurnCompletePayload {
|
|
99
|
+
event_type: 'turn_complete';
|
|
100
|
+
turn: TurnAPI.Turn;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
export type TurnCreateParams = TurnCreateParamsNonStreaming | TurnCreateParamsStreaming;
|
|
104
|
+
export interface TurnCreateParamsBase {
|
|
105
|
+
messages: Array<Shared.UserMessage | Shared.ToolResponseMessage>;
|
|
106
|
+
documents?: Array<TurnCreateParams.Document>;
|
|
107
|
+
stream?: boolean;
|
|
108
|
+
toolgroups?: Array<string | TurnCreateParams.UnionMember1>;
|
|
109
|
+
}
|
|
110
|
+
export declare namespace TurnCreateParams {
|
|
111
|
+
interface Document {
|
|
112
|
+
content: string | Document.ImageContentItem | Document.TextContentItem | Array<Shared.InterleavedContentItem> | Shared.URL;
|
|
113
|
+
mime_type: string;
|
|
114
|
+
}
|
|
115
|
+
namespace Document {
|
|
116
|
+
interface ImageContentItem {
|
|
117
|
+
/**
|
|
118
|
+
* Image as a base64 encoded string or an URL
|
|
119
|
+
*/
|
|
120
|
+
image: ImageContentItem.Image;
|
|
121
|
+
/**
|
|
122
|
+
* Discriminator type of the content item. Always "image"
|
|
123
|
+
*/
|
|
124
|
+
type: 'image';
|
|
125
|
+
}
|
|
126
|
+
namespace ImageContentItem {
|
|
127
|
+
/**
|
|
128
|
+
* Image as a base64 encoded string or an URL
|
|
129
|
+
*/
|
|
130
|
+
interface Image {
|
|
131
|
+
/**
|
|
132
|
+
* base64 encoded image data as string
|
|
133
|
+
*/
|
|
134
|
+
data?: string;
|
|
135
|
+
/**
|
|
136
|
+
* A URL of the image or data URL in the format of data:image/{type};base64,{data}.
|
|
137
|
+
* Note that URL could have length limits.
|
|
138
|
+
*/
|
|
139
|
+
url?: Shared.URL;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
interface TextContentItem {
|
|
143
|
+
/**
|
|
144
|
+
* Text content
|
|
145
|
+
*/
|
|
146
|
+
text: string;
|
|
147
|
+
/**
|
|
148
|
+
* Discriminator type of the content item. Always "text"
|
|
149
|
+
*/
|
|
150
|
+
type: 'text';
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
interface UnionMember1 {
|
|
154
|
+
args: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
155
|
+
name: string;
|
|
156
|
+
}
|
|
157
|
+
type TurnCreateParamsNonStreaming = TurnAPI.TurnCreateParamsNonStreaming;
|
|
158
|
+
type TurnCreateParamsStreaming = TurnAPI.TurnCreateParamsStreaming;
|
|
159
|
+
}
|
|
160
|
+
export interface TurnCreateParamsNonStreaming extends TurnCreateParamsBase {
|
|
161
|
+
stream?: false;
|
|
162
|
+
}
|
|
163
|
+
export interface TurnCreateParamsStreaming extends TurnCreateParamsBase {
|
|
164
|
+
stream: true;
|
|
165
|
+
}
|
|
166
|
+
export declare namespace TurnResource {
|
|
167
|
+
export { 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, };
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=turn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turn.d.ts","sourceRoot":"","sources":["../../src/resources/agents/turn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,qBAAa,YAAa,SAAQ,WAAW;IAC3C,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,UAAU,CAAC,IAAI,CAAC;IACnB,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,yBAAyB,EAC/B,OA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AI,EAAE,OAAO,CAAC;SACf;QAED,UAAiB,gBAAgB,CAAC;YAChC;;eAEG;YACH,UAAiB,KAAK;gBACpB;;mBAEG;gBACH,IAAI,CAAC,EAAE,MAAM,CAAC;gBAEd;;;mBAGG;gBACH,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC;aAClB;SACF;QAED,UAAiB,eAAe;YAC9B;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;SACd;KACF;IAED,UAAiB,YAAY;QAC3B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC;QAElF,IAAI,EAAE,MAAM,CAAC;KACd;IAED,KAAY,4BAA4B,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAChF,KAAY,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAC3E;AAED,MAAM,WAAW,4BAA6B,SAAQ,oBAAoB;IACxE,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAED,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE,MAAM,EAAE,IAAI,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TurnResource = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class TurnResource extends resource_1.APIResource {
|
|
7
|
+
create(agentId, sessionId, body, options) {
|
|
8
|
+
return this._client.post(`/v1/agents/${agentId}/session/${sessionId}/turn`, {
|
|
9
|
+
body,
|
|
10
|
+
...options,
|
|
11
|
+
stream: body.stream ?? false,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
retrieve(agentId, sessionId, turnId, options) {
|
|
15
|
+
return this._client.get(`/v1/agents/${agentId}/session/${sessionId}/turn/${turnId}`, options);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.TurnResource = TurnResource;
|
|
19
|
+
//# sourceMappingURL=turn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turn.js","sourceRoot":"","sources":["../../src/resources/agents/turn.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAQ7C,MAAa,YAAa,SAAQ,sBAAW;IAmB3C,MAAM,CACJ,OAAe,EACf,SAAiB,EACjB,IAAsB,EACtB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,OAAO,YAAY,SAAS,OAAO,EAAE;YAC1E,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;SAC7B,CAAwE,CAAC;IAC5E,CAAC;IAED,QAAQ,CACN,OAAe,EACf,SAAiB,EACjB,MAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,YAAY,SAAS,SAAS,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF;AAxCD,oCAwCC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class TurnResource extends APIResource {
|
|
4
|
+
create(agentId, sessionId, body, options) {
|
|
5
|
+
return this._client.post(`/v1/agents/${agentId}/session/${sessionId}/turn`, {
|
|
6
|
+
body,
|
|
7
|
+
...options,
|
|
8
|
+
stream: body.stream ?? false,
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
retrieve(agentId, sessionId, turnId, options) {
|
|
12
|
+
return this._client.get(`/v1/agents/${agentId}/session/${sessionId}/turn/${turnId}`, options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=turn.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turn.mjs","sourceRoot":"","sources":["../../src/resources/agents/turn.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAQtB,MAAM,OAAO,YAAa,SAAQ,WAAW;IAmB3C,MAAM,CACJ,OAAe,EACf,SAAiB,EACjB,IAAsB,EACtB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,OAAO,YAAY,SAAS,OAAO,EAAE;YAC1E,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;SAC7B,CAAwE,CAAC;IAC5E,CAAC;IAED,QAAQ,CACN,OAAe,EACf,SAAiB,EACjB,MAAc,EACd,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,YAAY,SAAS,SAAS,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF"}
|
|
@@ -1,99 +1,52 @@
|
|
|
1
1
|
import { APIResource } from "../resource.js";
|
|
2
2
|
import * as Core from "../core.js";
|
|
3
|
-
import * as BatchInferenceAPI from "./batch-inference.js";
|
|
4
3
|
import * as Shared from "./shared.js";
|
|
5
|
-
import * as AgentsAPI from "./agents/agents.js";
|
|
6
4
|
export declare class BatchInference extends APIResource {
|
|
7
|
-
chatCompletion(
|
|
8
|
-
completion(
|
|
5
|
+
chatCompletion(body: BatchInferenceChatCompletionParams, options?: Core.RequestOptions): Core.APIPromise<BatchInferenceChatCompletionResponse>;
|
|
6
|
+
completion(body: BatchInferenceCompletionParams, options?: Core.RequestOptions): Core.APIPromise<Shared.BatchCompletion>;
|
|
9
7
|
}
|
|
10
|
-
export interface
|
|
11
|
-
|
|
8
|
+
export interface BatchInferenceChatCompletionResponse {
|
|
9
|
+
batch: Array<Shared.ChatCompletionResponse>;
|
|
12
10
|
}
|
|
13
11
|
export interface BatchInferenceChatCompletionParams {
|
|
14
|
-
|
|
15
|
-
* Body param:
|
|
16
|
-
*/
|
|
17
|
-
messages_batch: Array<Array<Shared.UserMessage | Shared.SystemMessage | Shared.ToolResponseMessage | Shared.CompletionMessage>>;
|
|
18
|
-
/**
|
|
19
|
-
* Body param:
|
|
20
|
-
*/
|
|
12
|
+
messages_batch: Array<Array<Shared.Message>>;
|
|
21
13
|
model: string;
|
|
22
|
-
/**
|
|
23
|
-
* Body param:
|
|
24
|
-
*/
|
|
25
14
|
logprobs?: BatchInferenceChatCompletionParams.Logprobs;
|
|
26
|
-
|
|
27
|
-
* Body param:
|
|
28
|
-
*/
|
|
15
|
+
response_format?: Shared.ResponseFormat;
|
|
29
16
|
sampling_params?: Shared.SamplingParams;
|
|
30
|
-
/**
|
|
31
|
-
* Body param:
|
|
32
|
-
*/
|
|
33
17
|
tool_choice?: 'auto' | 'required';
|
|
34
|
-
|
|
35
|
-
* Body param: `json` -- Refers to the json format for calling tools. The json
|
|
36
|
-
* format takes the form like { "type": "function", "function" : { "name":
|
|
37
|
-
* "function_name", "description": "function_description", "parameters": {...} } }
|
|
38
|
-
*
|
|
39
|
-
* `function_tag` -- This is an example of how you could define your own user
|
|
40
|
-
* defined format for making tool calls. The function_tag format looks like this,
|
|
41
|
-
* <function=function_name>(parameters)</function>
|
|
42
|
-
*
|
|
43
|
-
* The detailed prompts for each of these formats are added to llama cli
|
|
44
|
-
*/
|
|
45
|
-
tool_prompt_format?: 'json' | 'function_tag';
|
|
46
|
-
/**
|
|
47
|
-
* Body param:
|
|
48
|
-
*/
|
|
18
|
+
tool_prompt_format?: 'json' | 'function_tag' | 'python_list';
|
|
49
19
|
tools?: Array<BatchInferenceChatCompletionParams.Tool>;
|
|
50
|
-
/**
|
|
51
|
-
* Header param: JSON-encoded provider data which will be made available to the
|
|
52
|
-
* adapter servicing the API
|
|
53
|
-
*/
|
|
54
|
-
'X-LlamaStack-ProviderData'?: string;
|
|
55
20
|
}
|
|
56
21
|
export declare namespace BatchInferenceChatCompletionParams {
|
|
57
22
|
interface Logprobs {
|
|
23
|
+
/**
|
|
24
|
+
* How many tokens (for each position) to return log probabilities for.
|
|
25
|
+
*/
|
|
58
26
|
top_k?: number;
|
|
59
27
|
}
|
|
60
28
|
interface Tool {
|
|
61
29
|
tool_name: 'brave_search' | 'wolfram_alpha' | 'photogen' | 'code_interpreter' | (string & {});
|
|
62
30
|
description?: string;
|
|
63
|
-
parameters?: Record<string,
|
|
31
|
+
parameters?: Record<string, Shared.ToolParamDefinition>;
|
|
64
32
|
}
|
|
65
33
|
}
|
|
66
34
|
export interface BatchInferenceCompletionParams {
|
|
67
|
-
|
|
68
|
-
* Body param:
|
|
69
|
-
*/
|
|
70
|
-
content_batch: Array<string | Array<string>>;
|
|
71
|
-
/**
|
|
72
|
-
* Body param:
|
|
73
|
-
*/
|
|
35
|
+
content_batch: Array<Shared.InterleavedContent>;
|
|
74
36
|
model: string;
|
|
75
|
-
/**
|
|
76
|
-
* Body param:
|
|
77
|
-
*/
|
|
78
37
|
logprobs?: BatchInferenceCompletionParams.Logprobs;
|
|
79
|
-
|
|
80
|
-
* Body param:
|
|
81
|
-
*/
|
|
38
|
+
response_format?: Shared.ResponseFormat;
|
|
82
39
|
sampling_params?: Shared.SamplingParams;
|
|
83
|
-
/**
|
|
84
|
-
* Header param: JSON-encoded provider data which will be made available to the
|
|
85
|
-
* adapter servicing the API
|
|
86
|
-
*/
|
|
87
|
-
'X-LlamaStack-ProviderData'?: string;
|
|
88
40
|
}
|
|
89
41
|
export declare namespace BatchInferenceCompletionParams {
|
|
90
42
|
interface Logprobs {
|
|
43
|
+
/**
|
|
44
|
+
* How many tokens (for each position) to return log probabilities for.
|
|
45
|
+
*/
|
|
91
46
|
top_k?: number;
|
|
92
47
|
}
|
|
93
48
|
}
|
|
94
49
|
export declare namespace BatchInference {
|
|
95
|
-
export
|
|
96
|
-
export import BatchInferenceChatCompletionParams = BatchInferenceAPI.BatchInferenceChatCompletionParams;
|
|
97
|
-
export import BatchInferenceCompletionParams = BatchInferenceAPI.BatchInferenceCompletionParams;
|
|
50
|
+
export { type BatchInferenceChatCompletionResponse as BatchInferenceChatCompletionResponse, type BatchInferenceChatCompletionParams as BatchInferenceChatCompletionParams, type BatchInferenceCompletionParams as BatchInferenceCompletionParams, };
|
|
98
51
|
}
|
|
99
52
|
//# sourceMappingURL=batch-inference.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-inference.d.ts","sourceRoot":"","sources":["../src/resources/batch-inference.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"batch-inference.d.ts","sourceRoot":"","sources":["../src/resources/batch-inference.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,qBAAa,cAAe,SAAQ,WAAW;IAC7C,cAAc,CACZ,IAAI,EAAE,kCAAkC,EACxC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,oCAAoC,CAAC;IAIxD,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EnD,eAAe,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC;IAExC,eAAe,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC;CACzC;AAED,yBAAiB,8BAA8B,CAAC;IAC9C,UAAiB,QAAQ;QACvB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
|
@@ -4,34 +4,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.BatchInference = void 0;
|
|
5
5
|
const resource_1 = require("../resource.js");
|
|
6
6
|
class BatchInference extends resource_1.APIResource {
|
|
7
|
-
chatCompletion(
|
|
8
|
-
|
|
9
|
-
return this._client.post('/batch_inference/chat_completion', {
|
|
10
|
-
body,
|
|
11
|
-
...options,
|
|
12
|
-
headers: {
|
|
13
|
-
...(xLlamaStackProviderData != null ?
|
|
14
|
-
{ 'X-LlamaStack-ProviderData': xLlamaStackProviderData }
|
|
15
|
-
: undefined),
|
|
16
|
-
...options?.headers,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
7
|
+
chatCompletion(body, options) {
|
|
8
|
+
return this._client.post('/v1/batch-inference/chat-completion', { body, ...options });
|
|
19
9
|
}
|
|
20
|
-
completion(
|
|
21
|
-
|
|
22
|
-
return this._client.post('/batch_inference/completion', {
|
|
23
|
-
body,
|
|
24
|
-
...options,
|
|
25
|
-
headers: {
|
|
26
|
-
...(xLlamaStackProviderData != null ?
|
|
27
|
-
{ 'X-LlamaStack-ProviderData': xLlamaStackProviderData }
|
|
28
|
-
: undefined),
|
|
29
|
-
...options?.headers,
|
|
30
|
-
},
|
|
31
|
-
});
|
|
10
|
+
completion(body, options) {
|
|
11
|
+
return this._client.post('/v1/batch-inference/completion', { body, ...options });
|
|
32
12
|
}
|
|
33
13
|
}
|
|
34
14
|
exports.BatchInference = BatchInference;
|
|
35
|
-
(function (BatchInference) {
|
|
36
|
-
})(BatchInference = exports.BatchInference || (exports.BatchInference = {}));
|
|
37
15
|
//# sourceMappingURL=batch-inference.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-inference.js","sourceRoot":"","sources":["../src/resources/batch-inference.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;
|
|
1
|
+
{"version":3,"file":"batch-inference.js","sourceRoot":"","sources":["../src/resources/batch-inference.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAI1C,MAAa,cAAe,SAAQ,sBAAW;IAC7C,cAAc,CACZ,IAAwC,EACxC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED,UAAU,CACR,IAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AAdD,wCAcC"}
|
|
@@ -1,33 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../resource.mjs";
|
|
3
3
|
export class BatchInference extends APIResource {
|
|
4
|
-
chatCompletion(
|
|
5
|
-
|
|
6
|
-
return this._client.post('/batch_inference/chat_completion', {
|
|
7
|
-
body,
|
|
8
|
-
...options,
|
|
9
|
-
headers: {
|
|
10
|
-
...(xLlamaStackProviderData != null ?
|
|
11
|
-
{ 'X-LlamaStack-ProviderData': xLlamaStackProviderData }
|
|
12
|
-
: undefined),
|
|
13
|
-
...options?.headers,
|
|
14
|
-
},
|
|
15
|
-
});
|
|
4
|
+
chatCompletion(body, options) {
|
|
5
|
+
return this._client.post('/v1/batch-inference/chat-completion', { body, ...options });
|
|
16
6
|
}
|
|
17
|
-
completion(
|
|
18
|
-
|
|
19
|
-
return this._client.post('/batch_inference/completion', {
|
|
20
|
-
body,
|
|
21
|
-
...options,
|
|
22
|
-
headers: {
|
|
23
|
-
...(xLlamaStackProviderData != null ?
|
|
24
|
-
{ 'X-LlamaStack-ProviderData': xLlamaStackProviderData }
|
|
25
|
-
: undefined),
|
|
26
|
-
...options?.headers,
|
|
27
|
-
},
|
|
28
|
-
});
|
|
7
|
+
completion(body, options) {
|
|
8
|
+
return this._client.post('/v1/batch-inference/completion', { body, ...options });
|
|
29
9
|
}
|
|
30
10
|
}
|
|
31
|
-
(function (BatchInference) {
|
|
32
|
-
})(BatchInference || (BatchInference = {}));
|
|
33
11
|
//# sourceMappingURL=batch-inference.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-inference.mjs","sourceRoot":"","sources":["../src/resources/batch-inference.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"batch-inference.mjs","sourceRoot":"","sources":["../src/resources/batch-inference.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C,cAAc,CACZ,IAAwC,EACxC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED,UAAU,CACR,IAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
export declare class Datasetio extends APIResource {
|
|
4
|
+
appendRows(body: DatasetioAppendRowsParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
5
|
+
getRowsPaginated(query: DatasetioGetRowsPaginatedParams, options?: Core.RequestOptions): Core.APIPromise<PaginatedRowsResult>;
|
|
6
|
+
}
|
|
7
|
+
export interface PaginatedRowsResult {
|
|
8
|
+
rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
9
|
+
total_count: number;
|
|
10
|
+
next_page_token?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface DatasetioAppendRowsParams {
|
|
13
|
+
dataset_id: string;
|
|
14
|
+
rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
15
|
+
}
|
|
16
|
+
export interface DatasetioGetRowsPaginatedParams {
|
|
17
|
+
dataset_id: string;
|
|
18
|
+
rows_in_page: number;
|
|
19
|
+
filter_condition?: string;
|
|
20
|
+
page_token?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace Datasetio {
|
|
23
|
+
export { type PaginatedRowsResult as PaginatedRowsResult, type DatasetioAppendRowsParams as DatasetioAppendRowsParams, type DatasetioGetRowsPaginatedParams as DatasetioGetRowsPaginatedParams, };
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=datasetio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datasetio.d.ts","sourceRoot":"","sources":["../src/resources/datasetio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,SAAU,SAAQ,WAAW;IACxC,UAAU,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAQjG,gBAAgB,CACd,KAAK,EAAE,+BAA+B,EACtC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;CAGxC;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;IAEzF,WAAW,EAAE,MAAM,CAAC;IAEpB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,CAAC;IAEnB,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;CAC1F;AAED,MAAM,WAAW,+BAA+B;IAC9C,UAAU,EAAE,MAAM,CAAC;IAEnB,YAAY,EAAE,MAAM,CAAC;IAErB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Datasetio = void 0;
|
|
5
|
+
const resource_1 = require("../resource.js");
|
|
6
|
+
class Datasetio extends resource_1.APIResource {
|
|
7
|
+
appendRows(body, options) {
|
|
8
|
+
return this._client.post('/v1/datasetio/rows', {
|
|
9
|
+
body,
|
|
10
|
+
...options,
|
|
11
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
getRowsPaginated(query, options) {
|
|
15
|
+
return this._client.get('/v1/datasetio/rows', { query, ...options });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Datasetio = Datasetio;
|
|
19
|
+
//# sourceMappingURL=datasetio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datasetio.js","sourceRoot":"","sources":["../src/resources/datasetio.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,SAAU,SAAQ,sBAAW;IACxC,UAAU,CAAC,IAA+B,EAAE,OAA6B;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CACd,KAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAfD,8BAeC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../resource.mjs";
|
|
3
|
+
export class Datasetio extends APIResource {
|
|
4
|
+
appendRows(body, options) {
|
|
5
|
+
return this._client.post('/v1/datasetio/rows', {
|
|
6
|
+
body,
|
|
7
|
+
...options,
|
|
8
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
getRowsPaginated(query, options) {
|
|
12
|
+
return this._client.get('/v1/datasetio/rows', { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=datasetio.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datasetio.mjs","sourceRoot":"","sources":["../src/resources/datasetio.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC,UAAU,CAAC,IAA+B,EAAE,OAA6B;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CACd,KAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
|