Spaces:
Sleeping
Sleeping
Commit
·
663e8d4
1
Parent(s):
740d769
two tools
Browse files
app.py
CHANGED
|
@@ -52,11 +52,13 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
|
|
| 52 |
|
| 53 |
with open("prompts.yaml", 'r') as stream:
|
| 54 |
prompt_templates = yaml.safe_load(stream)
|
| 55 |
-
|
|
|
|
|
|
|
| 56 |
agent = CodeAgent(
|
| 57 |
model=model,
|
| 58 |
-
tools=[get_current_time_in_timezone
|
| 59 |
-
|
| 60 |
additional_authorized_imports=["datetime"],
|
| 61 |
max_steps=6,
|
| 62 |
verbosity_level=1,
|
|
|
|
| 52 |
|
| 53 |
with open("prompts.yaml", 'r') as stream:
|
| 54 |
prompt_templates = yaml.safe_load(stream)
|
| 55 |
+
|
| 56 |
+
#Random test command
|
| 57 |
+
#
|
| 58 |
agent = CodeAgent(
|
| 59 |
model=model,
|
| 60 |
+
tools=[get_current_time_in_timezone,
|
| 61 |
+
final_answer], ## add your tools here (don't remove final answer)
|
| 62 |
additional_authorized_imports=["datetime"],
|
| 63 |
max_steps=6,
|
| 64 |
verbosity_level=1,
|