rename tool
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user