aether-acp-utils 0.1.8

Agent Client Protocol (ACP) utilities for the Aether AI agent framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Errors returned by ACP client-side operations.
#[derive(Debug, thiserror::Error)]
pub enum AcpClientError {
    #[error("failed to spawn agent subprocess: {0}")]
    SpawnFailed(#[source] std::io::Error),

    #[error("agent subprocess crashed: {0}")]
    AgentCrashed(String),

    #[error("ACP protocol error: {0}")]
    Protocol(#[source] agent_client_protocol::Error),
}

impl From<agent_client_protocol::Error> for AcpClientError {
    fn from(e: agent_client_protocol::Error) -> Self {
        Self::Protocol(e)
    }
}