Code Monkey home page Code Monkey logo

gpt-agents's Introduction

GPT-agents

GPT-agents is a simple blend between AutoGPT and Perplexity AI, with a focus on usability and user experience.

๐Ÿ’ผ Assistant ๐Ÿ’ญ Therapist ๐Ÿ‘จโ€๐Ÿณ Chef ๐Ÿ‘” Investor
The default agent, with a neutral personality A therapist that can help you with your problems A chef with great cooking expertise An agent that has knowledge about finance and investments

Features:

  • ๐ŸŒ Browsing capabilities: The agents can browse and search for information to assist you better
  • ๐Ÿ“ Conversation history: Save and load conversation history
  • โœ๏ธ Agent management: Easily create and manage multiple agents
  • ๐Ÿ—ฃ๏ธ Conversation: Use the Whisper API to transcribe speech-to-text for a more seamless 1-1 communication experience

There are two options: chat mode and task mode. In chat mode, you can converse with the agent, and in task mode, you can let all agents work together to complete a task.


Setup

  1. Clone the repository:
git clone https://github.com/avocardio/GPT-agents.git
  1. Install the requirements:
pip install -r requirements.txt
  1. Store your OpenAI API key in and change the name of the file to:

credentials.json (without the "(template)")

  1. Edit the config.json file to your liking

  2. Run the program:

python chat.py

or

python task.py

Usage

Chat mode

  • Follow the on-screen instructions to select an agent (1-4), and then select the conversation history to be used, or press enter to use the current history. After this, you will be able to converse with the agent.

  • To reset and save a conversation, type "RESET" into the input field and press enter. This will save the current conversation to a timestamped history.json file in the agent's folder. After this, you will have a fresh instance of the agent.

Task mode

  • In this mode, you will be prompted to enter a task. The agents will then talk to each other and pick new agents from the pool to complete the task. The agents will also be able to browse the internet for information to help them complete the task.

Features

Agents

  • Currently there are 4 agents available.

    To create more agents, simply create a file in the agents folder, and add a JSON file, or run the agent_creator.py script.

Browsing

  • Browsing is enabled when the user prompts using one of the following keywords:

    ["search", "browse", "research", "look up", "find", "look for", "google", "browsing", "googling", "looking for", "looking up", "looking up"]

    This will trigger a google search where the first 3 pages are scraped and summarized, for the agent to read out to the user.

Whisper API

  • To use voice to text with the agents, you will need to enable this function in config.json. Then, you will be able to speak to the agent when its your turn ("You:") and accept the message with enter.

Examples

a) Chef

Chef Example

b) Investor

Investor Example

Debug mode

To print the current message payload sent to the model (for debugging) you can enable debug-mode in the config.json file.

Todo's

  • Improve agent switching in task mode !
  • Fix Voice input newline when accepting with enter
  • Add more agents
  • Improve browsing capabilities
  • Add TTS (coqui-ai TTS)
  • Add telegram / discord support
  • Add offline mode

gpt-agents's People

Contributors

avocardio avatar markac007 avatar

Stargazers

Cassim Ahmed Attia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.