Skip to content

cayu.tasks.TaskInvocationSnapshot

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

from cayu.tasks import TaskInvocationSnapshot

Bounded task identity and immutable provenance for delegation boundaries.

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
session_id str | None required
session_instance_id str | None None
invocation TaskInvocation required
TaskInvocationSnapshot.validate_id(value: str) -> str
TaskInvocationSnapshot.validate_session_id(value: str | None) -> str | None
TaskInvocationSnapshot.validate_session_instance_id(value: str | None) -> str | None

validate_session_instance_binding (method)

Section titled “validate_session_instance_binding (method)”
TaskInvocationSnapshot.validate_session_instance_binding() -> TaskInvocationSnapshot
TaskInvocationSnapshot.copy_invocation(value: TaskInvocation) -> TaskInvocation

Release source · Runtime guarantees · Capability guides