ahudock commited on
Commit
966940f
·
1 Parent(s): cd230b1

Add param description

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -12,7 +12,9 @@ from Gradio_UI import GradioUI
12
  @tool
13
  def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
14
  #Keep this format for the description / args / args description but feel free to modify the tool
15
- """A tool that does nothing yet
 
 
16
  Args:
17
  arg1: the first argument
18
  arg2: the second argument
@@ -21,7 +23,9 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
21
 
22
  @tool
23
  def get_current_time_in_timezone(timezone: str) -> str:
24
- """A tool that fetches the current local time in a specified timezone.
 
 
25
  Args:
26
  timezone: A string representing a valid timezone (e.g., 'America/New_York').
27
  """
@@ -36,7 +40,12 @@ def get_current_time_in_timezone(timezone: str) -> str:
36
 
37
  @tool
38
  def yf_get_ticker_price(ticker: str):
39
- """Return the latest closing price for a stock ticker."""
 
 
 
 
 
40
  data = yf.Ticker(ticker).history(period="1d")
41
  return float(data["Close"].iloc[-1])
42
 
 
12
  @tool
13
  def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
14
  #Keep this format for the description / args / args description but feel free to modify the tool
15
+ """
16
+ A tool that does nothing yet
17
+
18
  Args:
19
  arg1: the first argument
20
  arg2: the second argument
 
23
 
24
  @tool
25
  def get_current_time_in_timezone(timezone: str) -> str:
26
+ """
27
+ A tool that fetches the current local time in a specified timezone.
28
+
29
  Args:
30
  timezone: A string representing a valid timezone (e.g., 'America/New_York').
31
  """
 
40
 
41
  @tool
42
  def yf_get_ticker_price(ticker: str):
43
+ """
44
+ Return the latest closing price for a stock ticker.
45
+
46
+ Args:
47
+ ticker: A string representing a stock ticker.
48
+ """
49
  data = yf.Ticker(ticker).history(period="1d")
50
  return float(data["Close"].iloc[-1])
51