use thiserror::Error;
#[derive(Debug, Error)]
pub enum LlmError {
#[error("ANTHROPIC_API_KEY not set")]
NoApiKey,
#[error("http: {0}")]
Http(#[from] reqwest::Error),
#[error("unexpected status {status}: {body}")]
UnexpectedStatus {
status: u16,
body: String,
},
#[error("parse: {0}")]
ParseFailure(#[from] serde_json::Error),
#[error("no llm available")]
NoLlmAvailable,
}