systemprompt-models 0.14.0

Foundation data models for systemprompt.io AI governance infrastructure. Shared DTOs, config, and domain types consumed by every layer of the MCP governance pipeline.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Provider-neutral request, response, and streaming-event model.
//!
//! Inbound adapters parse a wire request into a [`CanonicalRequest`] of
//! [`CanonicalMessage`]s carrying [`CanonicalContent`] parts; outbound adapters
//! render it back out and translate the upstream reply into a
//! [`CanonicalResponse`] or a stream of [`CanonicalEvent`]s.

mod request;
mod response;

pub use request::{
    CanonicalContent, CanonicalMessage, CanonicalRequest, CanonicalTool, CanonicalToolChoice,
    ImageDetail, ImageSource, ReasoningEffort, ResponseFormat, Role, SearchConfig, ThinkingConfig,
};
pub use response::{
    CanonicalEvent, CanonicalResponse, CanonicalStopReason, CanonicalUsage, CodeExecutionOutput,
    ContentBlockKind, GroundedSource, Grounding,
};