mazhar75 commited on
Commit
0e7231b
·
verified ·
1 Parent(s): 991aef8

New tool Added

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -17,7 +17,13 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
17
  arg2: the second argument
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.
@@ -55,7 +61,7 @@ with open("prompts.yaml", 'r') as stream:
55
 
56
  agent = CodeAgent(
57
  model=model,
58
- tools=[final_answer,my_custom_tool,get_current_time_in_timezone], ## add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,
 
17
  arg2: the second argument
18
  """
19
  return "What magic will you build ?"
20
+
21
+ @tool
22
+ def about_author() -> str:
23
+ """A tool that tell about the author of this space.
24
+ """
25
+ return "I modified by Md. Mazharul Islam"
26
+
27
  @tool
28
  def get_current_time_in_timezone(timezone: str) -> str:
29
  """A tool that fetches the current local time in a specified timezone.
 
61
 
62
  agent = CodeAgent(
63
  model=model,
64
+ tools=[final_answer,my_custom_tool,get_current_time_in_timezone,about_author], ## add your tools here (don't remove final answer)
65
  max_steps=6,
66
  verbosity_level=1,
67
  grammar=None,