Skip to content

Entities

WebRTCOutput

Bases: BaseModel

Output sent via WebRTC data channel.

serialized_output_data contains a dictionary with workflow outputs: - If data_output is None or []: no data sent (only metadata) - If data_output is ["*"]: all workflow outputs (excluding images, unless explicitly named) - If data_output is ["field1", "field2"]: only those fields (including images if explicitly named)

Source code in inference/core/interfaces/webrtc_worker/entities.py
63
64
65
66
67
68
69
70
71
72
73
74
class WebRTCOutput(BaseModel):
    """Output sent via WebRTC data channel.

    serialized_output_data contains a dictionary with workflow outputs:
    - If data_output is None or []: no data sent (only metadata)
    - If data_output is ["*"]: all workflow outputs (excluding images, unless explicitly named)
    - If data_output is ["field1", "field2"]: only those fields (including images if explicitly named)
    """

    serialized_output_data: Optional[Dict[str, Any]] = None
    video_metadata: Optional[WebRTCVideoMetadata] = None
    errors: List[str] = Field(default_factory=list)