hardknee commited on
Commit
2f74534
·
verified ·
1 Parent(s): ac3c3c0

Added get_nasa_neo_data to agent tools. Revised date formatting instructions

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,8 +13,8 @@ from Gradio_UI import GradioUI
13
  def get_nasa_neo_data(start_date:str, end_date:str) -> dict:
14
  """A function to get Near Earth Object (NEO) data from NASA API.
15
  Args:
16
- start_date: A string representing thestart date of the data to be fetched in. IMPORTANT: Follows US date convention using dash delimitation e.g. "2021-09-07"
17
- end_date: A string representing the end date of the data to be fetched. IMPORTANT: Follows US date convention using dash delimitation e.g. "2021-09-07"
18
  Returns: The data fetched from the API as a JSON-like dictionary.
19
  """
20
  root_url = "https://api.nasa.gov/neo/rest/v1/feed?"
@@ -79,7 +79,7 @@ with open("prompts.yaml", 'r') as stream:
79
 
80
  agent = CodeAgent(
81
  model=model,
82
- tools=[final_answer, image_generation_tool, web_search], ## add your tools here (don't remove final answer)
83
  max_steps=6,
84
  verbosity_level=1,
85
  grammar=None,
 
13
  def get_nasa_neo_data(start_date:str, end_date:str) -> dict:
14
  """A function to get Near Earth Object (NEO) data from NASA API.
15
  Args:
16
+ start_date: A string representing thestart date of the data to be fetched in. IMPORTANT: Follows date convention YYYY-MM-DD using dash delimitation e.g. "2021-09-07"
17
+ end_date: A string representing the end date of the data to be fetched. IMPORTANT: Follows date convention YYYY-MM-DD using dash delimitation e.g. "2021-09-07"
18
  Returns: The data fetched from the API as a JSON-like dictionary.
19
  """
20
  root_url = "https://api.nasa.gov/neo/rest/v1/feed?"
 
79
 
80
  agent = CodeAgent(
81
  model=model,
82
+ tools=[final_answer, image_generation_tool, web_search, get_nasa_neo_data], ## add your tools here (don't remove final answer)
83
  max_steps=6,
84
  verbosity_level=1,
85
  grammar=None,