systemprompt-ai 0.13.0

Provider-agnostic LLM integration for systemprompt.io AI governance — Anthropic, OpenAI, Gemini, and local models unified behind one governed pipeline with cost tracking and audit.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Declarative, version-controlled gateway-policy bootstrap.
//!
//! Gateway policies (per-call ceilings, quota windows, safety config) live in
//! `ai_gateway_policies`. This module gives them the same config-driven
//! bootstrap path that access-control rules already have: a committed
//! `services/gateway/policies.yaml` is ingested into the DB at every server
//! boot via [`load_from_yaml`]. Model exposure is owned by the profile
//! catalog, not by this spec.

mod config;
mod ingestion;
mod loader;
mod spec;

pub use config::{GatewayPolicyConfig, GatewayPolicyEntry};
pub use ingestion::{GatewayPolicyIngestionService, IngestOptions, IngestReport};
pub use loader::{GATEWAY_POLICIES_FILE, load_from_yaml};
pub use spec::{GatewayPolicySpec, QuotaWindow, SafetyConfig};