Expand description
Thin Rust SDK: prefer aria_inference for native use; re-exports FFI for embedding tests.
Structs§
- Engine
- High-level convenience over
Session. - Generate
Opts - Generation
- Open
Options - Options controlling model auto-download from the regional public hub.
- Session
- Session
Builder
Enums§
- Download
Error - Engine
Error - Unified engine error (requirements §3.6).
- Open
Error - Error returned by
Engine::open_model.
Functions§
- aria_
complete - Non-streaming chat completion.
tools_jsonmay be null. - aria_
complete_ stream - Streaming chat;
callbackreceives each chunk as a C string. - aria_
embed - Embeddings.
input_jsonis a string or{"input":"..."}/{"input":[...]}. - aria_
last_ error - Last error message (thread-local). Valid until next call on this thread.
- aria_
model_ destroy - Destroy a model handle. Safe on null. Double-destroy is undefined if caller reuses the pointer.
- aria_
model_ init - Load an Aria quant bundle from
bundle_path. Returns null on error. - aria_
transcribe - Transcribe PCM16 LE bytes.
- download_
model - Download
modelfrom the regional public hub into~/.ariacompute/models/{model}, then return that directory. - download_
model_ auth - Like
download_model, with named hub tokens matchingaria-engine auth.
Type Aliases§
- Aria
Model Handle - Opaque model handle.