laverdes commited on
Commit
0113011
·
verified ·
1 Parent(s): 17856aa

chore: change initialize class method name

Browse files
Files changed (1) hide show
  1. basic_agent.py +1 -3
basic_agent.py CHANGED
@@ -135,10 +135,8 @@ class ToolAgent:
135
  self.backstory = backstory if backstory else "You are a helpful assistant that can use tools to answer questions. Your name is Gaia."
136
 
137
 
138
- def create_basic_tool_use_agent_state_graph(self, custom_tools_nm="tools"):
139
  """Binds tools, creates and compiles graph"""
140
-
141
- tools_info = '\n\n'.join([f'{tool.name}: {tool.description}: {tool.args}' for tool in self.tools])
142
  chatgpt_with_tools = self.llm.bind_tools(self.tools)
143
 
144
  prompt_template = ChatPromptTemplate.from_messages(
 
135
  self.backstory = backstory if backstory else "You are a helpful assistant that can use tools to answer questions. Your name is Gaia."
136
 
137
 
138
+ def initialize(self, custom_tools_nm="tools"):
139
  """Binds tools, creates and compiles graph"""
 
 
140
  chatgpt_with_tools = self.llm.bind_tools(self.tools)
141
 
142
  prompt_template = ChatPromptTemplate.from_messages(