Crate aidale_layer

Crate aidale_layer 

Source
Expand description

§AI Core Layers

Built-in layers for AI Core.

Currently implemented layers:

  • LoggingLayer: Logs all provider operations with timing information
  • RetryLayer: 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;

Modules§

logging
Logging layer for provider operations.
retry
Retry layer with exponential backoff.