Skip to content

memory_collection_rebuild_cm

CheckMate stages for rebuilding memory collections.

Classes

Initialize

Bases: BaseStage[RebuildMemoryCollectionState]

Initialization stage for rebuilding memory collections.

Functions

execute_stage
execute_stage() -> None

Set up initial rebuild records.

Process

Bases: BaseStage[RebuildMemoryCollectionState]

Functions

execute_stage
execute_stage() -> None

Process the memory collections

RebuildMemoryCollectionState

Bases: BaseStageState[SimpleRecordsResult]

State for the RebuildMemoryCollections operation

Attributes

collection_pkids instance-attribute
collection_pkids: List[str]
namespace instance-attribute
namespace: str
rebuild_records class-attribute instance-attribute
rebuild_records: List[RecordResult] | None = None

RecordResult

Bases: BaseModel

Attributes

message class-attribute instance-attribute
message: str | None = None
pkid instance-attribute
pkid: str
status class-attribute instance-attribute

Functions

cm_factory_rebuild_memory_collections

cm_factory_rebuild_memory_collections(
    task_id: str | None = None,
    stage_templates: (
        RebuildMemoryCollectionState | None
    ) = None,
    **kwargs
) -> CheckMate