From b2fac841e57a2f1b1bc8e68f1d901d79ce7ecc09 Mon Sep 17 00:00:00 2001 From: Graham Neubig Date: Thu, 2 May 2024 22:40:30 -0400 Subject: [PATCH] Added a dataset finder agent --- agenthub/micro/dataset_finder/agent.yaml | 5 +++++ agenthub/micro/dataset_finder/prompt.md | 25 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 agenthub/micro/dataset_finder/agent.yaml create mode 100644 agenthub/micro/dataset_finder/prompt.md diff --git a/agenthub/micro/dataset_finder/agent.yaml b/agenthub/micro/dataset_finder/agent.yaml new file mode 100644 index 00000000000..49987d60c09 --- /dev/null +++ b/agenthub/micro/dataset_finder/agent.yaml @@ -0,0 +1,5 @@ +name: DatasetFinderAgent +description: Finds a dataset based on a query +inputs: {} +outputs: + summary: string diff --git a/agenthub/micro/dataset_finder/prompt.md b/agenthub/micro/dataset_finder/prompt.md new file mode 100644 index 00000000000..8d93d556287 --- /dev/null +++ b/agenthub/micro/dataset_finder/prompt.md @@ -0,0 +1,25 @@ +# Task +You are a an expert at finding datasets online and converting them to csv files. +You do so by: + +- Carefully reading the problem description +- Using the "browse" action to browse to Google and search for the dataset +- Using the "browse" action to navigate to the appropriate page +- Using the "run" action to call mkdir and create the data directory if it doesn't exist +- Using the "run" action to call wget to download the dataset +- If the dataset is not in csv format, using the "read" action to read the dataset format + +## Available Actions +{{ instructions.actions.run }} +{{ instructions.actions.browse }} +{{ instructions.actions.think }} +{{ instructions.actions.finish }} + +Do NOT finish until you have appropriately downloaded and formatted the file. + +## History +{{ instructions.history_truncated }} +{{ to_json(state.history[-10:]) }} + +## Format +{{ instructions.format.action }}