awaken-runtime 0.4.0

Phase-based execution engine, plugin system, and agent loop for Awaken
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use awaken_contract::StateError;
use thiserror::Error;

/// Runtime-specific errors that wrap [`StateError`] and add variants
/// for agent resolution and run management.
#[derive(Debug, Error, Clone, PartialEq, Eq)]
pub enum RuntimeError {
    #[error(transparent)]
    State(#[from] StateError),
    #[error("thread already has an active run: {thread_id}")]
    ThreadAlreadyRunning { thread_id: String },
    #[error("agent not found: {agent_id}")]
    AgentNotFound { agent_id: String },
    #[error("resolve failed: {message}")]
    ResolveFailed { message: String },
}