Giter Site home page Giter Site logo

brettmkettler / autoagents Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 226.22 MB

C 1.09% Python 97.21% Cython 0.93% CSS 0.08% TeX 0.01% JavaScript 0.02% C++ 0.39% Batchfile 0.01% Assembly 0.01% HTML 0.08% Shell 0.01% Makefile 0.01% Starlark 0.01% XSLT 0.14% Meson 0.01% Fortran 0.03% Forth 0.01% Smarty 0.01% Roff 0.01% VBScript 0.01%

autoagents's Introduction

Auto Agent Script (Generative AI Laboratory)

This README provides information about the Auto Agent script and instructions for setting up and running the code. The script is designed to facilitate interaction with multiple agents that can generate and execute Python code based on user inputs.

Features

  • Setup virtual environment and install dependencies.
  • Configure a Streamlit-based user interface to interact with agents.
  • Register tools with agents for task planning and execution.
  • Facilitate group chats among agents for better task planning.

Setup

Requirements

  • Python 3.8+
  • Virtual environment tools (venv)
  • Streamlit
  • Gevent
  • Dotenv

Setup Instructions

  1. Virtual Environment Setup
    • Create a virtual environment: python -m venv AutoAgent
    • Activate the virtual environment:
      • Windows: .\AutoAgent\Scripts\Activate
      • Linux/MacOS: source AutoAgent/bin/activate
  2. Install Dependencies
    • Install the required packages: pip install -r requirements.txt
  3. Fix Certificate Issues (if any)
    • If you encounter certificate issues, install python-certifi-win32: pip install python-certifi-win32

Usage

Configuring Agents

  1. Setup Code Executors
    • The code executor is set up to execute code in a local environment.
  2. Register Tools with Agents
    • Different tools are registered with agents to assist in research, PDF creation, and task planning.

Group Chat Setup

The group chat setup allows for communication among different agents while respecting allowed speaker transitions. This ensures that the right agent receives the message.

Streamlit UI

  • The UI is powered by Streamlit and includes:
    • A header describing the platform.
    • Example use cases to guide users on the capabilities of the platform.
    • Sidebar for user configuration.

Interaction

  • User Proxy Agent
    • TrackableUserProxyAgent class captures user messages and manages the interactions.
  • Group Chat Manager
    • TrackableGroupChatManager manages the group chat setup and facilitates smooth interaction.

Executing the Code

  • Input a question or command in the Streamlit UI.
  • Ensure you have selected the right model and provided the OpenAI API key.
  • Agents will process the input and provide responses accordingly.

Troubleshooting

  • Ensure all dependencies are installed correctly.
  • Verify the OpenAI API key and model configurations.
  • Check for specific error messages in the Streamlit UI and address them accordingly.

License

This project is licensed under the MIT License.

autoagents's People

Contributors

brettmkettler avatar

Watchers

 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.