Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -18,6 +18,14 @@ 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
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str:
23
  """A tool that fetches the current local time in a specified timezone.
 
18
  """
19
  return "What magic will you build ?"
20
 
21
+ @tool
22
+ def get_weather(loc: str) -> str:
23
+ """A tool that fetches the weather of location
24
+ Args:
25
+ loc: A string representing a valid location (e.g., 'America/New_York').
26
+ """
27
+ return f"Current Weather in {loc} is sunny with 32 degree C."
28
+
29
  @tool
30
  def get_current_time_in_timezone(timezone: str) -> str:
31
  """A tool that fetches the current local time in a specified timezone.