function rename
This commit is contained in:
@@ -47,7 +47,7 @@ class ReactGraph(GraphBase):
|
|||||||
|
|
||||||
self.tool_manager:ToolManager = self.config.tool_manager_config.setup()
|
self.tool_manager:ToolManager = self.config.tool_manager_config.setup()
|
||||||
memory = MemorySaver()
|
memory = MemorySaver()
|
||||||
tools = self.tool_manager.get_langchain_tools()
|
tools = self.tool_manager.get_list_langchain_tools()
|
||||||
self.agent = create_agent(self.llm, tools, checkpointer=memory)
|
self.agent = create_agent(self.llm, tools, checkpointer=memory)
|
||||||
|
|
||||||
def invoke(self, *nargs, as_stream:bool=False, as_raw:bool=False, **kwargs):
|
def invoke(self, *nargs, as_stream:bool=False, as_raw:bool=False, **kwargs):
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ class RoutingGraph(GraphBase):
|
|||||||
|
|
||||||
tool_manager:ToolManager = self.config.tool_manager_config.setup()
|
tool_manager:ToolManager = self.config.tool_manager_config.setup()
|
||||||
self.chat_model = create_agent(self.llm, [], checkpointer=self.memory)
|
self.chat_model = create_agent(self.llm, [], checkpointer=self.memory)
|
||||||
self.tool_model = create_agent(self.llm, tool_manager.get_langchain_tools(), checkpointer=self.memory)
|
self.tool_model = create_agent(self.llm, tool_manager.get_list_langchain_tools(), checkpointer=self.memory)
|
||||||
|
|
||||||
with open(self.config.sys_promp_json , "r") as f:
|
with open(self.config.sys_promp_json , "r") as f:
|
||||||
self.prompt_dict = commentjson.load(f)
|
self.prompt_dict = commentjson.load(f)
|
||||||
|
|||||||
Reference in New Issue
Block a user