tasks¶
tasks ¶
Attributes¶
__all__ module-attribute ¶
Classes¶
Task ¶
Task(name: str | None = None, description: str | None = None, timeout: float | None = None, retry: int = 0, skip_on_error: bool = False)
Bases: ABC, Generic[InputT, OutputT]
Abstract task with typed input and output (async version).
Source code in inferflow/asyncio/workflow/tasks.py
Attributes¶
metadata instance-attribute ¶
metadata = TaskMetadata(name=name or __name__, description=description or __doc__, timeout=timeout, retry=retry, skip_on_error=skip_on_error)
Functions¶
execute abstractmethod async ¶
PipelineTask dataclass ¶
TaskChain ¶
ParallelTasks ¶
TypedWorkflow dataclass ¶
TypedWorkflow(input_builder: Callable[[Any], ContextT], tasks: list[Task[ContextT, ContextT]], output_builder: Callable[[ContextT], Any] | None = None)