Spaces:
Runtime error
Runtime error
metehan yalçın
commited on
Update app.py
Browse files
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
|
| 30 |
-
currency_value
|
| 31 |
-
target_currency
|
| 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
|