Skip to main content

agent_config/
lib.rs

1//! Shared configuration infrastructure for the AI Platform workspace.
2//!
3//! This crate provides common, reusable primitives for loading TOML configuration
4//! files and collections of configuration files from directories. It also defines
5//! structured, path-aware errors so that configuration-owning crates can report
6//! parsing, validation, and filesystem problems consistently.
7//!
8//! The crate deliberately does not define application-specific configuration
9//! schemas or decide what a particular configuration means. Those schemas and
10//! their semantic validation belong to the crates that own the corresponding
11//! domain. This keeps the shared loader small while allowing each subsystem to
12//! evolve its configuration independently.
13
14mod error;
15mod toml;
16
17#[cfg(test)]
18mod tests;
19
20pub use error::ConfigError;
21pub use toml::{read_toml, read_toml_dir};