cayu.sessions.ModelCompletionStageRequest
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import ModelCompletionStageRequestImmutable identity and accounting link prepared before provider dispatch.
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 |
|---|---|---|
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) |
validate_stage_id (method)
Section titled “validate_stage_id (method)”ModelCompletionStageRequest.validate_stage_id(value: str, info) -> strcopy_intent (method)
Section titled “copy_intent (method)”ModelCompletionStageRequest.copy_intent(value: dict[str, Any]) -> dict[str, Any]copy_reservation_ids (method)
Section titled “copy_reservation_ids (method)”ModelCompletionStageRequest.copy_reservation_ids(value) -> tuple[str, ...]