Skip to main content

Module services

Module services 

Source
Expand description

Composition root for oxi-cli.

Wires concrete file-based port implementations (from oxi-fs) to the Oxi engine. Future run modes (TUI / print / RPC) build on top of the Oxi produced here.

Migration note:

  • Legacy App in lib.rs is the single-user interactive composition. This module is the port-based composition.
  • Both paths coexist; new run modes consume build_oxi(...) here.

Structs§

OxiPaths
Resolved paths under the oxi home directory.

Functions§

build_embedding_provider
Build the embedding provider configured by the user.
build_memory_recall
Build a project-memory recall block for injection into the system prompt. Returns an empty string when no memories exist.
build_oxi
Build an Oxi engine wired with file-based port implementations.
build_oxi_with_catalog
Build an Oxi engine with a custom catalog config. Useful for tests (e.g. pointing the catalog at a tempdir).
create_memory_backend
Create a memory backend if memory is enabled in settings.
read_path_block
Build the autonomous-memory read-path block (omp read-path.md) by reading <memory-root>/memory_summary.md if it exists.
session_reflect
Store a session summary into the memory backend.
spawn_catalog_event_logger
Spawn a background task that drains the catalog event channel and logs at info level.
start_memory_pipeline
Open (or create) the autonomous-memory pipeline DB and spawn the background Phase-1 / Phase-2 workers. Returns None when the pipeline is disabled (default).
wrap_extracting
Wrap a memory backend with the LLM/heuristic fact extractor.