Plato SDK v2
The Plato SDK v2 provides a clean, typed async API for creating and managing sessions and environments.Installation
Quick Start
Core Concepts
Sessions
A Session is a container for one or more environments. Sessions:- Group related environments together
- Provide session-level operations (reset, evaluate, snapshot)
- Handle heartbeats automatically to keep environments alive
- Can be serialized and restored for long-running workflows
Environments
An Environment is a single VM running a simulator. Each environment:- Has an alias for identification
- Can execute shell commands
- Tracks state changes (database mutations, file changes)
- Supports snapshots for checkpointing
Environment Types
Use theEnv helper to create different environment configurations: