[Core][Diffusion] Refactor prompt updates into a modality-ready interaction framework (#6294)

Signed-off-by: Huang, Zeyu <11222265+fhfuih@users.noreply.github.com>
This commit is contained in:
Zeyu Huang | 黃澤宇 authored and GitHub committed 2026-09-07 11:40:04 +08:00
1 parent eeee257913
commit 2df95de421
18 files changed
+1079 -362

No files matched your search

+7 -4
View File
@@ -46,11 +46,14 @@ class OmniInteractionEvent(OmniTextPrompt, total=False):
pass
class OmniInteractionPrompt(TypedDict, total=False):
"""Mid-stream interaction payload."""
class OmniInteractionPrompt(TypedDict):
"""Normalized mid-stream interaction payload passed to ``submit_interaction``.
event_id: NotRequired[str]
event: NotRequired[OmniInteractionEvent]
WebSocket clients payload may omit ``event_id``; the API layer assigns a fallback ID in this case.
"""
event_id: str
event: OmniInteractionEvent
transition_chunks: NotRequired[int]