Spaces:
Sleeping
Sleeping
Added Tool variables
Browse files
tools/nasa_neo_data_fetcher.py
CHANGED
@@ -3,7 +3,12 @@ import requests
|
|
3 |
import json
|
4 |
from calendar import monthrange
|
5 |
|
6 |
-
class NASANeoDataFetcher:
|
|
|
|
|
|
|
|
|
|
|
7 |
def __init__(self):
|
8 |
self.api_key = os.getenv("NASA_API_KEY")
|
9 |
self.root_url = "https://api.nasa.gov/neo/rest/v1/feed?"
|
|
|
3 |
import json
|
4 |
from calendar import monthrange
|
5 |
|
6 |
+
class NASANeoDataFetcher(Tool):
|
7 |
+
name = "nasa_neo_data_fetcher"
|
8 |
+
description = "Retrieves Neo data from the NASA API for the dates in your query then returns the available Neo data."
|
9 |
+
inputs = {'query': {'type': 'string', 'date range': 'The range of dates to query.'}}
|
10 |
+
output_type = "string"
|
11 |
+
|
12 |
def __init__(self):
|
13 |
self.api_key = os.getenv("NASA_API_KEY")
|
14 |
self.root_url = "https://api.nasa.gov/neo/rest/v1/feed?"
|