agent-cid 0.1.0

Content-addressed artifact manifest for AI agents (Rust port of @p-vbordei/agent-cid)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("{0}")]
    Invalid(String),
    #[error("http error: {0}")]
    Http(String),
    #[error("did:web fetch {0}: HTTP {1}")]
    DidWebHttp(String, u16),
    #[error("did:web doc size {size} > limit {limit}")]
    DidWebTooLarge { size: usize, limit: usize },
    #[error("json: {0}")]
    Json(#[from] serde_json::Error),
    #[error("io: {0}")]
    Io(#[from] std::io::Error),
}