arena agent¶
List, deploy, run, and generate with Arena agents.
Usage
arena agent [OPTIONS] COMMAND [ARGS]...
arena agent delete¶
Archive a deployment.
Usage
arena agent delete [OPTIONS] NAME
Options
- --yes¶
Archive without an interactive prompt.
- --experiment-name <experiment_name>¶
Experiment name when several deployments share this name.
- --project-name <project_name>¶
Project name when several deployments share this name.
Arguments
- NAME¶
Required argument
arena agent deploy¶
Deploy an agent from an experiment checkpoint.
A deployment’s memory scope is fixed once it exists, so --memory-scope
only takes effect on the first deploy.
Without --num-gpus and --gpu-type, a redeploy keeps the agent’s
resources and a new deployment uses Arena’s default.
Usage
arena agent deploy [OPTIONS] EXPERIMENT_NAME
Options
- --checkpoint <checkpoint>¶
Steps of the checkpoint to deploy, from arena experiments checkpoints. Omit to deploy the checkpoint with the most steps.
- --memory-scope <memory_scope>¶
Who the deployment keeps chat sessions for. New deployments default to ‘user’. Redeploying without this flag keeps the stored scope.
- Options:
user | organization
- --num-gpus <num_gpus>¶
GPUs on the deployment’s node.
- --gpu-type <gpu_type>¶
Short GPU name such as h100-80, b200 or l4.
Arguments
- EXPERIMENT_NAME¶
Required argument
arena agent generate¶
Stream a completion from a prompt through a deployed agent.
Omit deployment_name to use the agent set by arena agent run. Prompts
continue the current conversation, starting one on the first prompt, so a
deployment that keeps chat history remembers what you asked.
Usage
arena agent generate [OPTIONS] [DEPLOYMENT_NAME]
Options
- --project-name <project_name>¶
Project name (exact) — narrows duplicate deployment names.
- --experiment-name <experiment_name>¶
Experiment name (exact) — narrows duplicate deployment names.
- --refresh¶
Refetch the deployment URL from Arena instead of using the local cache.
- --prompt <prompt>¶
Required Prompt text for the deployment.
- --session-id <session_id>¶
Chat session to continue. Overrides a session set by ‘arena agent sessions resume’.
- --new-session¶
Start a new conversation and continue it in later prompts.
- --max-tokens <max_tokens>¶
Most tokens the answer may run to. A longer answer is cut off.
- Default:
512
Arguments
- DEPLOYMENT_NAME¶
Optional argument
arena agent list¶
List deployed agents.
Usage
arena agent list [OPTIONS]
Options
- --name <name>¶
Exact deployment name filter.
- --experiment-name <experiment_name>¶
Exact experiment name filter.
- --project-name <project_name>¶
Exact project name filter.
arena agent run¶
Select a deployment as the active agent to use for inference.
Usage
arena agent run [OPTIONS] DEPLOYMENT_NAME
Options
- --project-name <project_name>¶
Project name (exact) — narrows duplicate deployment names.
- --experiment-name <experiment_name>¶
Experiment name (exact) — narrows duplicate deployment names.
- --refresh¶
Refetch the deployment URL from Arena instead of using the local cache.
Arguments
- DEPLOYMENT_NAME¶
Required argument
arena agent sessions¶
Browse chat sessions held by a deployed agent.
Usage
arena agent sessions [OPTIONS] COMMAND [ARGS]...
arena agent sessions clear¶
Clear the current session, so the next prompt starts a new conversation.
Omit deployment_name to use the agent set by arena agent run. Only the
local pointer is cleared; the session itself stays on the deployment and
arena agent sessions resume can pick it up again.
Usage
arena agent sessions clear [OPTIONS] [DEPLOYMENT_NAME]
Arguments
- DEPLOYMENT_NAME¶
Optional argument
arena agent sessions delete¶
Delete a chat session and its history from the deployment.
Omit deployment_name to use the agent set by arena agent run. Unlike
arena agent sessions clear, this cannot be undone: the messages are gone
from the deployment, not just from this machine.
Usage
arena agent sessions delete [OPTIONS] SESSION_ID [DEPLOYMENT_NAME]
Options
- --project-name <project_name>¶
Project name (exact) — narrows duplicate deployment names.
- --experiment-name <experiment_name>¶
Experiment name (exact) — narrows duplicate deployment names.
- --refresh¶
Refetch the deployment URL from Arena instead of using the local cache.
- --yes¶
Confirm deletion without interactive prompt.
Arguments
- SESSION_ID¶
Required argument
- DEPLOYMENT_NAME¶
Optional argument
arena agent sessions get¶
Show one chat session and its messages.
Omit deployment_name to use the agent set by arena agent run.
Usage
arena agent sessions get [OPTIONS] SESSION_ID [DEPLOYMENT_NAME]
Options
- --project-name <project_name>¶
Project name (exact) — narrows duplicate deployment names.
- --experiment-name <experiment_name>¶
Experiment name (exact) — narrows duplicate deployment names.
- --refresh¶
Refetch the deployment URL from Arena instead of using the local cache.
Arguments
- SESSION_ID¶
Required argument
- DEPLOYMENT_NAME¶
Optional argument
arena agent sessions list¶
List your chat sessions with a deployed agent.
Omit deployment_name to use the agent set by arena agent run. The
session being resumed, if any, is marked in the first column.
Usage
arena agent sessions list [OPTIONS] [DEPLOYMENT_NAME]
Options
- --project-name <project_name>¶
Project name (exact) — narrows duplicate deployment names.
- --experiment-name <experiment_name>¶
Experiment name (exact) — narrows duplicate deployment names.
- --refresh¶
Refetch the deployment URL from Arena instead of using the local cache.
Arguments
- DEPLOYMENT_NAME¶
Optional argument
arena agent sessions resume¶
Continue a chat session in later commands without repeating its id.
Omit --session-id to choose one with the arrow keys. The session is
remembered per deployment, so arena agent generate --prompt '...' carries
on the conversation until you run arena agent sessions clear.
Usage
arena agent sessions resume [OPTIONS] [DEPLOYMENT_NAME]
Options
- --project-name <project_name>¶
Project name (exact) — narrows duplicate deployment names.
- --experiment-name <experiment_name>¶
Experiment name (exact) — narrows duplicate deployment names.
- --refresh¶
Refetch the deployment URL from Arena instead of using the local cache.
- --session-id <session_id>¶
Session to resume. Omit to pick one from a list.
Arguments
- DEPLOYMENT_NAME¶
Optional argument
arena agent update¶
Rename, describe, or enable a deployment.
Usage
arena agent update [OPTIONS] NAME
Options
- --new-name <new_name>¶
Replacement display name.
- --description <description>¶
Replacement description.
- --enabled, --disabled¶
Enable or disable the deployment.
- --experiment-name <experiment_name>¶
Experiment name when several deployments share this name.
- --project-name <project_name>¶
Project name when several deployments share this name.
Arguments
- NAME¶
Required argument