Skip to content

Commit

Permalink
docs: Be more clear in our instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
shoutsid committed Oct 17, 2023
1 parent 4d3cddf commit 800eda4
Showing 1 changed file with 74 additions and 10 deletions.
84 changes: 74 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,94 @@

A Python-based chatbot framework built on the autogen foundation, utilizing advanced agents for dynamic conversations and function orchestration, enhancing and expanding traditional chatbot capabilities.

## Table of Contents

1. [Features](#features)
2. [Prerequisites](#prerequisites)
3. [Installation](#installation)
4. [Usage](#usage)
5. [Contributing](#contributing)
6. [Testing](#testing)
7. [Roadmap](#roadmap)
8. [Credits](#credits)
9. [License](#license)



## Features

- **Planner**: The [planner](https://github.com/shoutsid/townhall/blob/main/agents/planner.py) module provides functionalities to truncate conversations, initiate chats with the planner, and manage a registry of functions.
- **Function Registry**: The [function registry](https://github.com/shoutsid/townhall/blob/main/agents/function_registry.py) module manages a registry of functions, allowing users to add, execute, and list functions.
- **Buddy**: The [buddy](https://github.com/shoutsid/townhall/blob/main/agents/buddy.py) module represents a chatbot that can initiate a chat between a user and an assistant agent.
- **Settings**: The [settings](https://github.com/shoutsid/townhall/blob/main/settings.py) module loads environment variables and defines configurations for the application.
- **Setup**: The [setup script](https://github.com/shoutsid/townhall/blob/main/setup.sh) helps in setting up a virtual environment and installing necessary dependencies.
- **User Agent**: The [user agent](https://github.com/shoutsid/townhall/blob/main/agents/user_agent.py) represents a user in the system and can send messages to other agents.
- **Chat Service**: The [chat service](https://github.com/shoutsid/townhall/blob/main/agents/services/chat_service.py) module handles the logic for initiating and managing chats between agents.
- **Function Service**: The [function service](https://github.com/shoutsid/townhall/blob/main/agents/services/function_service.py) module provides functionalities for executing specific tasks.
- **Planner Service**: The [planner service](https://github.com/shoutsid/townhall/blob/main/agents/services/planner_service.py) module aids in planning and sequencing tasks for the chatbot.

## Prerequisites

Before you begin, ensure you have met the following requirements:

## Getting Started
- Python 3.8 or higher
- pip package manager

## Installation
tarted

The easiest way to start playing is click below to use the Github Codespace.

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/shoutsid/townhall?quickstart=1)

1. Clone the repository.
2. Run the [setup script](https://github.com/shoutsid/townhall/blob/main/setup.sh) to set up the virtual environment and install dependencies.
3. Update the `.env` file with your `OPENAI_API_KEY` using the provided [.env.example](https://github.com/shoutsid/townhall/blob/main/.env.example) as a reference.
4. Execute the [main.py](https://github.com/shoutsid/townhall/blob/main/main.py) script to start a conversation via CLI.
5. (Optional & Under Heavy Development))To start the chat interface, run the command `streamlit run app.py`.
### For Linux/Mac

```bash
git clone https://github.com/shoutsid/townhall.git
cd townhall
pip install -r requirements.txt
```

### For Windows

```bash
git clone https://github.com/shoutsid/townhall.git
cd townhall
pip install -r requirements.txt
```

## Usage

To start the chatbot, run the following command:

```bash
python main.py
```

For more advanced usage, refer to the [documentation (todo)](#).

## Contributing

If you would like to contribute to Townhall, please fork the repository and use a feature branch. Pull requests are warmly welcome.

## Testing

To run the tests:

```bash
pytest
```

## Roadmap

- Implement multi-agent conversations
- Add support for voice commands
- Improve UI/UX

## Dependencies
## Credits

The application has several dependencies which can be found in the [requirements.txt](https://github.com/shoutsid/townhall/blob/main/requirements.txt) file.
Developed by @shoutsid.

## Contribution
## License

Feel free to fork the repository, make changes, and create pull requests. Your contributions are always welcome!
This project is licensed under the GNU GENERAL PUBLIC LICENSE . See the [LICENSE.md](LICENSE.md) file for details.

0 comments on commit 800eda4

Please sign in to comment.