Fix up tool_list function
Browse files
app.py
CHANGED
|
@@ -27,13 +27,13 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 27 |
## https://huggingface.co/spaces/DenverJones/First_agent_template/blob/main/app.py ## randomly select a Motivational Quote
|
| 28 |
|
| 29 |
@tool
|
| 30 |
-
def available_tools(
|
| 31 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 32 |
"""A tool that takes no arguments but returns a list of tools available to the agent
|
| 33 |
Args:
|
| 34 |
None
|
| 35 |
"""
|
| 36 |
-
return tool_list
|
| 37 |
|
| 38 |
|
| 39 |
@tool
|
|
|
|
| 27 |
## https://huggingface.co/spaces/DenverJones/First_agent_template/blob/main/app.py ## randomly select a Motivational Quote
|
| 28 |
|
| 29 |
@tool
|
| 30 |
+
def available_tools()-> str: #it's import to specify the return type
|
| 31 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 32 |
"""A tool that takes no arguments but returns a list of tools available to the agent
|
| 33 |
Args:
|
| 34 |
None
|
| 35 |
"""
|
| 36 |
+
return [f.__name__ for f in tool_list]
|
| 37 |
|
| 38 |
|
| 39 |
@tool
|