quickstart/
quickstart.rs

1//! # Quick Start Example
2//!
3//! Get started with Helios in seconds!
4//! This is the fastest way to create and use an AI agent.
5
6use helios_engine::Agent;
7
8#[tokio::main]
9async fn main() -> helios_engine::Result<()> {
10    println!("⚡ Helios Quick Start\n");
11
12    // Step 1: Create an agent in ONE LINE (using auto config)
13    let mut agent = Agent::quick("MyAgent").await?;
14    println!("✓ Agent created");
15
16    // Step 2: Ask a question
17    let response = agent.ask("What's the capital of France?").await?;
18    println!("Q: What's the capital of France?");
19    println!("A: {}\n", response);
20
21    // Step 3: Ask another question (agent remembers context!)
22    let response2 = agent.ask("What's its population?").await?;
23    println!("Q: What's its population?");
24    println!("A: {}\n", response2);
25
26    // That's it! You're using Helios! 🎉
27    println!("✅ Done! Create an agent and chat - that simple!");
28
29    Ok(())
30}