Skip to main content

Crate cortext

Crate cortext 

Source
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. None fields keep library defaults.
Cortext
Open Cortext engine instance.
EmbeddingResult
Embedding JSON payload.
Error
Error from library loading, asset fetch, or a native Cortext call.
Media
Optional source media stored alongside a processed signal.
ProcessOptions
Options for JSON process result payloads.
ProviderTransaction
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.
ObjectStoreProvider
External object store, matching Python ObjectStoreProvider.

Functions§

assets_dir
Last ensure_assets root, or empty if not yet loaded.
assets_version
Effective assets version: CORTEXT_ASSETS_VERSION or ASSETS_VERSION.
clear_materialize_cache
Python clear_materialize_cache counterpart. 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 (Python dict insertion order).
JsonObject
JSON object returned by process helpers.