agentkernel-sdk 0.18.1

Rust SDK for agentkernel — run AI coding agents in secure, isolated microVMs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::time::Duration;

use agentkernel_sdk::AgentKernel;

#[tokio::main]
async fn main() -> agentkernel_sdk::Result<()> {
    // Explicit configuration
    let client = AgentKernel::builder()
        .base_url("http://localhost:18888")
        .api_key("sk-my-api-key")
        .timeout(Duration::from_secs(60))
        .build()?;

    let result = client.run(&["echo", "configured!"], None).await?;
    println!("{}", result.output);

    Ok(())
}