Spaces:
Sleeping
Sleeping
bug fix for book search tool
Browse files- 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': '
|
| 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")
|
|
|
|
| 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")
|