basic_chat/
basic_chat.rs

1use helios_engine::{Agent, Config};
2
3#[tokio::main]
4async fn main() -> helios_engine::Result<()> {
5    // Load configuration
6    let config = Config::from_file("config.toml")?;
7
8    // Create a simple agent
9    let mut agent = Agent::builder("BasicAgent")
10        .config(config)
11        .system_prompt("You are a helpful assistant.")
12        .build()
13        .await?;
14
15    // Send a message
16    let response = agent.chat("Hello! How are you?").await?;
17    println!("Agent: {}", response);
18
19    // Continue the conversation
20    let response = agent.chat("What can you help me with?").await?;
21    println!("Agent: {}", response);
22
23    Ok(())
24}