systemprompt-agent 0.15.0

Agent-to-Agent (A2A) protocol for systemprompt.io AI governance: streaming, JSON-RPC models, task lifecycle, .well-known discovery, and governed agent orchestration.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! JSON-RPC 2.0 error construction for the A2A server.
//!
//! Exposes [`JsonRpcErrorBuilder`] for assembling spec-compliant error
//! envelopes, the [`unauthorized_response`] / [`forbidden_response`] helpers
//! for auth failures, and [`classify_database_error`] for mapping repository
//! errors onto user-facing messages.

pub mod jsonrpc;

pub use jsonrpc::{
    JsonRpcErrorBuilder, classify_database_error, forbidden_response, unauthorized_response,
};