Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,14 +52,14 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 52 |
prompt_templates = yaml.safe_load(stream)
|
| 53 |
|
| 54 |
tool=[
|
| 55 |
-
add_numbers,
|
| 56 |
-
get_current_time_in_timezone,
|
| 57 |
]
|
| 58 |
|
| 59 |
agent = CodeAgent(
|
| 60 |
tools=[add_numbers],[get_current_time_in_timezone],[FinalAnswerTool],
|
| 61 |
model= model,
|
| 62 |
-
add_base_tools=
|
| 63 |
name="MyAgent",
|
| 64 |
description="Practicing agent with simple math and time tools"
|
| 65 |
)
|
|
|
|
| 52 |
prompt_templates = yaml.safe_load(stream)
|
| 53 |
|
| 54 |
tool=[
|
| 55 |
+
"add_numbers",
|
| 56 |
+
"get_current_time_in_timezone", "FinalAnswerTool"
|
| 57 |
]
|
| 58 |
|
| 59 |
agent = CodeAgent(
|
| 60 |
tools=[add_numbers],[get_current_time_in_timezone],[FinalAnswerTool],
|
| 61 |
model= model,
|
| 62 |
+
add_base_tools=False,
|
| 63 |
name="MyAgent",
|
| 64 |
description="Practicing agent with simple math and time tools"
|
| 65 |
)
|