The NodeOptimizerConfig class is used to configure the node optimizer settings. It extends the OptimizerConfig class.
| 17 | |
| 18 | |
| 19 | class NodeOptimizerConfig(OptimizerConfig): |
| 20 | """ |
| 21 | The NodeOptimizerConfig class is used to configure the node optimizer settings. |
| 22 | It extends the OptimizerConfig class. |
| 23 | """ |
| 24 | |
| 25 | def __init__(self, config_path): |
| 26 | """ |
| 27 | Initializes the NodeOptimizerConfig object. |
| 28 | |
| 29 | Args: |
| 30 | config_path (str): The path to the configuration file. |
| 31 | """ |
| 32 | super().__init__(config_path) |
| 33 | |
| 34 | # The parent class parses the common fields, here we only parse the fields for node_optimizer |
| 35 | self.llm_config: dict = self.node_optimizer_setting_dict.get("llm_config") |
| 36 | self.meta_prompt: dict = self.node_optimizer_setting_dict.get("meta_prompt") |
| 37 | |
| 38 | |
| 39 | class NodeOptimizer(Optimizer): |