Skip to content

cayu.storage.knowledge_review

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.

from cayu.storage import KnowledgeReviewWorkflow

App-side workflow for reviewing model-authored pending knowledge.

KnowledgeReviewWorkflow.__init__(store: _KnowledgeReviewStore, *, access_scope: KnowledgeAccessScope | None=None, namespace: str | None=None, labels: dict[str, str] | None=None, default_limit: int=DEFAULT_KNOWLEDGE_LIMIT, default_max_bytes: int=DEFAULT_KNOWLEDGE_MAX_BYTES) -> None
async KnowledgeReviewWorkflow.list_pending(*, namespace: str | None=None, labels: dict[str, str] | None=None, kinds: Iterable[str] | None=None, visibilities: Iterable[KnowledgeVisibility] | None=None, aspects: Iterable[str] | None=None, source_type: str | None=None, source_id: str | None=None, include_expired: bool=False, limit: int | None=None, max_bytes: int | None=None) -> KnowledgeListResult

List pending entries within the workflow scope.

async KnowledgeReviewWorkflow.get_pending(entry_id: str) -> KnowledgeEntry

Load one pending entry after status and scope checks.

async KnowledgeReviewWorkflow.approve(entry_id: str, *, operation_id: str, reviewer_identity: str, reviewer_version: str, code: str='approved', annotations: dict[str, object] | None=None) -> KnowledgeReviewApproval

Approve one exact pending revision with durable reviewer attribution.

async KnowledgeReviewWorkflow.reject(entry_id: str) -> KnowledgeEntry

Reject one pending entry while retaining it for audit.

async KnowledgeReviewWorkflow.decide_maintenance(proposal: KnowledgeMaintenanceProposal, decision: KnowledgeMaintenanceDecision) -> KnowledgeMaintenanceDecisionReceipt

Apply one exact multi-entry review through the store transaction.

Release source · Runtime guarantees · Capability guides