cayu.sessions.ModelCompletionStageAbandonment
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import ModelCompletionStageAbandonmentDurable proof that an exact pre-dispatch preparation was abandoned.
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 |
|---|---|---|
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 |
validate_identity (method)
Section titled “validate_identity (method)”ModelCompletionStageAbandonment.validate_identity(value: str, info) -> strvalidate_digest (method)
Section titled “validate_digest (method)”ModelCompletionStageAbandonment.validate_digest(value: str, info) -> strnormalize_abandoned_at (method)
Section titled “normalize_abandoned_at (method)”ModelCompletionStageAbandonment.normalize_abandoned_at(value: datetime) -> datetime