saiwaimaung commited on
Commit
a0c1cca
·
verified ·
1 Parent(s): b3acd49

Update app.py

Browse files

Added dummy tool

Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -18,6 +18,15 @@ def my_cutom_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.
@@ -51,7 +60,7 @@ with open("prompts.yaml", 'r') as stream:
51
 
52
  agent = CodeAgent(
53
  model=model,
54
- tools=[final_answer, get_current_time_in_timezone, DuckDuckGoSearchTool], ## add your tools here (don't remove final answer)
55
  max_steps=6,
56
  verbosity_level=1,
57
  grammar=None,
 
18
  """
19
  return "What magic will you build ?"
20
 
21
+ @tool
22
+ def greet_the_user(first_name:str, last_name:str) -> str:
23
+ """A tool that greet user
24
+ Args:
25
+ first_name: user's first name
26
+ last_name: user's last name
27
+ """
28
+ return f"Hello {first_name} {last_name}, how are you today?"
29
+
30
  @tool
31
  def get_current_time_in_timezone(timezone: str) -> str:
32
  """A tool that fetches the current local time in a specified timezone.
 
60
 
61
  agent = CodeAgent(
62
  model=model,
63
+ tools=[final_answer, get_current_time_in_timezone, greet_the_user], ## add your tools here (don't remove final answer)
64
  max_steps=6,
65
  verbosity_level=1,
66
  grammar=None,