Skip to main content

Crate aria_engine

Crate aria_engine 

Source
Expand description

Thin Rust SDK: prefer aria_inference for native use; re-exports FFI for embedding tests.

Structs§

Engine
High-level convenience over Session.
GenerateOpts
Generation
Session
SessionBuilder

Functions§

aria_complete
Non-streaming chat completion. tools_json may be null.
aria_complete_stream
Streaming chat; callback receives each chunk as a C string.
aria_embed
Embeddings. input_json is 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§

AriaModelHandle
Opaque model handle.