Skip to content

cayu.session_external_waits

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 import SessionExternalWaitAdapter
SessionExternalWaitAdapter.__init__(app: CayuApp, waits: ExternalEventWaits, *, request_loop_policies: Iterable[LoopPolicy]=()) -> None
async SessionExternalWaitAdapter.recover_to_wait(registration: ExternalWaitRegistration, *, context: ExternalWaitContext, inactive_for_seconds: int=60) -> SessionExternalWaitReceipt

Recover an admitted unfinished turn through the native recovery owner.

async SessionExternalWaitAdapter.reconcile_binding(registration: ExternalWaitRegistration, *, context: ExternalWaitContext) -> ExternalWaitSnapshot

Repair a committed ticket’s missing binding without executing the session.

async SessionExternalWaitAdapter.exclude_prepared_execution(registration: ExternalWaitRegistration, *, context: ExternalWaitContext) -> ExternalWaitSnapshot

Explicitly exclude unbound execution without replacing its elected outcome.

Native admission must still be excluded or its writer positively released. This does not cancel a provider, tool, external job, or bound continuation.

async SessionExternalWaitAdapter.retire_execution(registration: ExternalWaitRegistration, *, operation_key: str, context: ExternalWaitContext) -> ExternalWaitSnapshot

Request exact released-writer retirement without changing the elected outcome.

The request is durable, not a claim that execution has stopped. Native retirement must still arbitrate against consumption and prove release.

async SessionExternalWaitAdapter.run_to_wait(request: RunRequest, registration: ExternalWaitRegistration, *, context: ExternalWaitContext) -> SessionExternalWaitReceipt
async SessionExternalWaitAdapter.resume_to_wait(request: ResumeRequest, registration: ExternalWaitRegistration, *, context: ExternalWaitContext) -> SessionExternalWaitReceipt

Run one ordinary resumed turn and park its exact completed boundary.

async SessionExternalWaitAdapter.service_wait(registration: ExternalWaitRegistration, *, context: ExternalWaitContext) -> SessionExternalWaitReceipt

Continue one elected wait through native fenced resume, or replay its receipt.

Release source · Runtime guarantees · Capability guides

from cayu import SessionExternalWaitReceipt

Bases: _Value.

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
session_id Identifier required
wait ExternalWaitSnapshot required
SessionExternalWaitReceipt.clean_strings(value: object) -> object

Release source · Runtime guarantees · Capability guides