Expand description
Rust bindings for the Cortext multimodal memory engine.
Shared libraries and model shards come from the
augmem/cortext.cpp GitHub Release
asset tarball (see ensure_assets), or from CORTEXT_LIBRARY_PATH /
CORTEXT_ASSETS_DIR when set explicitly.
Structs§
- Config
- Optional native configuration.
Nonefields keep library defaults. - Cortext
- Open Cortext engine instance.
- Embedding
Result - Embedding JSON payload.
- Error
- Error from library loading, asset fetch, or a native Cortext call.
- Media
- Optional source media stored alongside a processed signal.
- Process
Options - Options for JSON process result payloads.
- Provider
Transaction - Opaque transaction token returned by
DbProvider::begin/ObjectStoreProvider::begin.
Enums§
- DbValue
- SQL value exchanged with an external
DbProvider. - Retention
- Retention policy for process ingress.
Constants§
- ASSETS_
VERSION - Default augmem/cortext.cpp release that provides shared natives and model shards.
- CRATE_
VERSION - Crate version string (this package, independent of the native engine).
Traits§
- DbProvider
- External SQL store, matching Python
DBProvider. - Object
Store Provider - External object store, matching Python
ObjectStoreProvider.
Functions§
- assets_
dir - Last
ensure_assetsroot, or empty if not yet loaded. - assets_
version - Effective assets version:
CORTEXT_ASSETS_VERSIONorASSETS_VERSION. - clear_
materialize_ cache - Python
clear_materialize_cachecounterpart. Rust verifies files by checksum, so this is a no-op kept for feature parity. - ensure_
assets - Download (if needed) and unpack the shared Cortext release tarball.
- last_
error - Last error produced by this thread’s C API calls.
- library_
path - Absolute path of the loaded native library, if any.
- load_
library - Load the native Cortext shared library if it is not already loaded.
- load_
library_ from - Load the native library from an explicit path (Python
load_library(path)). - materialize_
model - Reassemble AIST model chunks from the release asset tree into a local cache.
- package_
assets_ ready - True when a host native + model manifest are already available locally
(explicit library path,
CORTEXT_ASSETS_DIR, or a previously downloaded cache). - resolve_
aist_ model - Resolve the AIST GGUF from release asset chunks (Python
resolve_aist_model). - version
- Native library version string, or empty if the library cannot be loaded.
Type Aliases§
- DbRow
- One result row: ordered
(column, value)pairs (Pythondictinsertion order). - Json
Object - JSON object returned by process helpers.