Update app.py
Browse files
app.py
CHANGED
|
@@ -12,12 +12,13 @@ from typing import Callable
|
|
| 12 |
@tool
|
| 13 |
def my_custom_tool(arg1:str)-> str: #it's import to specify the return type
|
| 14 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 15 |
-
"""A tool takes city name as input and returns
|
|
|
|
|
|
|
| 16 |
Args:
|
| 17 |
arg1: the first argument
|
| 18 |
"""
|
| 19 |
-
|
| 20 |
-
return "my customer tool: Information about the city: {arg1} & {cur_time} is current time in {arg1}."
|
| 21 |
|
| 22 |
@tool
|
| 23 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 12 |
@tool
|
| 13 |
def my_custom_tool(arg1:str)-> str: #it's import to specify the return type
|
| 14 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 15 |
+
"""A tool takes city name as input and returns information related to
|
| 16 |
+
1. Tourism
|
| 17 |
+
2. Weather
|
| 18 |
Args:
|
| 19 |
arg1: the first argument
|
| 20 |
"""
|
| 21 |
+
return "my customer tool: Information about the city: {arg1}."
|
|
|
|
| 22 |
|
| 23 |
@tool
|
| 24 |
def get_current_time_in_timezone(timezone: str) -> str:
|