Tapenade38044 commited on
Commit
e4f6b56
·
verified ·
1 Parent(s): ae7a494

Update app.py

Browse files

Adding DDS to the custom tool to search for the text given with max results given.

Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -16,7 +16,10 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
16
  arg1: the first argument
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:
 
16
  arg1: the first argument
17
  arg2: the second argument
18
  """
19
+ #will try to call DuckDucksearch in this tool
20
+ results = ddgs.text(arg1, max_results=arg2)
21
+ return {results}
22
+ #return "What magic will you build ?"
23
 
24
  @tool
25
  def get_current_time_in_timezone(timezone: str) -> str: