HollowVoice commited on
Commit
7cbbddc
·
verified ·
1 Parent(s): 9ab70c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,12 +18,12 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
18
  return "What magic will you build ?"
19
 
20
  @tool
21
- def tell_a_joke(arg1:str)-> str: #it's import to specify the return type
22
  """A tool that creates a joke about a specific topic
23
  Args:
24
- arg1: the topic
25
  """
26
- return f"Why did {arg1} cross the road? It had to wait for a giraffe"
27
 
28
  @tool
29
  def get_current_time_in_timezone(timezone: str) -> str:
 
18
  return "What magic will you build ?"
19
 
20
  @tool
21
+ def tell_a_joke(topic:str)-> str: #it's import to specify the return type
22
  """A tool that creates a joke about a specific topic
23
  Args:
24
+ topic: A string representing the topic of the joke (e.g. 'monkey').
25
  """
26
+ return f"Why did {topic} cross the road? It had to wait for a giraffe"
27
 
28
  @tool
29
  def get_current_time_in_timezone(timezone: str) -> str: