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

Method __init__

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

Initializes the NodeOptimizerConfig object. Args: config_path (str): The path to the configuration file.

(self, config_path)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected