Purpose
Tokio-powered execution, supervision, restart policies, circuit breakers, health checks, metrics, sandboxing, and scheduling.
Key APIs
- Runtime
- Supervisor
- RestartPolicy
- HealthCheck
- Scheduler
Dependencies
agent-core · messaging
used by: rustyai
runtime.rs
use runtime::prelude::*;Runtime::builder() .supervisor(RestartPolicy::exponential_backoff()) .spawn(Researcher::default()) .run() .await?;Cargo.toml
[dependencies]runtime = "0.2"See it in a running system.
The xbot case study shows agent-core and cognition driving a long-lived autonomous application.