Skip to content

vllm_omni.engine.request_snapshot

Full request snapshots with a fast path for immutable scalar leaves.

copy_request_snapshot

copy_request_snapshot(
    value: Any, memo: dict[int, Any] | None = None
) -> Any

Deep-copy all fields, preserving aliases and isolating mutable containers.

Plain numeric/text trees do not need generic object dispatch or an identity lookup for each immutable scalar. Subclasses and other objects retain their regular deepcopy contracts. No model fields are filtered or shared here.