oris-runtime 0.15.0

An agentic workflow runtime and programmable AI execution system in Rust: stateful graphs, agents, tools, and multi-step execution.
1
2
3
4
5
6
7
8
9
10
11
//! State trait for the Oris kernel.
//!
//! State must be serializable and versioned for schema evolution (2.0 migration).

/// Kernel state: cloneable, send, sync, and with a schema version for migrations.
///
/// Existing graph::State can implement this by adding `fn version(&self) -> u32` (e.g. returning 1).
pub trait KernelState: Clone + Send + Sync + 'static {
    /// Schema version for state migration (e.g. 1, 2, ...).
    fn version(&self) -> u32;
}