use helios_engine::{Agent, Config};
use std::io::{self, Write};
#[tokio::main]
async fn main() -> helios_engine::Result<()> {
println!("🚀 Helios Engine - Basic Chat Example");
println!("=====================================");
println!("💡 Streaming is enabled by default - watch tokens appear in real-time!\n");
let config = Config::from_file("config.toml")?;
let mut agent = Agent::builder("BasicAgent")
.config(config)
.system_prompt("You are a helpful assistant.")
.build()
.await?;
println!("User: Hello! How are you?");
print!("Agent (streaming): ");
io::stdout().flush()?;
let _response = agent.chat("Hello! How are you?").await?;
println!();
println!("\nUser: What can you help me with?");
print!("Agent (streaming): ");
io::stdout().flush()?;
let _response = agent.chat("What can you help me with?").await?;
println!();
println!("\n✅ Demo completed! Notice how responses streamed in real-time.");
Ok(())
}