Update agent.py
Browse files
agent.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from tools import
|
| 2 |
from dotenv import load_dotenv
|
| 3 |
from smolagents import FinalAnswerTool, InferenceClientModel
|
| 4 |
load_dotenv()
|
|
@@ -16,7 +16,7 @@ with open("system_prompt.txt", "r", encoding="utf-8") as f:
|
|
| 16 |
|
| 17 |
agent = CodeAgent(
|
| 18 |
model=model,
|
| 19 |
-
tools=
|
| 20 |
prompt_templates=system_prompt,
|
| 21 |
add_base_tools=True
|
| 22 |
)
|
|
|
|
| 1 |
+
from tools import all_tools
|
| 2 |
from dotenv import load_dotenv
|
| 3 |
from smolagents import FinalAnswerTool, InferenceClientModel
|
| 4 |
load_dotenv()
|
|
|
|
| 16 |
|
| 17 |
agent = CodeAgent(
|
| 18 |
model=model,
|
| 19 |
+
tools=all_tools,
|
| 20 |
prompt_templates=system_prompt,
|
| 21 |
add_base_tools=True
|
| 22 |
)
|