marluwe commited on
Commit
ab6a1d2
·
verified ·
1 Parent(s): 5740d00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,12 +20,12 @@ 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 get_datetime_format(country_code:str)-> str:
24
  """Get the datetime format string for a specific country.
25
  Args:
26
- country_code: Two-letter country code (e.g., 'US', 'FR')
27
  """
28
- match country_code.upper():
29
  # European formats
30
  case 'FR' | 'DE' | 'AT' | 'CH':
31
  return "%d.%m.%Y %H:%M:%S"
 
20
  return "What magic will you build ?"
21
 
22
  @tool
23
+ def get_datetime_format(countrycode:str)-> str:
24
  """Get the datetime format string for a specific country.
25
  Args:
26
+ countrycode: Two-letter country code (e.g., 'US', 'FR')
27
  """
28
+ match countrycode.upper():
29
  # European formats
30
  case 'FR' | 'DE' | 'AT' | 'CH':
31
  return "%d.%m.%Y %H:%M:%S"