cayu.sessions.SessionMessageDeliveryBatch
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import SessionMessageDeliveryBatchOne bounded atomic queue-delivery batch at a fixed eligibility cutoff.
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 |
|---|---|---|
messages |
tuple[SessionQueuedMessage, ...] |
Field(default_factory=tuple) |
events |
tuple[Event, ...] |
Field(default_factory=tuple) |
delivery_id |
str |
required |
interaction_id |
str | None |
None |
eligible_through |
StrictInt |
Field(ge=0, le=MAX_DURABLE_JSON_INTEGER) |
has_more |
StrictBool |
False |
replayed |
StrictBool |
False |
active_invocation_profile |
ActiveInvocationExecutionProfile | None |
None |
copy_messages (method)
Section titled “copy_messages (method)”SessionMessageDeliveryBatch.copy_messages(value) -> tuple[SessionQueuedMessage, ...]copy_events (method)
Section titled “copy_events (method)”SessionMessageDeliveryBatch.copy_events(value) -> tuple[Event, ...]validate_identifiers (method)
Section titled “validate_identifiers (method)”SessionMessageDeliveryBatch.validate_identifiers(value: str | None, info) -> str | Nonecopy_active_invocation_profile (method)
Section titled “copy_active_invocation_profile (method)”SessionMessageDeliveryBatch.copy_active_invocation_profile(value: object) -> ActiveInvocationExecutionProfile | None