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
package/resources/index.d.ts
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
2
|
+
export { Agents, type InferenceStep, type MemoryRetrievalStep, type ShieldCallStep, type ToolExecutionStep, type ToolResponse, type AgentCreateResponse, type AgentCreateParams, } from "./agents/agents.js";
|
|
3
|
+
export { BatchInference, type BatchInferenceChatCompletionResponse, type BatchInferenceChatCompletionParams, type BatchInferenceCompletionParams, } from "./batch-inference.js";
|
|
4
|
+
export { Datasetio, type PaginatedRowsResult, type DatasetioAppendRowsParams, type DatasetioGetRowsPaginatedParams, } from "./datasetio.js";
|
|
5
|
+
export { Datasets, type ListDatasetsResponse, type DatasetRetrieveResponse, type DatasetListResponse, type DatasetRegisterParams, } from "./datasets.js";
|
|
6
|
+
export { Eval, type EvalCandidate, type EvalTaskConfig, type EvaluateResponse, type Job, type EvalEvaluateRowsParams, type EvalRunEvalParams, } from "./eval/eval.js";
|
|
7
|
+
export { EvalTasks, type EvalTask, type ListEvalTasksResponse, type EvalTaskListResponse, type EvalTaskRegisterParams, } from "./eval-tasks.js";
|
|
8
|
+
export { Inference, type ChatCompletionResponseStreamChunk, type CompletionResponse, type EmbeddingsResponse, type TokenLogProbs, type InferenceChatCompletionParams, type InferenceChatCompletionParamsNonStreaming, type InferenceChatCompletionParamsStreaming, type InferenceCompletionParams, type InferenceCompletionParamsNonStreaming, type InferenceCompletionParamsStreaming, type InferenceEmbeddingsParams, } from "./inference.js";
|
|
9
|
+
export { Inspect, type HealthInfo, type ProviderInfo, type RouteInfo, type VersionInfo } from "./inspect.js";
|
|
10
|
+
export { Models, type ListModelsResponse, type Model, type ModelListResponse, type ModelRegisterParams, } from "./models.js";
|
|
11
|
+
export { PostTraining, type AlgorithmConfig, type ListPostTrainingJobsResponse, type PostTrainingJob, type PostTrainingPreferenceOptimizeParams, type PostTrainingSupervisedFineTuneParams, } from "./post-training/post-training.js";
|
|
12
|
+
export { Providers, type ListProvidersResponse, type ProviderListResponse } from "./providers.js";
|
|
13
|
+
export { Routes, type ListRoutesResponse, type RouteListResponse } from "./routes.js";
|
|
14
|
+
export { Safety, type RunShieldResponse, type SafetyRunShieldParams } from "./safety.js";
|
|
15
|
+
export { Scoring, type ScoringScoreResponse, type ScoringScoreBatchResponse, type ScoringScoreParams, type ScoringScoreBatchParams, } from "./scoring.js";
|
|
16
|
+
export { ScoringFunctions, type ListScoringFunctionsResponse, type ScoringFn, type ScoringFnParams, type ScoringFunctionListResponse, type ScoringFunctionRegisterParams, } from "./scoring-functions.js";
|
|
17
|
+
export { Shields, type ListShieldsResponse, type Shield, type ShieldListResponse, type ShieldRegisterParams, } from "./shields.js";
|
|
18
|
+
export { SyntheticDataGeneration, type SyntheticDataGenerationResponse, type SyntheticDataGenerationGenerateParams, } from "./synthetic-data-generation.js";
|
|
19
|
+
export { Telemetry, type Event, type QueryCondition, type QuerySpansResponse, type SpanWithStatus, type Trace, type TelemetryGetSpanResponse, type TelemetryGetSpanTreeResponse, type TelemetryQuerySpansResponse, type TelemetryQueryTracesResponse, type TelemetryGetSpanTreeParams, type TelemetryLogEventParams, type TelemetryQuerySpansParams, type TelemetryQueryTracesParams, type TelemetrySaveSpansToDatasetParams, } from "./telemetry.js";
|
|
20
|
+
export { ToolRuntime, type ToolDef, type ToolInvocationResult, type ToolRuntimeInvokeToolParams, type ToolRuntimeListToolsParams, } from "./tool-runtime/tool-runtime.js";
|
|
21
|
+
export { Toolgroups, type ListToolGroupsResponse, type ToolGroup, type ToolgroupListResponse, type ToolgroupRegisterParams, } from "./toolgroups.js";
|
|
22
|
+
export { Tools, type ListToolsResponse, type Tool, type ToolListResponse, type ToolListParams, } from "./tools.js";
|
|
23
|
+
export { VectorDBs, type ListVectorDBsResponse, type VectorDBRetrieveResponse, type VectorDBListResponse, type VectorDBRegisterResponse, type VectorDBRegisterParams, } from "./vector-dbs.js";
|
|
24
|
+
export { VectorIo, type QueryChunksResponse, type VectorIoInsertParams, type VectorIoQueryParams, } from "./vector-io.js";
|
|
17
25
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EACL,MAAM,EACN,KAAK,aAA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,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,iCAAiC,GACvC,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,WAAW,EACX,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,GAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,UAAU,EACV,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,aAAa,CAAC"}
|
package/resources/index.js
CHANGED
|
@@ -15,36 +15,52 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
18
|
+
exports.VectorIo = exports.VectorDBs = exports.Tools = exports.Toolgroups = exports.ToolRuntime = exports.Telemetry = exports.SyntheticDataGeneration = exports.Shields = exports.ScoringFunctions = exports.Scoring = exports.Safety = exports.Routes = exports.Providers = exports.PostTraining = exports.Models = exports.Inspect = exports.Inference = exports.EvalTasks = exports.Eval = exports.Datasets = exports.Datasetio = exports.BatchInference = exports.Agents = void 0;
|
|
19
19
|
__exportStar(require("./shared.js"), exports);
|
|
20
|
+
var agents_1 = require("./agents/agents.js");
|
|
21
|
+
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
20
22
|
var batch_inference_1 = require("./batch-inference.js");
|
|
21
23
|
Object.defineProperty(exports, "BatchInference", { enumerable: true, get: function () { return batch_inference_1.BatchInference; } });
|
|
22
|
-
var
|
|
24
|
+
var datasetio_1 = require("./datasetio.js");
|
|
25
|
+
Object.defineProperty(exports, "Datasetio", { enumerable: true, get: function () { return datasetio_1.Datasetio; } });
|
|
26
|
+
var datasets_1 = require("./datasets.js");
|
|
27
|
+
Object.defineProperty(exports, "Datasets", { enumerable: true, get: function () { return datasets_1.Datasets; } });
|
|
28
|
+
var eval_1 = require("./eval/eval.js");
|
|
29
|
+
Object.defineProperty(exports, "Eval", { enumerable: true, get: function () { return eval_1.Eval; } });
|
|
30
|
+
var eval_tasks_1 = require("./eval-tasks.js");
|
|
31
|
+
Object.defineProperty(exports, "EvalTasks", { enumerable: true, get: function () { return eval_tasks_1.EvalTasks; } });
|
|
32
|
+
var inference_1 = require("./inference.js");
|
|
23
33
|
Object.defineProperty(exports, "Inference", { enumerable: true, get: function () { return inference_1.Inference; } });
|
|
24
|
-
var
|
|
25
|
-
Object.defineProperty(exports, "
|
|
26
|
-
var evaluations_1 = require("./evaluations.js");
|
|
27
|
-
Object.defineProperty(exports, "Evaluations", { enumerable: true, get: function () { return evaluations_1.Evaluations; } });
|
|
28
|
-
var agents_1 = require("./agents/agents.js");
|
|
29
|
-
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
30
|
-
var memory_banks_1 = require("./memory-banks.js");
|
|
31
|
-
Object.defineProperty(exports, "MemoryBanks", { enumerable: true, get: function () { return memory_banks_1.MemoryBanks; } });
|
|
34
|
+
var inspect_1 = require("./inspect.js");
|
|
35
|
+
Object.defineProperty(exports, "Inspect", { enumerable: true, get: function () { return inspect_1.Inspect; } });
|
|
32
36
|
var models_1 = require("./models.js");
|
|
33
37
|
Object.defineProperty(exports, "Models", { enumerable: true, get: function () { return models_1.Models; } });
|
|
34
38
|
var post_training_1 = require("./post-training/post-training.js");
|
|
35
39
|
Object.defineProperty(exports, "PostTraining", { enumerable: true, get: function () { return post_training_1.PostTraining; } });
|
|
36
|
-
var
|
|
37
|
-
Object.defineProperty(exports, "
|
|
38
|
-
var
|
|
39
|
-
Object.defineProperty(exports, "
|
|
40
|
+
var providers_1 = require("./providers.js");
|
|
41
|
+
Object.defineProperty(exports, "Providers", { enumerable: true, get: function () { return providers_1.Providers; } });
|
|
42
|
+
var routes_1 = require("./routes.js");
|
|
43
|
+
Object.defineProperty(exports, "Routes", { enumerable: true, get: function () { return routes_1.Routes; } });
|
|
40
44
|
var safety_1 = require("./safety.js");
|
|
41
45
|
Object.defineProperty(exports, "Safety", { enumerable: true, get: function () { return safety_1.Safety; } });
|
|
46
|
+
var scoring_1 = require("./scoring.js");
|
|
47
|
+
Object.defineProperty(exports, "Scoring", { enumerable: true, get: function () { return scoring_1.Scoring; } });
|
|
48
|
+
var scoring_functions_1 = require("./scoring-functions.js");
|
|
49
|
+
Object.defineProperty(exports, "ScoringFunctions", { enumerable: true, get: function () { return scoring_functions_1.ScoringFunctions; } });
|
|
42
50
|
var shields_1 = require("./shields.js");
|
|
43
51
|
Object.defineProperty(exports, "Shields", { enumerable: true, get: function () { return shields_1.Shields; } });
|
|
44
52
|
var synthetic_data_generation_1 = require("./synthetic-data-generation.js");
|
|
45
|
-
Object.defineProperty(exports, "
|
|
53
|
+
Object.defineProperty(exports, "SyntheticDataGeneration", { enumerable: true, get: function () { return synthetic_data_generation_1.SyntheticDataGeneration; } });
|
|
46
54
|
var telemetry_1 = require("./telemetry.js");
|
|
47
55
|
Object.defineProperty(exports, "Telemetry", { enumerable: true, get: function () { return telemetry_1.Telemetry; } });
|
|
48
|
-
var
|
|
49
|
-
Object.defineProperty(exports, "
|
|
56
|
+
var tool_runtime_1 = require("./tool-runtime/tool-runtime.js");
|
|
57
|
+
Object.defineProperty(exports, "ToolRuntime", { enumerable: true, get: function () { return tool_runtime_1.ToolRuntime; } });
|
|
58
|
+
var toolgroups_1 = require("./toolgroups.js");
|
|
59
|
+
Object.defineProperty(exports, "Toolgroups", { enumerable: true, get: function () { return toolgroups_1.Toolgroups; } });
|
|
60
|
+
var tools_1 = require("./tools.js");
|
|
61
|
+
Object.defineProperty(exports, "Tools", { enumerable: true, get: function () { return tools_1.Tools; } });
|
|
62
|
+
var vector_dbs_1 = require("./vector-dbs.js");
|
|
63
|
+
Object.defineProperty(exports, "VectorDBs", { enumerable: true, get: function () { return vector_dbs_1.VectorDBs; } });
|
|
64
|
+
var vector_io_1 = require("./vector-io.js");
|
|
65
|
+
Object.defineProperty(exports, "VectorIo", { enumerable: true, get: function () { return vector_io_1.VectorIo; } });
|
|
50
66
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,wDAK2B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,6CASyB;AARvB,gGAAA,MAAM,OAAA;AASR,wDAK2B;AAJzB,iHAAA,cAAc,OAAA;AAKhB,4CAKqB;AAJnB,sGAAA,SAAS,OAAA;AAKX,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,uCAQqB;AAPnB,4FAAA,IAAI,OAAA;AAQN,8CAMsB;AALpB,uGAAA,SAAS,OAAA;AAMX,4CAaqB;AAZnB,sGAAA,SAAS,OAAA;AAaX,wCAA0G;AAAjG,kGAAA,OAAO,OAAA;AAChB,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,kEAOuC;AANrC,6GAAA,YAAY,OAAA;AAOd,4CAA+F;AAAtF,sGAAA,SAAS,OAAA;AAClB,sCAAmF;AAA1E,gGAAA,MAAM,OAAA;AACf,sCAAsF;AAA7E,gGAAA,MAAM,OAAA;AACf,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,4DAO6B;AAN3B,qHAAA,gBAAgB,OAAA;AAOlB,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,4EAIqC;AAHnC,oIAAA,uBAAuB,OAAA;AAIzB,4CAgBqB;AAfnB,sGAAA,SAAS,OAAA;AAgBX,+DAMqC;AALnC,2GAAA,WAAW,OAAA;AAMb,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,8CAOsB;AANpB,uGAAA,SAAS,OAAA;AAOX,4CAKqB;AAJnB,qGAAA,QAAQ,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export * from "./shared.mjs";
|
|
3
|
-
export { BatchInference, } from "./batch-inference.mjs";
|
|
4
|
-
export { Inference, } from "./inference/inference.mjs";
|
|
5
|
-
export { Evaluate } from "./evaluate/evaluate.mjs";
|
|
6
|
-
export { Evaluations } from "./evaluations.mjs";
|
|
7
3
|
export { Agents, } from "./agents/agents.mjs";
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
4
|
+
export { BatchInference, } from "./batch-inference.mjs";
|
|
5
|
+
export { Datasetio, } from "./datasetio.mjs";
|
|
6
|
+
export { Datasets, } from "./datasets.mjs";
|
|
7
|
+
export { Eval, } from "./eval/eval.mjs";
|
|
8
|
+
export { EvalTasks, } from "./eval-tasks.mjs";
|
|
9
|
+
export { Inference, } from "./inference.mjs";
|
|
10
|
+
export { Inspect } from "./inspect.mjs";
|
|
11
|
+
export { Models, } from "./models.mjs";
|
|
10
12
|
export { PostTraining, } from "./post-training/post-training.mjs";
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
+
export { Providers } from "./providers.mjs";
|
|
14
|
+
export { Routes } from "./routes.mjs";
|
|
13
15
|
export { Safety } from "./safety.mjs";
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
+
export { Scoring, } from "./scoring.mjs";
|
|
17
|
+
export { ScoringFunctions, } from "./scoring-functions.mjs";
|
|
18
|
+
export { Shields, } from "./shields.mjs";
|
|
19
|
+
export { SyntheticDataGeneration, } from "./synthetic-data-generation.mjs";
|
|
16
20
|
export { Telemetry, } from "./telemetry.mjs";
|
|
17
|
-
export {
|
|
21
|
+
export { ToolRuntime, } from "./tool-runtime/tool-runtime.mjs";
|
|
22
|
+
export { Toolgroups, } from "./toolgroups.mjs";
|
|
23
|
+
export { Tools, } from "./tools.mjs";
|
|
24
|
+
export { VectorDBs, } from "./vector-dbs.mjs";
|
|
25
|
+
export { VectorIo, } from "./vector-io.mjs";
|
|
18
26
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,MAAM,GAQP;OACM,EACL,cAAc,GAIf;OACM,EACL,SAAS,GAIV;OACM,EACL,QAAQ,GAKT;OACM,EACL,IAAI,GAOL;OACM,EACL,SAAS,GAKV;OACM,EACL,SAAS,GAYV;OACM,EAAE,OAAO,EAAwE;OACjF,EACL,MAAM,GAKP;OACM,EACL,YAAY,GAMb;OACM,EAAE,SAAS,EAAyD;OACpE,EAAE,MAAM,EAAmD;OAC3D,EAAE,MAAM,EAAsD;OAC9D,EACL,OAAO,GAKR;OACM,EACL,gBAAgB,GAMjB;OACM,EACL,OAAO,GAKR;OACM,EACL,uBAAuB,GAGxB;OACM,EACL,SAAS,GAeV;OACM,EACL,WAAW,GAKZ;OACM,EACL,UAAU,GAKX;OACM,EACL,KAAK,GAKN;OACM,EACL,SAAS,GAMV;OACM,EACL,QAAQ,GAIT"}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import { APIPromise } from "../core.js";
|
|
3
|
+
import * as Core from "../core.js";
|
|
4
|
+
import * as InferenceAPI from "./inference.js";
|
|
5
|
+
import * as Shared from "./shared.js";
|
|
6
|
+
import { Stream } from "../streaming.js";
|
|
7
|
+
export declare class Inference extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Generate a chat completion for the given messages using the specified model.
|
|
10
|
+
*/
|
|
11
|
+
chatCompletion(body: InferenceChatCompletionParamsNonStreaming, options?: Core.RequestOptions): APIPromise<Shared.ChatCompletionResponse>;
|
|
12
|
+
chatCompletion(body: InferenceChatCompletionParamsStreaming, options?: Core.RequestOptions): APIPromise<Stream<ChatCompletionResponseStreamChunk>>;
|
|
13
|
+
chatCompletion(body: InferenceChatCompletionParamsBase, options?: Core.RequestOptions): APIPromise<Stream<ChatCompletionResponseStreamChunk> | Shared.ChatCompletionResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Generate a completion for the given content using the specified model.
|
|
16
|
+
*/
|
|
17
|
+
completion(body: InferenceCompletionParamsNonStreaming, options?: Core.RequestOptions): APIPromise<CompletionResponse>;
|
|
18
|
+
completion(body: InferenceCompletionParamsStreaming, options?: Core.RequestOptions): APIPromise<Stream<CompletionResponse>>;
|
|
19
|
+
completion(body: InferenceCompletionParamsBase, options?: Core.RequestOptions): APIPromise<Stream<CompletionResponse> | CompletionResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Generate embeddings for content pieces using the specified model.
|
|
22
|
+
*/
|
|
23
|
+
embeddings(body: InferenceEmbeddingsParams, options?: Core.RequestOptions): Core.APIPromise<EmbeddingsResponse>;
|
|
24
|
+
}
|
|
25
|
+
export interface ChatCompletionResponseStreamChunk {
|
|
26
|
+
/**
|
|
27
|
+
* The event containing the new content
|
|
28
|
+
*/
|
|
29
|
+
event: ChatCompletionResponseStreamChunk.Event;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace ChatCompletionResponseStreamChunk {
|
|
32
|
+
/**
|
|
33
|
+
* The event containing the new content
|
|
34
|
+
*/
|
|
35
|
+
interface Event {
|
|
36
|
+
/**
|
|
37
|
+
* Content generated since last event. This can be one or more tokens, or a tool
|
|
38
|
+
* call.
|
|
39
|
+
*/
|
|
40
|
+
delta: Shared.ContentDelta;
|
|
41
|
+
/**
|
|
42
|
+
* Type of the event
|
|
43
|
+
*/
|
|
44
|
+
event_type: 'start' | 'complete' | 'progress';
|
|
45
|
+
/**
|
|
46
|
+
* Optional log probabilities for generated tokens
|
|
47
|
+
*/
|
|
48
|
+
logprobs?: Array<InferenceAPI.TokenLogProbs>;
|
|
49
|
+
/**
|
|
50
|
+
* Optional reason why generation stopped, if complete
|
|
51
|
+
*/
|
|
52
|
+
stop_reason?: 'end_of_turn' | 'end_of_message' | 'out_of_tokens';
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export interface CompletionResponse {
|
|
56
|
+
/**
|
|
57
|
+
* The generated completion text
|
|
58
|
+
*/
|
|
59
|
+
content: string;
|
|
60
|
+
/**
|
|
61
|
+
* Reason why generation stopped
|
|
62
|
+
*/
|
|
63
|
+
stop_reason: 'end_of_turn' | 'end_of_message' | 'out_of_tokens';
|
|
64
|
+
/**
|
|
65
|
+
* Optional log probabilities for generated tokens
|
|
66
|
+
*/
|
|
67
|
+
logprobs?: Array<TokenLogProbs>;
|
|
68
|
+
}
|
|
69
|
+
export interface EmbeddingsResponse {
|
|
70
|
+
/**
|
|
71
|
+
* List of embedding vectors, one per input content. Each embedding is a list of
|
|
72
|
+
* floats. The dimensionality of the embedding is model-specific; you can check
|
|
73
|
+
* model metadata using /models/{model_id}
|
|
74
|
+
*/
|
|
75
|
+
embeddings: Array<Array<number>>;
|
|
76
|
+
}
|
|
77
|
+
export interface TokenLogProbs {
|
|
78
|
+
/**
|
|
79
|
+
* Dictionary mapping tokens to their log probabilities
|
|
80
|
+
*/
|
|
81
|
+
logprobs_by_token: Record<string, number>;
|
|
82
|
+
}
|
|
83
|
+
export type InferenceChatCompletionParams = InferenceChatCompletionParamsNonStreaming | InferenceChatCompletionParamsStreaming;
|
|
84
|
+
export interface InferenceChatCompletionParamsBase {
|
|
85
|
+
/**
|
|
86
|
+
* List of messages in the conversation
|
|
87
|
+
*/
|
|
88
|
+
messages: Array<Shared.Message>;
|
|
89
|
+
/**
|
|
90
|
+
* The identifier of the model to use. The model must be registered with Llama
|
|
91
|
+
* Stack and available via the /models endpoint.
|
|
92
|
+
*/
|
|
93
|
+
model_id: string;
|
|
94
|
+
/**
|
|
95
|
+
* (Optional) If specified, log probabilities for each token position will be
|
|
96
|
+
* returned.
|
|
97
|
+
*/
|
|
98
|
+
logprobs?: InferenceChatCompletionParams.Logprobs;
|
|
99
|
+
/**
|
|
100
|
+
* (Optional) Grammar specification for guided (structured) decoding. There are two
|
|
101
|
+
* options: - `ResponseFormat.json_schema`: The grammar is a JSON schema. Most
|
|
102
|
+
* providers support this format. - `ResponseFormat.grammar`: The grammar is a BNF
|
|
103
|
+
* grammar. This format is more flexible, but not all providers support it.
|
|
104
|
+
*/
|
|
105
|
+
response_format?: Shared.ResponseFormat;
|
|
106
|
+
/**
|
|
107
|
+
* Parameters to control the sampling strategy
|
|
108
|
+
*/
|
|
109
|
+
sampling_params?: Shared.SamplingParams;
|
|
110
|
+
/**
|
|
111
|
+
* (Optional) If True, generate an SSE event stream of the response. Defaults to
|
|
112
|
+
* False.
|
|
113
|
+
*/
|
|
114
|
+
stream?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* (Optional) Whether tool use is required or automatic. Defaults to
|
|
117
|
+
* ToolChoice.auto.
|
|
118
|
+
*/
|
|
119
|
+
tool_choice?: 'auto' | 'required';
|
|
120
|
+
/**
|
|
121
|
+
* (Optional) Instructs the model how to format tool calls. By default, Llama Stack
|
|
122
|
+
* will attempt to use a format that is best adapted to the model. -
|
|
123
|
+
* `ToolPromptFormat.json`: The tool calls are formatted as a JSON object. -
|
|
124
|
+
* `ToolPromptFormat.function_tag`: The tool calls are enclosed in a
|
|
125
|
+
* <function=function_name> tag. - `ToolPromptFormat.python_list`: The tool calls
|
|
126
|
+
* are output as Python syntax -- a list of function calls.
|
|
127
|
+
*/
|
|
128
|
+
tool_prompt_format?: 'json' | 'function_tag' | 'python_list';
|
|
129
|
+
/**
|
|
130
|
+
* (Optional) List of tool definitions available to the model
|
|
131
|
+
*/
|
|
132
|
+
tools?: Array<InferenceChatCompletionParams.Tool>;
|
|
133
|
+
}
|
|
134
|
+
export declare namespace InferenceChatCompletionParams {
|
|
135
|
+
/**
|
|
136
|
+
* (Optional) If specified, log probabilities for each token position will be
|
|
137
|
+
* returned.
|
|
138
|
+
*/
|
|
139
|
+
interface Logprobs {
|
|
140
|
+
/**
|
|
141
|
+
* How many tokens (for each position) to return log probabilities for.
|
|
142
|
+
*/
|
|
143
|
+
top_k?: number;
|
|
144
|
+
}
|
|
145
|
+
interface Tool {
|
|
146
|
+
tool_name: 'brave_search' | 'wolfram_alpha' | 'photogen' | 'code_interpreter' | (string & {});
|
|
147
|
+
description?: string;
|
|
148
|
+
parameters?: Record<string, Shared.ToolParamDefinition>;
|
|
149
|
+
}
|
|
150
|
+
type InferenceChatCompletionParamsNonStreaming = InferenceAPI.InferenceChatCompletionParamsNonStreaming;
|
|
151
|
+
type InferenceChatCompletionParamsStreaming = InferenceAPI.InferenceChatCompletionParamsStreaming;
|
|
152
|
+
}
|
|
153
|
+
export interface InferenceChatCompletionParamsNonStreaming extends InferenceChatCompletionParamsBase {
|
|
154
|
+
/**
|
|
155
|
+
* (Optional) If True, generate an SSE event stream of the response. Defaults to
|
|
156
|
+
* False.
|
|
157
|
+
*/
|
|
158
|
+
stream?: false;
|
|
159
|
+
}
|
|
160
|
+
export interface InferenceChatCompletionParamsStreaming extends InferenceChatCompletionParamsBase {
|
|
161
|
+
/**
|
|
162
|
+
* (Optional) If True, generate an SSE event stream of the response. Defaults to
|
|
163
|
+
* False.
|
|
164
|
+
*/
|
|
165
|
+
stream: true;
|
|
166
|
+
}
|
|
167
|
+
export type InferenceCompletionParams = InferenceCompletionParamsNonStreaming | InferenceCompletionParamsStreaming;
|
|
168
|
+
export interface InferenceCompletionParamsBase {
|
|
169
|
+
/**
|
|
170
|
+
* The content to generate a completion for
|
|
171
|
+
*/
|
|
172
|
+
content: Shared.InterleavedContent;
|
|
173
|
+
/**
|
|
174
|
+
* The identifier of the model to use. The model must be registered with Llama
|
|
175
|
+
* Stack and available via the /models endpoint.
|
|
176
|
+
*/
|
|
177
|
+
model_id: string;
|
|
178
|
+
/**
|
|
179
|
+
* (Optional) If specified, log probabilities for each token position will be
|
|
180
|
+
* returned.
|
|
181
|
+
*/
|
|
182
|
+
logprobs?: InferenceCompletionParams.Logprobs;
|
|
183
|
+
/**
|
|
184
|
+
* (Optional) Grammar specification for guided (structured) decoding
|
|
185
|
+
*/
|
|
186
|
+
response_format?: Shared.ResponseFormat;
|
|
187
|
+
/**
|
|
188
|
+
* (Optional) Parameters to control the sampling strategy
|
|
189
|
+
*/
|
|
190
|
+
sampling_params?: Shared.SamplingParams;
|
|
191
|
+
/**
|
|
192
|
+
* (Optional) If True, generate an SSE event stream of the response. Defaults to
|
|
193
|
+
* False.
|
|
194
|
+
*/
|
|
195
|
+
stream?: boolean;
|
|
196
|
+
}
|
|
197
|
+
export declare namespace InferenceCompletionParams {
|
|
198
|
+
/**
|
|
199
|
+
* (Optional) If specified, log probabilities for each token position will be
|
|
200
|
+
* returned.
|
|
201
|
+
*/
|
|
202
|
+
interface Logprobs {
|
|
203
|
+
/**
|
|
204
|
+
* How many tokens (for each position) to return log probabilities for.
|
|
205
|
+
*/
|
|
206
|
+
top_k?: number;
|
|
207
|
+
}
|
|
208
|
+
type InferenceCompletionParamsNonStreaming = InferenceAPI.InferenceCompletionParamsNonStreaming;
|
|
209
|
+
type InferenceCompletionParamsStreaming = InferenceAPI.InferenceCompletionParamsStreaming;
|
|
210
|
+
}
|
|
211
|
+
export interface InferenceCompletionParamsNonStreaming extends InferenceCompletionParamsBase {
|
|
212
|
+
/**
|
|
213
|
+
* (Optional) If True, generate an SSE event stream of the response. Defaults to
|
|
214
|
+
* False.
|
|
215
|
+
*/
|
|
216
|
+
stream?: false;
|
|
217
|
+
}
|
|
218
|
+
export interface InferenceCompletionParamsStreaming extends InferenceCompletionParamsBase {
|
|
219
|
+
/**
|
|
220
|
+
* (Optional) If True, generate an SSE event stream of the response. Defaults to
|
|
221
|
+
* False.
|
|
222
|
+
*/
|
|
223
|
+
stream: true;
|
|
224
|
+
}
|
|
225
|
+
export interface InferenceEmbeddingsParams {
|
|
226
|
+
/**
|
|
227
|
+
* List of contents to generate embeddings for. Note that content can be
|
|
228
|
+
* multimodal. The behavior depends on the model and provider. Some models may only
|
|
229
|
+
* support text.
|
|
230
|
+
*/
|
|
231
|
+
contents: Array<Shared.InterleavedContent>;
|
|
232
|
+
/**
|
|
233
|
+
* The identifier of the model to use. The model must be an embedding model
|
|
234
|
+
* registered with Llama Stack and available via the /models endpoint.
|
|
235
|
+
*/
|
|
236
|
+
model_id: string;
|
|
237
|
+
}
|
|
238
|
+
export declare namespace Inference {
|
|
239
|
+
export { type ChatCompletionResponseStreamChunk as ChatCompletionResponseStreamChunk, type CompletionResponse as CompletionResponse, type EmbeddingsResponse as EmbeddingsResponse, type TokenLogProbs as TokenLogProbs, type InferenceChatCompletionParams as InferenceChatCompletionParams, type InferenceChatCompletionParamsNonStreaming as InferenceChatCompletionParamsNonStreaming, type InferenceChatCompletionParamsStreaming as InferenceChatCompletionParamsStreaming, type InferenceCompletionParams as InferenceCompletionParams, type InferenceCompletionParamsNonStreaming as InferenceCompletionParamsNonStreaming, type InferenceCompletionParamsStreaming as InferenceCompletionParamsStreaming, type InferenceEmbeddingsParams as InferenceEmbeddingsParams, };
|
|
240
|
+
}
|
|
241
|
+
//# sourceMappingURL=inference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../src/resources/inference.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,cAAc,CACZ,IAAI,EAAE,yCAAyC,EAC/C,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,UAAU,CAAC,MAAM,CAAC,sBAAsB,CAAC;IAC5C,cAAc,CACZ,IAAI,EAAE,sCAAsC,EAC5C,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,UAAU,CAAC,MAAM,CAAC,iCAAiC,CAAC,CAAC;IACxD,cAAc,CACZ,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,UAAU,CAAC,MAAM,CAAC,iCAAiC,CAAC,GAAG,MAAM,CAAC,sBAAsB,CAAC;IAYxF;;OAEG;IACH,UAAU,CACR,IAAI,EAAE,qCAAqC,EAC3C,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,UAAU,CAAC,kBAAkB,CAAC;IACjC,UAAU,CACR,IAAI,EAAE,kCAAkC,EACxC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IACzC,UAAU,CACR,IAAI,EAA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A6B,EACnE,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.Inference = void 0;
|
|
5
|
+
const resource_1 = require("../resource.js");
|
|
6
|
+
class Inference extends resource_1.APIResource {
|
|
7
|
+
chatCompletion(body, options) {
|
|
8
|
+
return this._client.post('/v1/inference/chat-completion', {
|
|
9
|
+
body,
|
|
10
|
+
...options,
|
|
11
|
+
stream: body.stream ?? false,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
completion(body, options) {
|
|
15
|
+
return this._client.post('/v1/inference/completion', {
|
|
16
|
+
body,
|
|
17
|
+
...options,
|
|
18
|
+
stream: body.stream ?? false,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Generate embeddings for content pieces using the specified model.
|
|
23
|
+
*/
|
|
24
|
+
embeddings(body, options) {
|
|
25
|
+
return this._client.post('/v1/inference/embeddings', { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.Inference = Inference;
|
|
29
|
+
//# sourceMappingURL=inference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inference.js","sourceRoot":"","sources":["../src/resources/inference.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAO1C,MAAa,SAAU,SAAQ,sBAAW;IAgBxC,cAAc,CACZ,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE;YACxD,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;SAC7B,CAAsG,CAAC;IAC1G,CAAC;IAiBD,UAAU,CACR,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;SAC7B,CAA4E,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,UAAU,CACR,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AA9DD,8BA8DC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../resource.mjs";
|
|
3
|
+
export class Inference extends APIResource {
|
|
4
|
+
chatCompletion(body, options) {
|
|
5
|
+
return this._client.post('/v1/inference/chat-completion', {
|
|
6
|
+
body,
|
|
7
|
+
...options,
|
|
8
|
+
stream: body.stream ?? false,
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
completion(body, options) {
|
|
12
|
+
return this._client.post('/v1/inference/completion', {
|
|
13
|
+
body,
|
|
14
|
+
...options,
|
|
15
|
+
stream: body.stream ?? false,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Generate embeddings for content pieces using the specified model.
|
|
20
|
+
*/
|
|
21
|
+
embeddings(body, options) {
|
|
22
|
+
return this._client.post('/v1/inference/embeddings', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=inference.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inference.mjs","sourceRoot":"","sources":["../src/resources/inference.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAOtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IAgBxC,cAAc,CACZ,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE;YACxD,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;SAC7B,CAAsG,CAAC;IAC1G,CAAC;IAiBD,UAAU,CACR,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;SAC7B,CAA4E,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,UAAU,CACR,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
export declare class Inspect extends APIResource {
|
|
4
|
+
health(options?: Core.RequestOptions): Core.APIPromise<HealthInfo>;
|
|
5
|
+
version(options?: Core.RequestOptions): Core.APIPromise<VersionInfo>;
|
|
6
|
+
}
|
|
7
|
+
export interface HealthInfo {
|
|
8
|
+
status: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ProviderInfo {
|
|
11
|
+
api: string;
|
|
12
|
+
provider_id: string;
|
|
13
|
+
provider_type: string;
|
|
14
|
+
}
|
|
15
|
+
export interface RouteInfo {
|
|
16
|
+
method: string;
|
|
17
|
+
provider_types: Array<string>;
|
|
18
|
+
route: string;
|
|
19
|
+
}
|
|
20
|
+
export interface VersionInfo {
|
|
21
|
+
version: string;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace Inspect {
|
|
24
|
+
export { type HealthInfo as HealthInfo, type ProviderInfo as ProviderInfo, type RouteInfo as RouteInfo, type VersionInfo as VersionInfo, };
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=inspect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../src/resources/inspect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;IAIlE,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;CAGrE;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IAEZ,WAAW,EAAE,MAAM,CAAC;IAEpB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IAEf,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,WAAW,IAAI,WAAW,GAChC,CAAC;CACH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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.Inspect = void 0;
|
|
5
|
+
const resource_1 = require("../resource.js");
|
|
6
|
+
class Inspect extends resource_1.APIResource {
|
|
7
|
+
health(options) {
|
|
8
|
+
return this._client.get('/v1/health', options);
|
|
9
|
+
}
|
|
10
|
+
version(options) {
|
|
11
|
+
return this._client.get('/v1/version', options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.Inspect = Inspect;
|
|
15
|
+
//# sourceMappingURL=inspect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect.js","sourceRoot":"","sources":["../src/resources/inspect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,OAAQ,SAAQ,sBAAW;IACtC,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED,OAAO,CAAC,OAA6B;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF;AARD,0BAQC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../resource.mjs";
|
|
3
|
+
export class Inspect extends APIResource {
|
|
4
|
+
health(options) {
|
|
5
|
+
return this._client.get('/v1/health', options);
|
|
6
|
+
}
|
|
7
|
+
version(options) {
|
|
8
|
+
return this._client.get('/v1/version', options);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=inspect.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect.mjs","sourceRoot":"","sources":["../src/resources/inspect.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED,OAAO,CAAC,OAA6B;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF"}
|