Rust SDK

HELM 内核的 Rust 客户端 — 与类型错误异步。

Rust SDK

You may not need the SDK. Any HTTP client pointing to localhost:8080 works — see the Quickstart. The SDK adds typed async Rust bindings.

The helm-sdk crate ships in-repo at sdk/rust/. Not yet published to crates.io.

Install

[dependencies]
helm = { git = "https://github.com/Mindburn-Labs/helm-oss", path = "sdk/rust" }

Usage

use helm_sdk::HelmClient;

let c = HelmClient::new("http://localhost:8080");

let req = ChatCompletionRequest::new("gpt-4")
    .message(ChatMessage::user("List /tmp"));

match c.chat_completions(&req).await {
    Ok(res) => println!("{:?}", res.choices[0].message.content),
    Err(e) => println!("Denied: {:?}", e.reason_code), // DENY_TOOL_NOT_FOUND
}

Next steps