Skip to content

cayu.sessions.ModelCompletionStageDispatch

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

from cayu.sessions import ModelCompletionStageDispatch

Append-only proof that one exact prepared request may reach its provider.

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.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
ModelCompletionStageDispatch.validate_identity(value: str, info) -> str
ModelCompletionStageDispatch.validate_digest(value: str | None, info) -> str | None
ModelCompletionStageDispatch.normalize_dispatched_at(value: datetime) -> datetime

Release source · Runtime guarantees · Capability guides