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 slot::SlotConstraints;pub use provider::AiProvider;pub use provider::ProviderConfig;pub use context::InjectionContext;pub use engine::InjectionEngine;pub use engine::RenderSession;pub use script::AetherScript;pub use script::AetherAgenticRuntime;pub use runtime::AetherRuntime;pub use config::AetherConfig;pub use cache::Cache;pub use cache::ExactCache;pub use cache::SemanticCache;pub use cache::TieredCache;pub use observer::EngineObserver;pub use observer::ObserverPtr;
Modules§
- cache
- config
- Aether Configuration
- context
- Injection context for code generation.
- engine
- Injection Engine - The main orchestrator for AI code injection.
- error
- Error types for Aether Core.
- observer
- prelude
- Re-export commonly used types
- provider
- AI Provider trait and configuration.
- runtime
- Aether Runtime
- script
- Aether Script
- shield
- 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).