use helios_engine::{Agent, CalculatorTool, Config, EchoTool};
#[tokio::main]
async fn main() -> helios_engine::Result<()> {
let config = Config::from_file("config.toml")?;
let mut agent = Agent::builder("ToolAgent")
.config(config)
.system_prompt("You are a helpful assistant with access to tools. Use them when needed.")
.tools(vec![Box::new(CalculatorTool), Box::new(EchoTool)])
.max_iterations(5)
.build()
.await?;
println!(
"Available tools: {:?}\n",
agent.tool_registry().list_tools()
);
let response = agent.chat("What is 25 * 4 + 10?").await?;
println!("Agent: {}\n", response);
let response = agent
.chat("Can you echo this message: 'Hello from Helios!'")
.await?;
println!("Agent: {}\n", response);
Ok(())
}