Skip to main content

Crate acdp_primitives

Crate acdp_primitives 

Source
Expand description

§acdp-primitives — foundational types for the Agent Context Distribution Protocol

The bottom layer of the acdp crate family: the typed error vocabulary (error::AcdpError), the opaque identifier/enum primitives (primitives), the wire error envelope (wire_error), and small shared utilities (limits, time, serde_helpers). It has no cryptography and makes no network calls.

Most users should depend on the umbrella acdp crate, which re-exports everything here.

Re-exports§

pub use error::AcdpError;
pub use error::SupersessionReason;
pub use primitives::AgentDid;
pub use primitives::ContentHash;
pub use primitives::ContextType;
pub use primitives::CtxId;
pub use primitives::LineageId;
pub use primitives::Status;
pub use primitives::Visibility;
pub use wire_error::WireError;
pub use wire_error::WireErrorBody;

Modules§

error
Error types for the ACDP library.
limits
Network-policy constants shared by client and server code.
primitives
serde_helpers
Shared serde helpers for the ACDP wire types.
time
Time helpers shared by the producer builder and search-params formatter.
wire_error
Wire error envelope returned by the registry on all error responses.

Constants§

ACDP_SCHEMA_NAMESPACE
The JSON Schema namespace ($id prefix) for this protocol version, e.g. <ACDP_SCHEMA_NAMESPACE>/acdp-error.schema.json.
ACDP_VERSION
The ACDP protocol version this library implements.