[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:
1 parent
eeee257913
commit
2df95de421
18 files changed
+1079
-362
No files matched your search
@@ -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]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user