use thiserror::Error;
#[derive(Error, Debug)]
pub enum ClientError {
#[error("A2A protocol error: {0}")]
A2AError(#[from] a2a_rs::A2AError),
#[error("WebSocket client not configured")]
WebSocketNotConfigured,
#[error("Failed to auto-detect available transports: {0}")]
AutoDetectionFailed(String),
#[error("Invalid configuration: {0}")]
InvalidConfiguration(String),
}
pub type Result<T> = std::result::Result<T, ClientError>;