vllm_omni.engine.duplex.contracts ¶
Model-neutral value types shared by the duplex engine components.
Immutable DTOs plus the DuplexStagePort base class that DuplexOrchestrator implements for the session manager/runner.
DuplexFence dataclass ¶
DuplexOutputAction ¶
DuplexOutputDecision dataclass ¶
DuplexRequestIdentity dataclass ¶
DuplexStagePort ¶
Bases: ABC
Narrow stage-management surface the session runner/manager use (implemented by DuplexOrchestrator).
submit abstractmethod async ¶
submit(
submission: DuplexStageSubmission,
) -> DuplexStageSubmissionResult
DuplexStageRequestContext dataclass ¶
DuplexStageSubmission dataclass ¶
DuplexStageSubmissionResult dataclass ¶
duplex_data_plane_request_info ¶
duplex_ephemeral_stage_request_id ¶
duplex_ephemeral_stage_request_id(
fence: DuplexFence, *, stage_id: int
) -> str
Turn-scoped Stage request id for non-resumable (ephemeral) duplex models.
duplex_resource_request_belongs_to_session ¶
Return whether a current-format resource request belongs to a session.
duplex_same_turn_request_ids ¶
Other ephemeral stage ids from the same session, epoch, and turn.
request_id itself is not included. Non-ephemeral ids are ignored.
duplex_session_id_from_request_id ¶
Decode the session id from duplex-s.<b64url>.e.<epoch>.r.<role>.