Elifslh commited on
Commit
b718868
·
verified ·
1 Parent(s): 2cd4706

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -18,17 +18,17 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
18
  """
19
  return "What magic will you build ?"
20
 
21
-
22
  @tool
23
  def countdown_tool(event_date: str, duration: int) -> str:
24
- """A tool that calculates the remaining time until a specified event.
25
 
26
  Args:
27
- event_date (str): The date and time of the event in the format "YYYY-MM-DD HH:MM".
28
- duration (int): A placeholder integer argument (not used).
29
 
30
  Returns:
31
- str: A message indicating the time remaining until the event.
32
  """
33
  try:
34
  event_datetime = datetime.datetime.strptime(event_date, "%Y-%m-%d %H:%M")
 
18
  """
19
  return "What magic will you build ?"
20
 
21
+
22
  @tool
23
  def countdown_tool(event_date: str, duration: int) -> str:
24
+ """Calculates the remaining time until a specified event.
25
 
26
  Args:
27
+ event_date (str): The event's date and time in the format "YYYY-MM-DD HH:MM".
28
+ duration (int): A placeholder argument (not used in calculations).
29
 
30
  Returns:
31
+ str: A message displaying the time remaining until the event.
32
  """
33
  try:
34
  event_datetime = datetime.datetime.strptime(event_date, "%Y-%m-%d %H:%M")