use agentkit_http::HttpError;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum AnthropicError {
#[error("missing or invalid environment variable {0}")]
MissingEnv(&'static str),
#[error("no Anthropic credentials configured: set api_key or auth_token")]
MissingCredentials,
#[error("max_tokens must be greater than zero")]
InvalidMaxTokens,
#[error(transparent)]
HttpClient(#[from] HttpError),
}