MCPcopy Create free account
hub / github.com/aiwaves-cn/agents / NodeOptimizerConfig

Class NodeOptimizerConfig

src/agents/optimization/node_optimizer.py:19–36  ·  view source on GitHub ↗

The NodeOptimizerConfig class is used to configure the node optimizer settings. It extends the OptimizerConfig class.

Source from the content-addressed store, hash-verified

17
18
19class 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
39class NodeOptimizer(Optimizer):

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected