Public declaration syntax from forge-rs/crates/forge-litellm/src/error.rs Original source SHA-256: a68a8793bb1766a37d954f8df1ce5714b2eadf2b90c31625ab808a62509d09be Function bodies and constant values are omitted. This is not the complete implementation. Source line 9 #[derive(Debug, Error)] pub enum LiteLlmError { /// The LiteLLM proxy returned an error response. #[error("LiteLLM proxy at '{base_url}' returned error for model '{model}': {status} — {body}")] ProxyError { /// The LiteLLM proxy base URL. base_url: String, /// The model that was requested. model: String, /// The HTTP status code. status: u16, /// The response body (truncated if large). body: String, }, /// The LiteLLM proxy is unreachable. #[error("LiteLLM proxy at '{base_url}' is unreachable: {reason}")] ProxyUnreachable { /// The LiteLLM proxy base URL. base_url: String, /// Human-readable connection error. reason: String, }, /// The LiteLLM proxy returned a response that could not be parsed. #[error( "LiteLLM proxy at '{base_url}' returned unparseable response for model '{model}': {reason}" )] InvalidResponse { /// The LiteLLM proxy base URL. base_url: String, /// The model that was requested. model: String, /// What failed during parsing. reason: String, }, /// LiteLLM configuration is invalid. #[error("invalid LiteLLM configuration: {reason}")] InvalidConfig { /// What is wrong with the configuration. reason: String, }, /// A Forge core error occurred during translation. #[error("forge core error: {0}")] ForgeCore(#[from] forge_core::error::ForgeError), } Source line 58 pub type LiteLlmResult = Result;