Expand description
§AI Core Layers
Built-in layers for AI Core.
Currently implemented layers:
LoggingLayer: Logs all provider operations with timing informationRetryLayer: Automatic retry with exponential backoff for retryable errors
§Usage
ⓘ
use aidale_core::RuntimeExecutor;
use aidale_layer::{LoggingLayer, RetryLayer};
let executor = RuntimeExecutor::builder(provider)
.layer(LoggingLayer::new())
.layer(RetryLayer::new().with_max_retries(3))
.finish();Re-exports§
pub use logging::LoggingLayer;pub use retry::RetryLayer;