Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/icgy96/autoagents
https://github.com/icgy96/autoagents
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/icgy96/autoagents
- Owner: iCGY96
- License: mit
- Created: 2023-09-28T09:23:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-28T09:30:38.000Z (about 1 year ago)
- Last Synced: 2023-09-28T11:10:20.209Z (about 1 year ago)
- Language: Python
- Size: 18.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AutoAgents: A Framework for Automatic Agent Generation
Generate different roles for GPTs to form a collaborative entity for complex tasks.AutoAgents is an experimental open-source application for An Automatic Agents Generation Experiment based on LLM. This program, driven by LLM, autonomously generates multi-agents to achieve whatever goal you set.
## Installation and Usage
### Installation
```bash
git clone [Link]
cd AutoAgents
python setup.py install
```### Configuration
- Configure your `OPENAI_API_KEY` in any of `config/key.yaml / config/config.yaml / env`
- Priority order: `config/key.yaml > config/config.yaml > env````bash
# Copy the configuration file and make the necessary modifications.
cp config/config.yaml config/key.yaml
```| Variable Name | config/key.yaml | env |
| ------------------------------------------ | ----------------------------------------- | ----------------------------------------------- |
| OPENAI_API_KEY # Replace with your own key | OPENAI_API_KEY: "sk-..." | export OPENAI_API_KEY="sk-..." |
| OPENAI_API_BASE # Optional | OPENAI_API_BASE: "https:///v1" | export OPENAI_API_BASE="https:///v1" |### Usage
- Commandline mode:
```python
python main.py --mode commandline --llm_api_key YOUR_OPENAI_API_KEY --serapi_key YOUR_SERPAPI_KEY --idea "Is LK-99 really a room temperature superconducting material?"
```
- Websocket service mode:
```python
python main.py --mode service --host "127.0.0.1" --port 9000
```### Docker
- Build docker image:
```bash
IMAGE="docker/autoagents"
VERSION=1.0docker build -f docker/Dockerfile -t "${IMAGE}:${VERSION}" .
```
- Start docker container:
```bash
docker run -it --rm -p 7860:7860 "${IMAGE}:${VERSION}"
```
- Open http://127.0.0.1:7860 in the browser.