Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
| 36 |
@tool
|
| 37 |
-
def exchange(base
|
| 38 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 39 |
"""A tool that calculates currency exchange rates.
|
| 40 |
Args:
|
|
|
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
| 36 |
@tool
|
| 37 |
+
def exchange(base:str, target:str, amount:float)-> float: #it's import to specify the return type
|
| 38 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 39 |
"""A tool that calculates currency exchange rates.
|
| 40 |
Args:
|