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
- Session
- Session
Builder
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.
Type Aliases§
- Aria
Model Handle - Opaque model handle.