vllm_omni.engine.duplex.intermediate ¶
DuplexIntermediateBuffer ¶
Bases: TypedDict
Structured keys carried through model_intermediate_buffer.
The buffer remains a dict for scheduler and msgspec compatibility, but duplex-specific producers and consumers should use the helpers in this module instead of scattering nested string keys across serving, runner, and model code.
build_duplex_intermediate_buffer ¶
build_duplex_intermediate_buffer(
*,
request_id: str,
prompt_token_ids: list[int] | None = None,
output_token_ids: list[int] | None = None,
output_text: str | None = None,
stream_output: bool = False,
native_duplex: bool = False,
) -> DuplexIntermediateBuffer
get_tts_handoff ¶
Read the canonical handoff, including the legacy flat aliases.