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
14    // Send a message
15    let response = agent.chat("Hello! How are you?").await?;
16    println!("Agent: {}", response);
17
18    // Continue the conversation
19    let response = agent.chat("What can you help me with?").await?;
20    println!("Agent: {}", response);
21
22    Ok(())
23}