lingshu-sdk 0.10.0

Lingshu SDK — build autonomous AI agents in Rust
1
2
3
4
5
6
7
8
9
10
11
12
use lingshu_sdk::prelude::*;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let agent = SdkAgent::builder("copilot/gpt-5-mini")?
        .max_iterations(10)
        .build()?;

    let reply = agent.chat("Say hello in one short sentence.").await?;
    println!("Reply: {reply}");
    Ok(())
}