cayu.sessions.PendingActionRecord
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import PendingActionRecordOne current action derived from a session checkpoint and its source event.
Bases: BaseModel.
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 |
|---|---|---|
id |
str |
required |
kind |
PendingActionKind |
required |
session |
PendingActionSession |
required |
event |
EventRecord |
required |
title |
str |
required |
detail |
str | None |
None |
tool_name |
str | None |
None |
approval_id |
str | None |
None |
input_id |
str | None |
None |
round_id |
str | None |
None |
tool_call_id |
str | None |
None |
source_linkage |
dict[str, str] |
Field(default_factory=dict, exclude=True, repr=False) |
policy_evidence |
ToolPolicyEvidence | None |
None |
question |
str | None |
None |
options |
list[str] |
Field(default_factory=list) |
arguments |
dict[str, Any] | None |
None |
delegated_action |
DelegatedActionReference | None |
None |
ignore_cached_attention_identity (method)
Section titled “ignore_cached_attention_identity (method)”PendingActionRecord.ignore_cached_attention_identity(value: Any) -> Anyattention_id (property)
Section titled “attention_id (property)”PendingActionRecord.attention_id() -> str | NoneStable notification identity; never execution or resolution authority.
Delegated rows are navigation only. Query the child-owned action. Legacy/custom projections without an incarnation remain unavailable.
delegated_action_is_discovery_only (method)
Section titled “delegated_action_is_discovery_only (method)”PendingActionRecord.delegated_action_is_discovery_only() -> Selfvalidate_required_strings (method)
Section titled “validate_required_strings (method)”PendingActionRecord.validate_required_strings(value: str, info) -> strvalidate_optional_strings (method)
Section titled “validate_optional_strings (method)”PendingActionRecord.validate_optional_strings(value: str | None, info) -> str | Nonecopy_session (method)
Section titled “copy_session (method)”PendingActionRecord.copy_session(value: PendingActionSession) -> PendingActionSessioncopy_event_record (method)
Section titled “copy_event_record (method)”PendingActionRecord.copy_event_record(value: EventRecord) -> EventRecordcopy_source_linkage (method)
Section titled “copy_source_linkage (method)”PendingActionRecord.copy_source_linkage(value: Any) -> dict[str, str]copy_options (method)
Section titled “copy_options (method)”PendingActionRecord.copy_options(value: Any) -> list[str]copy_arguments (method)
Section titled “copy_arguments (method)”PendingActionRecord.copy_arguments(value: dict[str, Any] | None) -> dict[str, Any] | None