Skip to content

crp.infrastructure

Auto-generated reference for the crp.infrastructure subpackage.

infrastructure

crp.infrastructure

Infrastructure wiring from crp.config.yaml to real backends.

Users building with the CRP SDK can declaratively set where the audit trail goes, which storage backend backs sessions/knowledge, and how ML models are cached. This module turns the infrastructure section of :class:CRPConfig into configured runtime objects.

apply_config(config=None)

Apply infrastructure configuration and return the wired objects.

Parameters:

Name Type Description Default
config CRPConfig | dict[str, Any] | None

A :class:CRPConfig or plain dict. Defaults to CRPConfig().

None

Returns:

Type Description
dict[str, Any]

A dict of wired components: audit_sink, storage_backend,

dict[str, Any]

database_url, and model_manager.