systemprompt-models 0.6.1

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
//! Errors raised while decoding MCP `_meta` payloads.

#[derive(Debug, thiserror::Error)]
pub enum MetadataError {
    #[error("McpToolResultMetadata: mcp_execution_id cannot be empty")]
    MissingExecutionId,

    #[error("CallToolResult._meta is missing (required for MCP execution tracking)")]
    MetaMissing,

    #[error("Failed to serialize McpToolResultMetadata as JSON object")]
    NotJsonObject,

    #[error(transparent)]
    Serde(#[from] serde_json::Error),
}