1
2
3
4
5
6
7
8
9
10
use thiserror::Error;

#[derive(Error, Debug)]
pub enum AnthropicError {
    #[error("Request error: {0}")]
    RequestError(#[from] reqwest::Error),
    #[error("JSON Error {0}")] // Add this variant
    JsonError(#[from] serde_json::Error),
    // Add more error variants as needed
}