Creates and adds new nodes to the graph.
(self)
| 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 | """ |