proserpina_agent/lib.rs
1// Copyright (C) 2026 Industrial Algebra
2// SPDX-License-Identifier: Apache-2.0
3
4//! Provider-agnostic LLM agent abstraction.
5//!
6//! This crate is the reusable core of the Proserpina critique pipeline:
7//! the [`Agent`] trait, [`Persona`], [`Message`] types, a deterministic
8//! [`EchoAgent`] test oracle, and (behind `backend-http`) an
9//! OpenAI-compatible [`HttpAgent`]. Behind `credentials`, the pure
10//! credential-resolution core for daemon consumers.
11//!
12//! Extracted from `proserpina` v0.3.0 so daemon consumers (e.g. Ijima's
13//! mining tier) can depend on the agent layer without the critique
14//! pipeline, CLI, or auth subsystem.
15
16pub mod agent;
17#[cfg(feature = "credentials")]
18pub mod credentials;
19pub mod echo;
20pub mod error;
21#[cfg(feature = "backend-http")]
22pub mod http;
23pub mod message;
24pub mod persona;
25
26pub use agent::{Agent, AgentId};
27#[cfg(feature = "credentials")]
28pub use credentials::{resolve_configs, Credentials, HttpConfig, Provider};
29pub use echo::EchoAgent;
30pub use error::ProserpinaError;
31#[cfg(feature = "backend-http")]
32pub use http::{HttpAgent, RetryConfig, RetryPolicy};
33pub use message::{Message, MessageKind};
34pub use persona::Persona;