Directory rename (git mv, history preserved) plus rewrite of all references: absolute imports in tests, the zero-dep runner, docstrings, comments, and the README. No behavior change. Run: python3 -m pytest v2/tests/ -q ; python3 v2/run_tests.py ; python3 -m v2.examples
39 lines
1.2 KiB
Python
39 lines
1.2 KiB
Python
"""Request plane — typed runtime objects crossing the product boundary (design_v3 §12)."""
|
|
from __future__ import annotations
|
|
|
|
from .artifacts import (
|
|
Artifact,
|
|
AudioArtifact,
|
|
LatentArtifact,
|
|
Output,
|
|
TensorArtifact,
|
|
TextArtifact,
|
|
VideoArtifact,
|
|
)
|
|
from .cancel import CancelKind, Cancelled, CancelScope
|
|
from .modalpart import (
|
|
ActionPart,
|
|
AudioPart,
|
|
ImagePart,
|
|
LatentPart,
|
|
Modality,
|
|
ModalPart,
|
|
TextPart,
|
|
VideoPart,
|
|
)
|
|
from .params import CaptureMode, DiffusionParams, OutputSpec, SamplingParams
|
|
from .requests import Request, Session, make_request, new_request_id
|
|
from .streams import OmniEvent, Stream, StreamChunk
|
|
from .tasks import TaskType
|
|
|
|
__all__ = [
|
|
"TaskType", "Modality", "ModalPart", "TextPart", "ImagePart", "VideoPart",
|
|
"AudioPart", "ActionPart", "LatentPart",
|
|
"SamplingParams", "DiffusionParams", "OutputSpec", "CaptureMode",
|
|
"Request", "Session", "make_request", "new_request_id",
|
|
"Artifact", "VideoArtifact", "AudioArtifact", "TextArtifact",
|
|
"TensorArtifact", "LatentArtifact", "Output",
|
|
"Stream", "OmniEvent", "StreamChunk",
|
|
"CancelScope", "CancelKind", "Cancelled",
|
|
]
|