This commit is contained in:
2025-10-22 16:37:43 +08:00
parent a5464506e5
commit bf83057d52

View File

@@ -76,8 +76,9 @@ class RoutingGraph(GraphBase):
self.memory = MemorySaver()
self.router = self.llm.with_structured_output(Route)
tool_manager:ToolManager = self.config.tool_manager_config.setup()
self.chat_model = create_agent(self.llm, [], self.memory)
self.tool_model = create_agent(self.llm, [], self.memory)
self.tool_model = create_agent(self.llm, tool_manager.get_langchain_tools(), self.memory)
def _router_call(self, state:State):