πΈ BaseNode Module
The BaseNode
module provides an abstract base class for nodes in a graph-based workflow, designed to perform specific actions when executed.
Classesβ
BaseNode
β
BaseNode
is an abstract base class for nodes in a graph-based workflow.
Attributesβ
- node_name (str): The unique identifier name for the node.
- input (str): Boolean expression defining the input keys needed from the state.
- output (List[str]): List of output keys to be updated in the state.
- min_input_len (int): Minimum required number of input keys.
- node_config (Optional[dict]): Additional configuration for the node.
- logger (logging.Logger): The centralized root logger.