aidale_layer/
lib.rs

1//! # AI Core Layers
2//!
3//! Built-in layers for AI Core.
4//!
5//! Currently implemented layers:
6//! - `LoggingLayer`: Logs all provider operations with timing information
7//! - `RetryLayer`: Automatic retry with exponential backoff for retryable errors
8//!
9//! ## Usage
10//!
11//! ```ignore
12//! use aidale_core::RuntimeExecutor;
13//! use aidale_layer::{LoggingLayer, RetryLayer};
14//!
15//! let executor = RuntimeExecutor::builder(provider)
16//!     .layer(LoggingLayer::new())
17//!     .layer(RetryLayer::new().with_max_retries(3))
18//!     .finish();
19//! ```
20
21pub mod logging;
22pub mod retry;
23
24// Re-exports
25pub use logging::LoggingLayer;
26pub use retry::RetryLayer;