Skip to main content

General Agent: From LLM to Agent

Project description

GeneralAgent: From LLM to Agent

EN doc License

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

Architecture

WebUI

WebUI

Demo

Version 0.03

webui

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

See docs/develop/docker.md

Join us

wechat

wechat

discord is comming soon.

Project details


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

generalagent-0.0.6-py3-none-any.whl (58.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page