Skip to main content

Crate hanzo

Crate hanzo 

Source
Expand description

§Hanzo — Rust SDK + CLI for the Hanzo ecosystem

hanzo is both a library (this crate, the SDK) and the hanzo command-line tool. It is the single Rust entry point to the Hanzo platform. Today it speaks to the inference engine ([hanzo-engine], an OpenAI-compatible server); the rest of the ecosystem — the dev coding tool (hanzoai/dev), KMS, IAM, … — plugs in behind the same Client surface, mirroring the Python SDK (hanzoai/python-sdk) and using the node’s native ZAP transport where applicable.

let hanzo = hanzo::Client::from_env();
let reply = hanzo.engine().chat("default", &[hanzo::msg("user", "hello")])?;
println!("{}", reply.text());

Structs§

ChatChoice
ChatResponse
Client
The Hanzo client — the root of the SDK. Holds connection config and exposes one accessor per ecosystem service (engine() today; dev(), kms(), iam() as they are wired — never as non-working stubs).
Embedding
EmbeddingsResponse
Engine
Inference engine service — mirrors the OpenAI-compatible surface of hanzo-engine.
Message
A chat message.
Model
ModelList

Enums§

Error
Errors returned by the SDK.

Constants§

DEFAULT_BASE_URL
Default engine endpoint (the local hanzo-engine OpenAI-compatible server).

Functions§

msg
Convenience constructor for a Message.

Type Aliases§

Result