Skip to main content

car_multi/
error.rs

1//! Error types for multi-agent coordination.
2
3#[derive(Debug, thiserror::Error)]
4pub enum MultiError {
5    #[error("agent '{0}' failed: {1}")]
6    AgentFailed(String, String),
7
8    #[error("mailbox send error: {0}")]
9    MailboxSend(String),
10
11    #[error("mailbox recv timeout for agent '{0}'")]
12    MailboxTimeout(String),
13
14    #[error("unknown specialist: '{0}'")]
15    UnknownSpecialist(String),
16
17    #[error("no agents produced output")]
18    NoOutput,
19
20    #[error("max rounds exceeded: {0}")]
21    MaxRoundsExceeded(u32),
22}