Skip to content

Has inputs mixin

Mixins for pipeline steps.

Author

Dimitrij Ray (dimitrij.ray@gdplabs.id)

References

NONE

HasInputsMixin(input_state_map=None, runtime_config_map=None, fixed_args=None)

Mixin class for steps that have inputs from multiple sources.

This mixin provides functionality for handling inputs that can come from: - Pipeline state mapping - Runtime configuration mapping - Fixed/constant values

It is used by steps that need to combine inputs from multiple sources into a single set of arguments.

Initializes the input handler.

Parameters:

Name Type Description Default
input_state_map dict[str, str] | None

Mapping of input names to pipeline state keys. Defaults to None, in which case an empty dictionary is used.

None
runtime_config_map dict[str, str] | None

Mapping of input names to runtime configuration keys. Defaults to None, in which case an empty dictionary is used.

None
fixed_args dict[str, Any] | None

Constant inputs to be included in every execution. Defaults to None, in which case an empty dictionary is used.

None