ai

Macro ai 

Source
ai!() { /* proc-macro */ }
Expand description

One-line AI code generation (async).

This macro creates a future that generates code using the specified provider and prompt.

§Example

use aether_macros::ai;
use aether_ai::OpenAiProvider;

async fn example() {
    let provider = OpenAiProvider::from_env().unwrap();
    let code = ai!("Create a login form", provider).await.unwrap();
    println!("{}", code);
}