~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/asyncai

0
0
main
15 lines · 390 B Raw History
use thiserror::Error;

#[derive(Debug, Error)]
pub enum AgiError {
    #[error("agent error: {0}")]
    Agent(String),
    #[error("action channel closed")]
    ActionChannelClosed,
    #[error("output channel closed")]
    OutputChannelClosed,
    #[error("serialization error: {0}")]
    Serialize(String),
    #[error("task join error: {0}")]
    Join(#[from] tokio::task::JoinError),
}