Skip to content

cayu.sessions.PendingActionRecord

Part of cayu.sessions.base. Read the Python API overview and install the required extra.

from cayu.sessions import PendingActionRecord

One current action derived from a session checkpoint and its source event.

Bases: BaseModel.

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
PendingActionRecord.ignore_cached_attention_identity(value: Any) -> Any
PendingActionRecord.attention_id() -> str | None

Stable 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() -> Self
PendingActionRecord.validate_required_strings(value: str, info) -> str
PendingActionRecord.validate_optional_strings(value: str | None, info) -> str | None
PendingActionRecord.copy_session(value: PendingActionSession) -> PendingActionSession
PendingActionRecord.copy_event_record(value: EventRecord) -> EventRecord
PendingActionRecord.copy_source_linkage(value: Any) -> dict[str, str]
PendingActionRecord.copy_options(value: Any) -> list[str]
PendingActionRecord.copy_arguments(value: dict[str, Any] | None) -> dict[str, Any] | None

Release source · Runtime guarantees · Capability guides