dgarciajr commited on
Commit
0eac16e
·
verified ·
1 Parent(s): 7062776

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -18,6 +18,20 @@ 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 stock_ticker_price_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
23
+ #Keep this format for the description / args / args description but feel free to modify the tool
24
+ """A tool that does nothing yet
25
+ Args:
26
+ arg1: the first argument
27
+ arg2: the second argument
28
+ """
29
+ try:
30
+
31
+ return f"The current local time in {timezone} is: {local_time}"
32
+ except Exception as e:
33
+ return f"Error fetching time for timezone '{timezone}': {str(e)}"
34
+
35
  @tool
36
  def get_current_time_in_timezone(timezone: str) -> str:
37
  """A tool that fetches the current local time in a specified timezone.