Skip to content

cayu.sessions.ModelCompletionStageAbandonment

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

from cayu.sessions import ModelCompletionStageAbandonment

Durable proof that an exact pre-dispatch preparation was abandoned.

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
record_type Literal['cayu.model-completion-stage.abandoned'] MODEL_COMPLETION_STAGE_ABANDONMENT_RECORD_TYPE
schema_version Literal[1] MODEL_COMPLETION_STAGE_SCHEMA_VERSION
session_id str required
stage_id str Field(max_length=256)
logical_step_id str Field(max_length=256)
dispatch_ordinal StrictInt Field(ge=0, le=MAX_DURABLE_JSON_INTEGER)
purpose ModelCompletionPurpose required
preparation_request_digest str required
preparation_digest str required
active_marker_digest str required
source_status SessionStatus required
source_run_epoch StrictInt Field(ge=0, le=MAX_DURABLE_JSON_INTEGER)
source_transcript_cursor StrictInt Field(ge=0, le=MAX_DURABLE_JSON_INTEGER)
abandoned_at datetime required
abandonment_digest str required
ModelCompletionStageAbandonment.validate_identity(value: str, info) -> str
ModelCompletionStageAbandonment.validate_digest(value: str, info) -> str
ModelCompletionStageAbandonment.normalize_abandoned_at(value: datetime) -> datetime

Release source · Runtime guarantees · Capability guides