General Agent: From LLM to Agent
Project description
GeneralAgent: From LLM to Agent
A simple, general, customizable Agent framework
Features
- Simple、Fast、Stable: stable with GPT3.5.
- GeneralAgent support serialization, include python state.
- Build-in interpreters: Python, AppleScript, Shell, File, Plan, Retrieve Embedding etc.
- Dynamic UI: Agent can create dynamic ui to user who can use.
- WebUI with agent builder. You can use natural language to create agent without coding.
Architecture
GeneralAgent
WebUI
Demo
Version 0.03
Version 0.0.2
https://github.com/CosmosShadow/GeneralAgent/assets/13933465/9d9b4d6b-0c9c-404d-87d8-7f8e03f3772b
Installation
docker
# pull docker
docker pull cosmosshadow/general-agent:0.0.5
# make .env
# replace the OPENAI_API_KEY key
# replace the REPLICATE_API_TOKEN key='xx' If you want to use other ai tools like ai draw、tts、...
cp .env.example .env
# run
docker run \
-p 3000:3000 \
-p 7777:7777 \
-v `pwd`/.env:/workspace/.env \
-v `pwd`/data:/workspace/data \
--name=agent \
--privileged=true \
-d cosmosshadow/general-agent:0.0.5
# open: localhost:3000
local install
install from pip:
pip install GeneralAgent
install from source code:
git clone https://github.com/CosmosShadow/GeneralAgent
cd GeneralAgent
python setup.py install
Usage
Web
localhost:3000
Terminal
# Setting enviroment
export OPENAI_API_KEY='xxxx'
# or export all enviroment
export $(grep -v '^#' .env | sed 's/^export //g' | xargs)
# Run
GeneralAgent
Optional parameters:
GeneralAgent --workspace ./test --new --auto_run
# worksapce: Set workspace directory, default ./general_agent
# new: if workspace exists, create a new workspace, like ./general_agent_2023xxx
# auto_run: if auto_run, the agent will run the code automatically, default no
Python
Setting enviroment
export OPENAI_API_KEY='xxxx'
Develop
Join us
discord is comming soon.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for generalagent-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 744d0b6861665e88f804e905ee4b4615a683f298a093dcd79dbf2c705d1f857a |
|
MD5 | 631761ac41e55342c26473208b5ec9e9 |
|
BLAKE2b-256 | cdcea63009ec78643c40606f9eebc488d2940dc431c3b35923d51194532a9dbe |