rename tool

This commit is contained in:
2026-01-05 23:14:03 +08:00
parent b1d2c83cb5
commit f380bc40e3
3 changed files with 6 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ class ReactGraph(GraphBase):
self.tool_manager:ToolManager = self.config.tool_manager_config.setup()
memory = MemorySaver()
tools = self.tool_manager.get_list_langchain_tools()
tools = self.tool_manager.get_langchain_tools()
self.agent = create_agent(self.llm, tools, checkpointer=memory)
def invoke(self, *nargs, as_stream:bool=False, as_raw:bool=False, **kwargs):

View File

@@ -41,7 +41,7 @@ class ToolNode(ToolNodeBase):
def populate_modules(self):
self.llm = make_llm(tags=["tool_llm"])
self.tool_agent = create_agent(self.llm, self.tool_manager.get_list_langchain_tools(), checkpointer=self.mem)
self.tool_agent = create_agent(self.llm, self.tool_manager.get_langchain_tools(), checkpointer=self.mem)
with open(self.config.tool_prompt_f, "r") as f:
self.sys_prompt = f.read()