Skip to main content
Tell the agent framework exactly which runtime features you need — it validates compatibility before your agent runs.
The user sets runtime requirements on the agent; compatibility is checked before the first turn runs.

Quick Start

1

Declare Required Capabilities

Specify what your agent needs — the framework validates this before execution:
2

Prefer a Specific Runtime with Fallback

Request a specific runtime but allow fallback if unavailable:

Which Runtime Option Fits?

Pick the smallest option that expresses your requirement.

How It Works


Configuration Options

RuntimeConfig SDK Reference

Full parameter reference for RuntimeConfig
Precedence ladder:

Common Patterns

Require streaming capability:
MCP-capable agent:

Best Practices

Fail-fast validation (the default) catches capability mismatches immediately when the agent is created, not mid-execution. This prevents hard-to-debug runtime failures.
If your agent genuinely cannot function without a specific capability (e.g., MCP tools), set fallback_allowed=False. This gives a clear error instead of silently falling back to a degraded runtime.
Check the Runtime Capabilities page for the list of valid capability names supported by each runtime.

Runtime Capabilities

List of all available runtime capabilities

Runtime Preflight

Pre-execution runtime validation

Runtime MCP

MCP tool runtime configuration

Agent Runtime Protocol

How agents communicate with runtimes