Spaces:
Sleeping
Sleeping
updated the datatype for my arguments in the currency convert tool
Browse files
app.py
CHANGED
|
@@ -20,10 +20,10 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 20 |
return "What magic will you build ?"
|
| 21 |
|
| 22 |
@tool
|
| 23 |
-
def convert_currency(amount:float, from_currency:
|
| 24 |
""" A tool that converts a specified amount from one currency to another.
|
| 25 |
Args:
|
| 26 |
-
amount (float): The amount of money to convert (e.g. 10.5)
|
| 27 |
from_currency (str): The currency code of the source currency (e.g., 'USD').
|
| 28 |
to_currency (str): The currency code of the target currency (e.g., 'EUR').
|
| 29 |
"""
|
|
|
|
| 20 |
return "What magic will you build ?"
|
| 21 |
|
| 22 |
@tool
|
| 23 |
+
def convert_currency(amount:float, from_currency:str, to_currency:str) -> float:
|
| 24 |
""" A tool that converts a specified amount from one currency to another.
|
| 25 |
Args:
|
| 26 |
+
amount (float): The amount of money to convert (e.g. 10.5).
|
| 27 |
from_currency (str): The currency code of the source currency (e.g., 'USD').
|
| 28 |
to_currency (str): The currency code of the target currency (e.g., 'EUR').
|
| 29 |
"""
|