Gab-Chung commited on
Commit
adb2c14
·
verified ·
1 Parent(s): 3dbb067

updated the datatype for my arguments in the currency convert tool

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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:float, to_currency:float)-> 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
  """
 
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
  """