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§
- Chat
Choice - Chat
Response - 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
- Embeddings
Response - Engine
- Inference engine service — mirrors the OpenAI-compatible surface of
hanzo-engine. - Message
- A chat message.
- Model
- Model
List
Enums§
- Error
- Errors returned by the SDK.
Constants§
- DEFAULT_
BASE_ URL - Default engine endpoint (the local
hanzo-engineOpenAI-compatible server).