21 lines
441 B
Python
21 lines
441 B
Python
"""Shared completion policies for deterministic Message stages."""
|
|
|
|
from typing import Literal
|
|
|
|
|
|
MESSAGE_INTERRUPTIBLE = "interruptible"
|
|
MESSAGE_PLAYBACK = "playback"
|
|
MESSAGE_CONFIRMATION = "confirmation"
|
|
MESSAGE_COMPLETION_POLICIES = frozenset(
|
|
{
|
|
MESSAGE_INTERRUPTIBLE,
|
|
MESSAGE_PLAYBACK,
|
|
MESSAGE_CONFIRMATION,
|
|
}
|
|
)
|
|
MessageCompletionPolicy = Literal[
|
|
"interruptible",
|
|
"playback",
|
|
"confirmation",
|
|
]
|