agentic-server-core 0.3.0

Framework-agnostic core library for agentic-api
Documentation
//! Storage layer for persistence operations.

// Database URL classification and sanitization
pub mod backend;

// Strong types for storage operations (newtype pattern)
pub mod types;

// Database connection pooling and initialization
pub mod pool;

// Database schema management and migrations
pub mod schema;

// Database schema models (sqlx FromRow types)
pub mod models;

// Response storage operations
pub mod response;

// Conversation storage operations
pub mod conversation;

// Re-export commonly used types for convenience
pub use backend::DatabaseBackend;
pub use conversation::ConversationStore;
pub use models::Conversation as DbConversation;
pub use models::Item;
pub use models::Response as DbResponse;
pub use pool::{
    DbPool, DbResult, DbTransaction, create_pool, create_pool_with_configs, create_pool_with_schema,
    create_pool_with_schema_and_configs, create_pool_with_schema_and_sqlite_config, create_pool_with_sqlite_config,
};
pub use response::ResponseStore;
pub use schema::{PoolWithSchema, SchemaManager};
pub use types::{
    ConversationData, ConversationSnapshot, ConversationVersion, InOutItem, ItemKind, ResponseData, ResponseMetadata,
    StorageError, StoreResult,
};