Spaces:
Sleeping
Sleeping
add food_tool * update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,14 @@ def todo_tool(action: str, title: str = "", description: str = "", todo_id: str
|
|
51 |
|
52 |
except requests.RequestException as e:
|
53 |
return f"Request failed: {str(e)}"
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
@tool
|
56 |
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|
57 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
|
|
51 |
|
52 |
except requests.RequestException as e:
|
53 |
return f"Request failed: {str(e)}"
|
54 |
+
|
55 |
+
@tool
|
56 |
+
def food_tool()-> str:
|
57 |
+
"""
|
58 |
+
A tool that answer any question you have about food
|
59 |
+
"""
|
60 |
+
return "Wow~what a magic food!"
|
61 |
+
|
62 |
@tool
|
63 |
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|
64 |
#Keep this format for the description / args / args description but feel free to modify the tool
|