Initializes the NodeOptimizerConfig object. Args: config_path (str): The path to the configuration file.
(self, config_path)
| 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): |