axoniac 0.1.1

Rust client for the Axoniac API — agent packs, tenants, memories
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Error types for the Axoniac client.

#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("HTTP request failed: {0}")]
    Request(#[from] reqwest::Error),

    #[error("API error ({status}): {message}")]
    Api { status: u16, message: String },

    #[error("Invalid configuration: {0}")]
    Config(String),

    #[error("JSON error: {0}")]
    Json(#[from] serde_json::Error),
}