Spaces:
Sleeping
Sleeping
chore: change initialize class method name
Browse files- 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
|
| 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(
|