assimaram commited on
Commit
29c8da2
·
verified ·
1 Parent(s): 51856dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -22,6 +22,12 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
22
 
23
  @tool
24
  def wikipedia_search(query, sentences=2):
 
 
 
 
 
 
25
  try:
26
  # Search Wikipedia for a page title
27
  results = wikipedia.search(query)
 
22
 
23
  @tool
24
  def wikipedia_search(query, sentences=2):
25
+ """A tool that search a definition on wikipedia
26
+ Args:
27
+ arg1: the query to fetch the defition for
28
+ arg2: the length of the summary to provide for the defition
29
+ """
30
+
31
  try:
32
  # Search Wikipedia for a page title
33
  results = wikipedia.search(query)