Skip to main content

build_oxicode_with_catalog

Function build_oxicode_with_catalog 

Source
pub async fn build_oxicode_with_catalog(
    paths: &OxicodePaths,
    catalog_config: CatalogConfig,
    embedding_provider: Option<Arc<dyn EmbeddingProvider>>,
    hook_runner: Option<Arc<dyn HookRunner>>,
) -> Result<Oxicode>
Expand description

Build an Oxicode engine with a custom catalog config. Useful for tests (e.g. pointing the catalog at a tempdir).

hook_runner follows the same semantics as build_oxicode: Some installs the runner on the SDK’s port registry, None keeps the noop default.