lifecycle.ResultBuilder¶
- class hamilton.lifecycle.api.ResultBuilder[source]¶
Abstract class for building results. All result builders should inherit from this class and implement the build_result function. Note that applicable_input_type and output_type are optional, but recommended, for backwards compatibility. They let us type-check this. They will default to Any, which means that they’ll connect to anything.
- abstractmethod build_result(**outputs: Any) Any[source]¶
Given a set of outputs, build the result.
- Parameters:
outputs – the outputs from the execution of the graph.
- Returns:
the result of the execution of the graph.
- final do_build_result(outputs: dict[str, Any]) Any[source]¶
Implements the do_build_result method from the BaseDoBuildResult class. This is kept from the user as the public-facing API is build_result, allowing us to change the API/implementation of the internal set of hooks