itwinai.pipelineο
This module provides the functionalities to execute workflows defined in in form of pipelines.
- class itwinai.pipeline.Pipeline(steps: Dict[str, BaseComponent] | Iterable[BaseComponent], name: str | None = None)[source]ο
Bases:
BaseComponentExecutes a set of components arranged as a pipeline.
- steps: Dict[str, BaseComponent] | Iterable[BaseComponent]ο
Pipeline steps. Can be a list of
BaseComponentor a dictionary allowing the user to name eachBaseComponent.
- static validate_args(input_args: Tuple, component: BaseComponent)[source]ο
Verify that the number of input args provided to some component match with the number of the non-default args in the component.
- Parameters:
input_args (Tuple) β input args to be fed to the component.
component (BaseComponent) β component to be executed.
- Raises:
RuntimeError β in case of args mismatch.