Skip to content

cayu.sessions.ModelCompletionStageRequest

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

from cayu.sessions import ModelCompletionStageRequest

Immutable identity and accounting link prepared before provider dispatch.

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
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 'assistant-turn'
intent dict[str, Any] required
reservation_ids tuple[str, ...] Field(default_factory=tuple)
ModelCompletionStageRequest.validate_stage_id(value: str, info) -> str
ModelCompletionStageRequest.copy_intent(value: dict[str, Any]) -> dict[str, Any]
ModelCompletionStageRequest.copy_reservation_ids(value) -> tuple[str, ...]

Release source · Runtime guarantees · Capability guides