Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def my_custom_tool(arg1:str)-> list[str]: #it's import to specify the return typ
|
|
| 13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 14 |
"""A tool that retrieves a list of top 10 books from gutenberg.org
|
| 15 |
Args:
|
| 16 |
-
|
| 17 |
"""
|
| 18 |
base_url = "https://www.gutenberg.org/ebooks/search/"
|
| 19 |
params = {
|
|
@@ -87,7 +87,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 87 |
|
| 88 |
agent = CodeAgent(
|
| 89 |
model=model,
|
| 90 |
-
tools=[final_answer], ## add your tools here (don't remove final answer)
|
| 91 |
max_steps=6,
|
| 92 |
verbosity_level=1,
|
| 93 |
grammar=None,
|
|
|
|
| 13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 14 |
"""A tool that retrieves a list of top 10 books from gutenberg.org
|
| 15 |
Args:
|
| 16 |
+
arg1:str A keyword like technology or science in string representation
|
| 17 |
"""
|
| 18 |
base_url = "https://www.gutenberg.org/ebooks/search/"
|
| 19 |
params = {
|
|
|
|
| 87 |
|
| 88 |
agent = CodeAgent(
|
| 89 |
model=model,
|
| 90 |
+
tools=[final_answer],[my_custom_tool] ## add your tools here (don't remove final answer)
|
| 91 |
max_steps=6,
|
| 92 |
verbosity_level=1,
|
| 93 |
grammar=None,
|