Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,10 +25,6 @@ def inspect_directory(directory: str, prefix: str = '') -> str:
|
|
25 |
|
26 |
Args:
|
27 |
directory: The path to the directory to inspect.
|
28 |
-
prefix: (optional) The prefix string used for formatting the tree structure.
|
29 |
-
|
30 |
-
Returns:
|
31 |
-
str: A string representing the tree structure of the directory.
|
32 |
"""
|
33 |
tree_str = ''
|
34 |
contents = os.listdir(directory)
|
@@ -82,7 +78,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
82 |
|
83 |
agent = CodeAgent(
|
84 |
model=model,
|
85 |
-
tools=[inspect_directory, final_answer], ## add your tools here (don't remove final answer)
|
86 |
max_steps=6,
|
87 |
verbosity_level=1,
|
88 |
grammar=None,
|
|
|
25 |
|
26 |
Args:
|
27 |
directory: The path to the directory to inspect.
|
|
|
|
|
|
|
|
|
28 |
"""
|
29 |
tree_str = ''
|
30 |
contents = os.listdir(directory)
|
|
|
78 |
|
79 |
agent = CodeAgent(
|
80 |
model=model,
|
81 |
+
tools=[inspect_directory, get_current_time_in_timezone, final_answer], ## add your tools here (don't remove final answer)
|
82 |
max_steps=6,
|
83 |
verbosity_level=1,
|
84 |
grammar=None,
|