examples/

directory
v1.246.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: BSD-3-Clause, MIT

Directories

Path Synopsis
ads
smoke command
Smoke the ADS client against a live API.
Smoke the ADS client against a live API.
agent-inference
chat-completion command
Command chat-completion runs a non-streaming chat completion against a DigitalOcean Agent Inference endpoint.
Command chat-completion runs a non-streaming chat completion against a DigitalOcean Agent Inference endpoint.
agent-platform
cancel-model-evaluation-run command
Command cancel-model-evaluation-run cancels an in-progress model evaluation run via the Agent Platform API.
Command cancel-model-evaluation-run cancels an in-progress model evaluation run via the Agent Platform API.
create-model-eval-dataset-upload-presigned-urls command
Command create-model-eval-dataset-upload-presigned-urls creates presigned URLs that can be used to upload model evaluation dataset files via the Agent Platform API.
Command create-model-eval-dataset-upload-presigned-urls creates presigned URLs that can be used to upload model evaluation dataset files via the Agent Platform API.
create-model-evaluation-run command
Command create-model-evaluation-run creates a new model evaluation run via the Agent Platform API.
Command create-model-evaluation-run creates a new model evaluation run via the Agent Platform API.
delete-model-evaluation-preset command
Command delete-model-evaluation-preset deletes a saved model evaluation preset via the Agent Platform API.
Command delete-model-evaluation-preset deletes a saved model evaluation preset via the Agent Platform API.
get-model-evaluation-preset command
Command get-model-evaluation-preset retrieves a saved model evaluation preset via the Agent Platform API.
Command get-model-evaluation-preset retrieves a saved model evaluation preset via the Agent Platform API.
get-model-evaluation-run command
Command get-model-evaluation-run retrieves a model evaluation run, including the run summary, aggregated result metrics, and a paginated list of per-prompt results, via the Agent Platform API.
Command get-model-evaluation-run retrieves a model evaluation run, including the run summary, aggregated result metrics, and a paginated list of per-prompt results, via the Agent Platform API.
get-model-evaluation-run-results-download-url command
Command get-model-evaluation-run-results-download-url returns a presigned download URL for a model evaluation run's results (gzip-compressed JSON) via the Agent Platform API.
Command get-model-evaluation-run-results-download-url returns a presigned download URL for a model evaluation run's results (gzip-compressed JSON) via the Agent Platform API.
list-evaluation-datasets command
Command list-evaluation-datasets lists evaluation datasets via the Agent Platform API.
Command list-evaluation-datasets lists evaluation datasets via the Agent Platform API.
list-model-evaluation-metrics command
Command list-model-evaluation-metrics lists all available metrics that can be selected when creating a model evaluation run, via the Agent Platform API.
Command list-model-evaluation-metrics lists all available metrics that can be selected when creating a model evaluation run, via the Agent Platform API.
list-model-evaluation-presets command
Command list-model-evaluation-presets lists all saved model evaluation presets via the Agent Platform API.
Command list-model-evaluation-presets lists all saved model evaluation presets via the Agent Platform API.
list-model-evaluation-runs command
Command list-model-evaluation-runs lists model evaluation runs, optionally filtered by preset UUID, status (single or multiple), candidate model source types, and free-text search.
Command list-model-evaluation-runs lists model evaluation runs, optionally filtered by preset UUID, status (single or multiple), candidate model source types, and free-text search.
hosted-agents
auth command
create-session command
destroy-session command
exec-in-sandbox command
get-session command
list-sessions command
pause-session command
resolve-hitl command
resume-session command
send-input command
smoke-test command
stream-session command
insights
smoke command
Smoke the Insights client against a live API.
Smoke the Insights client against a live API.
serverless-inference
chat-completion command
Command chat-completion runs a non-streaming chat completion via the Serverless Inference API.
Command chat-completion runs a non-streaming chat completion via the Serverless Inference API.
chat-completion-mcp command
Command chat-completion-mcp runs a chat completion with the MCP server-side tool.
Command chat-completion-mcp runs a chat completion with the MCP server-side tool.
chat-completion-streaming command
Command chat-completion-streaming streams a chat completion via the Serverless Inference API.
Command chat-completion-streaming streams a chat completion via the Serverless Inference API.
chat-completion-vlm command
Command chat-completion-vlm runs a multimodal chat completion with text and image content.
Command chat-completion-vlm runs a multimodal chat completion with text and image content.
embeddings command
Command embeddings creates embedding vectors via the Serverless Inference API.
Command embeddings creates embedding vectors via the Serverless Inference API.
image-generation command
Command image-generation generates a single image via the Serverless Inference API and writes it to image.png.
Command image-generation generates a single image via the Serverless Inference API and writes it to image.png.
image-streaming command
Command image-streaming streams partial-image events via the Serverless Inference API.
Command image-streaming streams partial-image events via the Serverless Inference API.
list-models command
Command list-models lists the models reachable through the Serverless Inference API.
Command list-models lists the models reachable through the Serverless Inference API.
messages command
Command messages sends a non-streaming message via the Anthropic-compatible /v1/messages endpoint of the Serverless Inference API.
Command messages sends a non-streaming message via the Anthropic-compatible /v1/messages endpoint of the Serverless Inference API.
messages-streaming command
Command messages-streaming streams an Anthropic-style message from the Serverless Inference /v1/messages endpoint.
Command messages-streaming streams an Anthropic-style message from the Serverless Inference /v1/messages endpoint.
responses command
Command responses runs a non-streaming /v1/responses call via the Serverless Inference API.
Command responses runs a non-streaming /v1/responses call via the Serverless Inference API.
responses-streaming command
Command responses-streaming streams a /v1/responses call via the Serverless Inference API.
Command responses-streaming streams a /v1/responses call via the Serverless Inference API.
responses-web-search command
Command responses-web-search runs a /v1/responses call with the web_search server-side tool.
Command responses-web-search runs a /v1/responses call with the web_search server-side tool.
text-to-speech command
Command text-to-speech calls POST /v1/audio/speech and writes the audio file.
Command text-to-speech calls POST /v1/audio/speech and writes the audio file.
video-generation command
Command video-generation starts an async video job, polls to completion, and writes output.mp4 via the content endpoint (or a presigned output URL).
Command video-generation starts an async video job, polls to completion, and writes output.mp4 via the content endpoint (or a presigned output URL).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL