Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
add more agents (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchase17 authored Jan 27, 2023
1 parent 249dc79 commit b2fe66a
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 0 deletions.
13 changes: 13 additions & 0 deletions agents/zero-shot-react-conversation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Zero Shot ReAct Conversational Agent

## Description

Agent that asks interacts with arbitrary tools and carries on a conversation

## Agent type

`conversational-react-description`

## Required Tool Names

- Can be any
8 changes: 8 additions & 0 deletions agents/zero-shot-react-conversation/agent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"load_from_llm_and_tools": true,
"_type": "conversational-react-description",
"prefix": "Assistant is a large language model trained by OpenAI.\n\nAssistant is designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-depth explanations and discussions on a wide range of topics. As a language model, Assistant is able to generate human-like text based on the input it receives, allowing it to engage in natural-sounding conversations and provide responses that are coherent and relevant to the topic at hand.\n\nAssistant is constantly learning and improving, and its capabilities are constantly evolving. It is able to process and understand large amounts of text, and can use this knowledge to provide accurate and informative responses to a wide range of questions. Additionally, Assistant is able to generate its own text based on the input it receives, allowing it to engage in discussions and provide explanations and descriptions on a wide range of topics.\n\nOverall, Assistant is a powerful tool that can help with a wide range of tasks and provide valuable insights and information on a wide range of topics. Whether you need help with a specific question or just want to have a conversation about a particular topic, Assistant is here to assist.\n\nTOOLS:\n------\n\nAssistant has access to the following tools:",
"suffix": "Begin!\n\nPrevious conversation history:\n{chat_history}\n\nNew input: {input}\n{agent_scratchpad}",
"ai_prefix": "AI",
"human_prefix": "Human"
}
13 changes: 13 additions & 0 deletions agents/zero-shot-react-description/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Zero Shot ReAct Agent

## Description

Agent that asks interacts with arbitrary tools

## Agent type

`zero-shot-react-description`

## Required Tool Names

- Can be any
6 changes: 6 additions & 0 deletions agents/zero-shot-react-description/agent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"load_from_llm_and_tools": true,
"_type": "zero-shot-react-description",
"prefix": "Answer the following questions as best you can. You have access to the following tools:",
"suffix": "Begin!\n\nQuestion: {input}\nThought:{agent_scratchpad}"
}
13 changes: 13 additions & 0 deletions agents/zero-shot-react-sql/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SQL Agent

## Description

Agent that asks interacts with SQL databases

## Agent type

`zero-shot-react-description`

## Required Tool Names

- Can be any, should be tools to interact with SQL databases
6 changes: 6 additions & 0 deletions agents/zero-shot-react-sql/agent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"load_from_llm_and_tools": true,
"_type": "zero-shot-react-description",
"prefix": "Answer the question as best you can.\nYou should only use data in the SQL database to answer the query. The answer you return should come directly from the database. If you don't find an answer, say \"There is not enough information in the DB to answer the question.\"\nYour first query can be exploratory, to understand the data in the table. As an example, you can query what the first 5 examples of a column are before querying that column.\nWhen possible, don't query exactly but always use 'LIKE' to make your queries more robust.\nFinally, be mindful of not repeating queries.\nYou have access to the following DB:",
"suffix": "Begin!\nQuestion: {input}\nThought:{agent_scratchpad}"
}

0 comments on commit b2fe66a

Please sign in to comment.