1. Agent steps
  2. Runtimes

A runtime decides how the agent works and which model it uses. The signature, the tools and the output checks are the same on all three, so you can change runtime without rewriting the step.

@ava.agent_step(ExtractInvoice, runtime=ava.runtimes.ClaudeAgent(model="claude-haiku-5-5"))
async def extract_invoice(text: str, *, agent: ava.Agent) -> Invoice: ...
RuntimeHow the agent worksInstall
PredictRLM (default)Writes and runs Python in a sandboxavalanche-ai[agents]
ClaudeAgentClaude, through the Claude Agent SDKavalanche-ai[claude]
OpenAIAgentAn OpenAI model, through the OpenAI Agents SDKavalanche-ai[openai]

​
One runtime for the whole workflow

@ava.workflow(agent_defaults={"runtime": ava.runtimes.PredictRLM(lm="openai/gpt-5.5")})
def process_invoice(): ...

A step’s own runtime= wins. When both are the same kind, the step only overrides the fields it sets.

​
PredictRLM

The default. The agent solves the task by writing Python and running it in a sandbox, turn after turn, until it has the outputs. Good for data, documents and anything that benefits from code.

ava.runtimes.PredictRLM(
    lm="openai/gpt-5.5",          # the model that writes the code
    sub_lm="openai/gpt-5.5",      # the model the code calls for small predictions
    max_iterations=30,
)
OptionDefaultMeaning
lmnoneMain model, as provider/model.
sub_lmnoneModel used by the agent’s predict calls.
max_iterations30Most code-writing turns.
max_llm_calls50Most model calls in one run of the step.
skillsnonePredictRLM’s own skills, such as pdf, docx, spreadsheet.
allowed_domainsnoneSites the sandbox may reach.

Specific to PredictRLM: its trace shows the generated Python and its output for every turn.

​
ClaudeAgent

Runs Claude through the Claude Agent SDK. The agent uses your step’s tools, plus any Claude Code tools you allow.

ava.runtimes.ClaudeAgent(
    model="claude-haiku-5-5",
    max_turns=10,
    builtin_tools=("Read", "Grep"),
)
OptionDefaultMeaning
modelClaude’s own defaultThe Claude model.
max_turnsno limitMost model turns.
builtin_toolsnoneClaude Code tools the agent may use, such as "Read" or "Bash".
permission_mode"default"Claude Code permission mode.
max_budget_usdno limitSpending limit for one call.
system_prompt_appendnoneText added after the signature’s instructions.
narrateTrueThe agent says what it is about to do before each tool call.

Sign in with ANTHROPIC_API_KEY, or with a Claude subscription token in CLAUDE_CODE_OAUTH_TOKEN.

Specific to ClaudeAgent: a Workspace input becomes the agent’s working folder, and skills are supported.

​
OpenAIAgent

Runs an OpenAI model through the OpenAI Agents SDK.

ava.runtimes.OpenAIAgent(
    model="gpt-5.4-mini",
    max_turns=6,
    builtin_tools=("filesystem", "shell"),
)
OptionDefaultMeaning
modelthe SDK’s defaultThe OpenAI model.
max_turnsthe SDK’s limitMost model responses.
builtin_toolsnone"filesystem" and "shell": let the agent edit files and run commands in a sandbox.
system_prompt_appendnoneText added after the signature’s instructions.
narrateTrueThe agent says what it is about to do before each tool call.
tracingFalseAlso send the SDK’s own trace to OpenAI.

Sign in with OPENAI_API_KEY.

Specific to OpenAIAgent: input files are attached to the model’s message, and skills are supported.

​
In the UI

The runtime and its model appear on the step’s Agent definition tab, under Models and Runtime. See the screenshot on Agent steps.