systemprompt-ai 0.15.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
//! Persistence for AI request records and their conversation turns.
//!
//! [`AiRequestRepository`] owns the `ai_requests`, `ai_request_messages`, and
//! `ai_request_tool_calls` tables. Inserts and status updates live in the
//! mutations submodule, read paths in queries, and per-turn message/tool-call
//! writes in message operations. [`UpdateCompletionParams`] and
//! [`InsertToolCallParams`] are the grouped argument structs for the wider
//! write methods.

mod message_operations;
mod mutations;
mod queries;
mod repository;

pub use message_operations::InsertToolCallParams;
pub use mutations::UpdateCompletionParams;
pub use repository::AiRequestRepository;