Crate aether_core

Crate aether_core 

Source
Expand description

§Aether Core

Core library for AI-powered dynamic code injection framework.

This crate provides the foundational components for template management, code injection, and transformation logic.

§Features

  • Template parsing and management
  • Slot-based code injection
  • Dynamic code transformation
  • Extensible provider trait for AI backends

§Example

use aether_core::{Template, Slot, InjectionContext};

let template = Template::new("{{AI:generate_button}}")
    .with_slot("generate_button", "Create a submit button");

let result = template.render_with_ai(&provider).await?;

Re-exports§

pub use error::AetherError;
pub use error::Result;
pub use template::Template;
pub use slot::Slot;
pub use slot::SlotKind;
pub use provider::AiProvider;
pub use provider::ProviderConfig;
pub use context::InjectionContext;
pub use engine::InjectionEngine;
pub use runtime::AetherRuntime;

Modules§

cache
context
Injection context for code generation.
engine
Injection Engine - The main orchestrator for AI code injection.
error
Error types for Aether Core.
prelude
Re-export commonly used types
provider
AI Provider trait and configuration.
runtime
Aether Runtime
slot
Slot definitions for code injection points.
template
Template parsing and management.
toon
validation

Macros§

inject
Convenience function for one-line AI code injection.
inject_sync
Convenience function for synchronous one-line injection (blocking).