kylea commited on
Commit
82f8bba
·
1 Parent(s): 96cc16a

bug fix for book search tool

Browse files
Files changed (1) hide show
  1. tools/book_search.py +2 -2
tools/book_search.py CHANGED
@@ -33,11 +33,11 @@ class NYTBestSellerTool(Tool):
33
  'genre':
34
  {'type': 'string', 'description': 'The genre to search'},
35
  'limit':
36
- {'type': 'int', 'description': 'The number of results to include'}
37
  }
38
  output_type = "string"
39
 
40
- def __init__(self, max_results=10, **kwargs):
41
  super().__init__()
42
  self.api_prefix = "https://api.nytimes.com/svc/books/v3/lists/current"
43
  self.api_key = os.getenv("NYT_API_KEY")
 
33
  'genre':
34
  {'type': 'string', 'description': 'The genre to search'},
35
  'limit':
36
+ {'type': 'integer', 'description': 'The number of results to include'}
37
  }
38
  output_type = "string"
39
 
40
+ def __init__(self):
41
  super().__init__()
42
  self.api_prefix = "https://api.nytimes.com/svc/books/v3/lists/current"
43
  self.api_key = os.getenv("NYT_API_KEY")