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
OpenOptions
Options controlling model auto-download from the regional public hub.
Session
SessionBuilder
SetupConfig
SetupUpdates
Partial merge. None fields are omitted.

Enums§

DownloadError
EngineError
Unified engine error (requirements §3.6).
OpenError
Error returned by Engine::open_model.
SetupError

Constants§

CN_SITE
CN_UPGRADE

Functions§

apply_setup
Merge updates into existing. Validates; does not mutate existing.
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.
download_model
Download model from the regional public hub into ~/.ariacompute/models/{model}, then return that directory.
download_model_setup
Like download_model, with named hub tokens matching aria-engine setup.
ensure_ffi_lib
Return a path to libaria_ffi, downloading the latest stable Release if needed.
fill_setup_urls
Fill missing site/upgrade URLs from a provided TLD.

Type Aliases§

AriaModelHandle
Opaque model handle.