base
base
¶
Abstract realtime voice session.
Classes¶
SessionEvent
dataclass
¶
SessionEvent(
kind: EventKind,
text: str = "",
role: str = "",
final: bool = False,
replace: bool = False,
audio_b64: str = "",
sample_rate: int = 24000,
detail: str = "",
tool_name: str = "",
tool_ok: bool = False,
raw: Optional[dict[str, Any]] = None,
)
Normalized event emitted by a provider session toward the UI.