MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / init_nodes

Method init_nodes

KVCOMM/graph/graph.py:136–145  ·  view source on GitHub ↗

Creates and adds new nodes to the graph.

(self)

Source from the content-addressed store, hash-verified

134 return node
135
136 def init_nodes(self):
137 """
138 Creates and adds new nodes to the graph.
139 """
140 for agent_name,kwargs in zip(self.agent_names,self.node_kwargs):
141 if agent_name in AgentRegistry.registry:
142 kwargs["domain"] = self.domain
143 kwargs["llm_name"] = self.llm_name
144 agent_instance = AgentRegistry.get(agent_name, **kwargs)
145 self.add_node(agent_instance)
146
147 def init_potential_edges(self):
148 """

Callers 1

__init__Method · 0.95

Calls 2

add_nodeMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected