Skip to main content
Managed Runtime Protocol defines the interface for remote agent execution where the entire agent loop runs on provider infrastructure.
The user delegates a task; the full agent loop executes on managed provider infrastructure via the runtime protocol.

Protocol Choice

Quick Start

1

Basic Lifecycle

Create agent, environment, session, then send events and stream responses.
2

With Advanced Configuration

Full configuration with packages, networking, and vaults.

How It Works


Protocol Methods

Agent Management

Environment Management

Session Management

Event Handling


Common Patterns

Multi-Turn Conversation

Agent Version Pinning

Session Cleanup


Best Practices

Create agents and environments once, reuse across sessions:
Handle network failures and provider errors gracefully:
Handle different event types appropriately:
  • Reuse agent/environment definitions across sessions
  • Use appropriate session cleanup (archive vs delete)
  • Pin agent versions for consistent behavior
  • Filter list operations to reduce API calls

Sandboxed Agent

Local agent loop with optional tool sandboxing

Managed Agent Lifecycle

Complete CRUD operations for agents, environments, sessions