troupekit 0.3.1

Troupekit entry crate: one builder that wires the stores, the runner and the engines of the Troupekit agent framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod tools;
use tools::add;
use troupekit::prelude::*;

/// Adds numbers with the add tool.
#[agent(model = "openai/gpt-6-luna", tools = [add])]
fn calc() {}

#[tokio::main]
async fn main() -> Result<(), KitError> {
    println!("{}", calc().run("What is 2 + 40?").await?);
    Ok(())
}