cayu.sessions.ModelCompletionStageDispatch
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import ModelCompletionStageDispatchAppend-only proof that one exact prepared request may reach its provider.
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.dispatched'] |
MODEL_COMPLETION_STAGE_DISPATCH_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) |
model_attempt_id |
str |
Field(max_length=256) |
interaction_id |
str |
Field(max_length=256) |
request_fingerprint |
str |
required |
provider_effect_id |
str |
Field(max_length=512) |
execution_profile_fingerprint |
str | None |
None |
preparation_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) |
dispatched_at |
datetime |
required |
record_digest |
str |
required |
validate_identity (method)
Section titled “validate_identity (method)”ModelCompletionStageDispatch.validate_identity(value: str, info) -> strvalidate_digest (method)
Section titled “validate_digest (method)”ModelCompletionStageDispatch.validate_digest(value: str | None, info) -> str | Nonenormalize_dispatched_at (method)
Section titled “normalize_dispatched_at (method)”ModelCompletionStageDispatch.normalize_dispatched_at(value: datetime) -> datetime