cayu.memory.processing
Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.
AGENT_RECALL_PROCESSING_SCHEMA_VERSION
Section titled “AGENT_RECALL_PROCESSING_SCHEMA_VERSION”from cayu.memory import AGENT_RECALL_PROCESSING_SCHEMA_VERSIONAGENT_RECALL_PROCESSING_SCHEMA_VERSION = 'cayu.agent_recall_processing.v3'Release source · Runtime guarantees · Capability guides
agent_recall_situation_input_sha256
Section titled “agent_recall_situation_input_sha256”from cayu.memory import agent_recall_situation_input_sha256Fingerprint retrieval-shaping input, excluding clock and access authority.
agent_recall_situation_input_sha256(situation: RecallSituation) -> strRelease source · Runtime guarantees · Capability guides
agent_work_context_recall_text
Section titled “agent_work_context_recall_text”from cayu.memory import agent_work_context_recall_textRender deterministic bounded retrieval text from durable work context.
agent_work_context_recall_text(context: AgentWorkContext) -> strRelease source · Runtime guarantees · Capability guides
AgentRecallFrontier
Section titled “AgentRecallFrontier”from cayu.memory import AgentRecallFrontierA caller-replayable pair of unchanged-context delta high-water marks.
Bases: _AgentRecallModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
knowledge_sequence |
int |
required |
index_readiness_sequence |
int |
required |
model_copy (method)
Section titled “model_copy (method)”AgentRecallFrontier.model_copy(*, update: Mapping[str, Any] | None=None, deep: bool=False) -> Selfvalidate_sequence (method)
Section titled “validate_sequence (method)”AgentRecallFrontier.validate_sequence(value: int, info) -> intfingerprint (method)
Section titled “fingerprint (method)”AgentRecallFrontier.fingerprint() -> strRelease source · Runtime guarantees · Capability guides
AgentRecallProcessingError
Section titled “AgentRecallProcessingError”from cayu.memory import AgentRecallProcessingErrorA required freshness source could not be evaluated safely.
Bases: RuntimeError.
init (method)
Section titled “init (method)”AgentRecallProcessingError.__init__(code: str) -> NoneRelease source · Runtime guarantees · Capability guides
AgentRecallProcessingMode
Section titled “AgentRecallProcessingMode”from cayu.memory import AgentRecallProcessingModeBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
FULL_INDEX |
class attribute |
'full_index' |
DELTA |
class attribute |
'delta' |
NO_WORK |
class attribute |
'no_work' |
Release source · Runtime guarantees · Capability guides
AgentRecallProcessingRequest
Section titled “AgentRecallProcessingRequest”from cayu.memory import AgentRecallProcessingRequestOne side-effect-free full-index or delta recall request.
Bases: _AgentRecallModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
agent_id |
str |
required |
work_context |
AgentWorkContext |
required |
situation |
RecallSituation |
required |
checkpoint_stream_id |
str |
required |
checkpoint |
AgentRecallCheckpoint | None |
None |
frontier |
AgentRecallFrontier | None |
None |
processing_id |
str |
required |
operation_id |
str |
required |
updated_by |
str |
required |
updated_at |
datetime |
required |
model_copy (method)
Section titled “model_copy (method)”AgentRecallProcessingRequest.model_copy(*, update: Mapping[str, Any] | None=None, deep: bool=False) -> Selfvalidate_identity (method)
Section titled “validate_identity (method)”AgentRecallProcessingRequest.validate_identity(value: str, info) -> strcopy_work_context (method)
Section titled “copy_work_context (method)”AgentRecallProcessingRequest.copy_work_context(value: object, info) -> AgentWorkContextcopy_situation (method)
Section titled “copy_situation (method)”AgentRecallProcessingRequest.copy_situation(value: object, info) -> RecallSituationcopy_checkpoint (method)
Section titled “copy_checkpoint (method)”AgentRecallProcessingRequest.copy_checkpoint(value: object, info) -> AgentRecallCheckpoint | Nonecopy_frontier (method)
Section titled “copy_frontier (method)”AgentRecallProcessingRequest.copy_frontier(value: object) -> AgentRecallFrontier | Nonevalidate_updated_at (method)
Section titled “validate_updated_at (method)”AgentRecallProcessingRequest.validate_updated_at(value: datetime) -> datetimevalidate_authority (method)
Section titled “validate_authority (method)”AgentRecallProcessingRequest.validate_authority() -> AgentRecallProcessingRequestRelease source · Runtime guarantees · Capability guides
AgentRecallProcessingResult
Section titled “AgentRecallProcessingResult”from cayu.memory import AgentRecallProcessingResultImmutable retrieval outcome and optional, unapplied checkpoint proposal.
Bases: _AgentRecallModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
schema_version |
Literal['cayu.agent_recall_processing.v3'] |
AGENT_RECALL_PROCESSING_SCHEMA_VERSION |
mode |
AgentRecallProcessingMode |
required |
reason |
str |
required |
agent_id |
str |
required |
task_id |
str |
required |
knowledge_namespace |
str |
required |
work_context_revision |
int |
required |
work_context_sha256 |
str |
required |
processing_id |
str |
required |
operation_id |
str |
required |
access_policy_sha256 |
str |
required |
checkpoint_stream_id |
str |
required |
situation_sha256 |
str |
required |
frontier |
AgentRecallFrontier |
required |
processed_frontier |
AgentRecallFrontier |
required |
knowledge_event_count |
int |
required |
index_readiness_event_count |
int |
required |
knowledge_events |
tuple[KnowledgeChange, ...] |
() |
index_readiness_events |
tuple[KnowledgeIndexReadiness, ...] |
() |
eligible_revisions |
tuple[KnowledgeRevisionRef, ...] |
() |
recall |
RecallResult | None |
None |
proposed_checkpoint |
AgentRecallCheckpoint | None |
None |
frontier_complete |
bool |
required |
retry_required |
bool |
False |
model_copy (method)
Section titled “model_copy (method)”AgentRecallProcessingResult.model_copy(*, update: Mapping[str, Any] | None=None, deep: bool=False) -> Selfvalidate_mode (method)
Section titled “validate_mode (method)”AgentRecallProcessingResult.validate_mode(value: object) -> AgentRecallProcessingModevalidate_identity (method)
Section titled “validate_identity (method)”AgentRecallProcessingResult.validate_identity(value: str, info) -> strvalidate_sha256 (method)
Section titled “validate_sha256 (method)”AgentRecallProcessingResult.validate_sha256(value: str, info) -> strvalidate_work_context_revision (method)
Section titled “validate_work_context_revision (method)”AgentRecallProcessingResult.validate_work_context_revision(value: int) -> intvalidate_work_context_sha256 (method)
Section titled “validate_work_context_sha256 (method)”AgentRecallProcessingResult.validate_work_context_sha256(value: str) -> strvalidate_event_count (method)
Section titled “validate_event_count (method)”AgentRecallProcessingResult.validate_event_count(value: int, info) -> intcopy_knowledge_events (method)
Section titled “copy_knowledge_events (method)”AgentRecallProcessingResult.copy_knowledge_events(value) -> tuple[KnowledgeChange, ...]copy_index_readiness_events (method)
Section titled “copy_index_readiness_events (method)”AgentRecallProcessingResult.copy_index_readiness_events(value) -> tuple[KnowledgeIndexReadiness, ...]copy_revisions (method)
Section titled “copy_revisions (method)”AgentRecallProcessingResult.copy_revisions(value) -> tuple[KnowledgeRevisionRef, ...]validate_boolean (method)
Section titled “validate_boolean (method)”AgentRecallProcessingResult.validate_boolean(value: object, info) -> boolvalidate_result_shape (method)
Section titled “validate_result_shape (method)”AgentRecallProcessingResult.validate_result_shape() -> AgentRecallProcessingResultfingerprint (method)
Section titled “fingerprint (method)”AgentRecallProcessingResult.fingerprint() -> strRelease source · Runtime guarantees · Capability guides
AgentRecallProcessor
Section titled “AgentRecallProcessor”from cayu.memory import AgentRecallProcessorSelect and evaluate a full-index, delta, or explicit no-work recall lane.
init (method)
Section titled “init (method)”AgentRecallProcessor.__init__(knowledge_store: KnowledgeStore, *, fusion_config: WeightedReciprocalRankFusionConfig, engine_config: RecallEngineConfig | None=None, config: AgentRecallProcessorConfig | None=None) -> Noneprocess (method)
Section titled “process (method)”async AgentRecallProcessor.process(request: AgentRecallProcessingRequest) -> AgentRecallProcessingResultRelease source · Runtime guarantees · Capability guides
AgentRecallProcessorConfig
Section titled “AgentRecallProcessorConfig”from cayu.memory import AgentRecallProcessorConfigHard work and output bounds for one processor invocation.
Bases: _AgentRecallModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
knowledge_change_limit |
int |
100 |
index_readiness_limit |
int |
100 |
candidate_limit |
int |
20 |
source_max_bytes |
int |
64000 |
max_record_bytes |
int |
8000 |
semantic_timeout_seconds |
float |
1.0 |
lineage_limit |
int |
0 |
lineage_candidate_limit |
int |
10 |
lineage_max_bytes |
int |
8192 |
model_copy (method)
Section titled “model_copy (method)”AgentRecallProcessorConfig.model_copy(*, update: Mapping[str, Any] | None=None, deep: bool=False) -> Selfvalidate_page_limit (method)
Section titled “validate_page_limit (method)”AgentRecallProcessorConfig.validate_page_limit(value: int, info) -> intvalidate_candidate_limit (method)
Section titled “validate_candidate_limit (method)”AgentRecallProcessorConfig.validate_candidate_limit(value: int) -> intvalidate_result_byte_bound (method)
Section titled “validate_result_byte_bound (method)”AgentRecallProcessorConfig.validate_result_byte_bound(value: int, info) -> intvalidate_lineage_limit (method)
Section titled “validate_lineage_limit (method)”AgentRecallProcessorConfig.validate_lineage_limit(value: int) -> intvalidate_lineage_candidate_limit (method)
Section titled “validate_lineage_candidate_limit (method)”AgentRecallProcessorConfig.validate_lineage_candidate_limit(value: int) -> intvalidate_lineage_max_bytes (method)
Section titled “validate_lineage_max_bytes (method)”AgentRecallProcessorConfig.validate_lineage_max_bytes(value: int) -> intvalidate_semantic_timeout (method)
Section titled “validate_semantic_timeout (method)”AgentRecallProcessorConfig.validate_semantic_timeout(value: object) -> floatvalidate_combined_revision_bound (method)
Section titled “validate_combined_revision_bound (method)”AgentRecallProcessorConfig.validate_combined_revision_bound() -> AgentRecallProcessorConfig