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.1

# 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.1

# 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


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 Distribution

GeneralAgent-0.0.5.tar.gz (46.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

GeneralAgent-0.0.5-py3-none-any.whl (56.9 kB view details)

Uploaded Python 3

File details

Details for the file GeneralAgent-0.0.5.tar.gz.

File metadata

  • Download URL: GeneralAgent-0.0.5.tar.gz
  • Upload date:
  • Size: 46.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for GeneralAgent-0.0.5.tar.gz
Algorithm Hash digest
SHA256 9776d9033158b465e2a6c2140c244ba38e01b76eff8e125be1ff44f10b4c03e6
MD5 a19cc6500bc32c30a81512b22993c76f
BLAKE2b-256 5bc86a4399c6554369e82ef56e35adc765ffb559d73d9ef130b62e42ca7282f9

See more details on using hashes here.

File details

Details for the file GeneralAgent-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: GeneralAgent-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 56.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for GeneralAgent-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3acfeb35679b34a9d5da485ae9f10ade834d51a186f20929a7812b8ef0e48a60
MD5 51e8b92695042b746b9d6745ae24901b
BLAKE2b-256 70063fcc4b03718e3c8fbcf40f4e58cd8bf6934cde013ecd142e27c44874dd78

See more details on using hashes here.

Supported by

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