metehan yalçın commited on
Commit
824b8fc
·
verified ·
1 Parent(s): ee1d34f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -11
app.py CHANGED
@@ -22,19 +22,12 @@ Args:
22
 
23
  @tool
24
  def my_custom_tool(currency_name: str, currency_value: Union[int, float], target_currency: str) -> float:
25
- """
26
- Convert a given amount from one currency to another using current exchange rates.
27
 
28
  Args:
29
- currency_name (str): The name or code of the source currency to convert from (e.g., "TRY", "USD", "EUR")
30
- currency_value (Union[int, float]): The amount of money in the source currency to be converted
31
- target_currency (str): The name or code of the target currency to convert to (e.g., "USD", "EUR", "GBP")
32
-
33
- Returns:
34
- float: The converted amount in the target currency
35
-
36
- Example:
37
- my_custom_tool("TRY", 36, "USD") -> 1.11 (or current equivalent)
38
  """
39
  try:
40
  # Normalize currency codes
 
22
 
23
  @tool
24
  def my_custom_tool(currency_name: str, currency_value: Union[int, float], target_currency: str) -> float:
25
+ """A tool that converts an amount from one currency to another using current exchange rates.
 
26
 
27
  Args:
28
+ currency_name: A string representing the source currency code (e.g., 'TRY', 'USD', 'EUR').
29
+ currency_value: A number representing the amount of money in the source currency to convert.
30
+ target_currency: A string representing the target currency code (e.g., 'USD', 'EUR', 'GBP').
 
 
 
 
 
 
31
  """
32
  try:
33
  # Normalize currency codes