commandagi 0.6.10

The CommandAGI SDK for Rust: the platform client (agent threads, live sessions on a simulated world) and CommandAGI documents (a schematic, a 3D part …) declared as code. No dependencies.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Start an agent on a goal, then steer it.
//!
//!     export COMMANDAGI_API_KEY=cagi_...
//!     cargo run --example threads
use commandagi::client::CommandAGI;

fn main() -> Result<(), commandagi::client::Error> {
    let cagi = CommandAGI::from_env()?; // reads COMMANDAGI_API_KEY

    let thread = cagi.threads().create("Design a bracket for a NEMA 17 motor")?;
    cagi.threads().send(&thread.id, "Make it 3 mm thick.")?;
    println!("{}", thread.id);
    Ok(())
}