Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

AG2 Studio

PyPI version

AG2 Studio is an AG2-powered AI app (user interface) to help you rapidly prototype AI agents, enhance them with skills, compose them into workflows and interact with them to accomplish tasks. It is built on top of the AG2 framework, which is a toolkit for building AI agents.

Note: AG2 Studio is a sample application to demonstrate an example of end user interfaces built with AG2. It is not meant to be a production-ready app.

Project Structure:

  • ag2studio/ code for the backend classes and web api (FastAPI)
  • frontend/ code for the webui, built with Node.js and TailwindCSS

Installation

The first step is to install Node.js.

Then, there are two ways to install AG2 Studio - from PyPi or from source. We recommend installing from PyPi unless you plan to modify the source code.

  1. Option 1: Install from PyPi (this repository)

    We recommend using a virtual environment (e.g., conda) to avoid conflicts with existing Python packages. With Python 3.12 or newer active in your virtual environment, use pip to install AG2 Studio:

    pip install -U ag2studio
    
  2. Option 2: Install from Source

    Note: This approach requires some familiarity with building interfaces with Next.js and React.

    If you prefer to install from source, ensure you have Python 3.10+ and Node.js (version above 20) installed. Here's how you get started:

    • Clone the AG2 Studio repository and install its Python dependencies:

      pip install -e .
      
    • Navigate to the frontend directory, install dependencies, and build the UI.

      For MacOS/Linux/Windows:

      yarn install
      

      Then, for MacOS/Linux:

      yarn build
      

      Or, for Windows:

      yarn build-windows
      

Running the Application

Once installed, run the web UI by entering the following in your terminal:

ag2studio ui --port 8081

This will start the application on the specified port. Open your web browser and go to http://localhost:8081/ to begin using AG2 Studio.

AG2 Studio also takes several parameters to customize the application:

  • --host <host> argument to specify the host address. By default, it is set to localhost. Y
  • --appdir <appdir> argument to specify the directory where the app files (e.g., database and generated user files) are stored. By default, it is set to the a .ag2studio directory in the user's home directory.
  • --port <port> argument to specify the port number. By default, it is set to 8080.
  • --reload argument to enable auto-reloading of the server when changes are made to the code. By default, it is set to False.
  • --database-uri argument to specify the database URI. Example values include sqlite:///database.sqlite for SQLite and postgresql+psycopg://user:password@localhost/dbname for PostgreSQL. If this is not specified, the database URIL defaults to a database.sqlite file in the --appdir directory.

Now that you have AG2 Studio installed and running, you are ready to explore its capabilities, including defining and modifying agent workflows, interacting with agents and sessions, and expanding agent skills.

Contribution Guide

We welcome contributions to AG2 Studio. We recommend the following general steps to contribute to the project:

  • Review the overall AG2 project contribution guide
  • Please initiate a discussion on the roadmap issue or a new issue to discuss your proposed contribution.
  • Submit a pull request with your contribution!
  • If you are modifying AG2 Studio, it has its own devcontainer. See instructions in .devcontainer/README.md to use it
  • Please use the tag studio for any issues, questions, and PRs related to Studio

FAQ

Please refer to the AG2 Studio FAQs page for more information.

Acknowledgements

AG2 Studio is Based on the AG2 (Formerly AutoGen) project. It was adapted from a research prototype built in October 2023 (original credits: Gagan Bansal, Adam Fourney, Victor Dibia, Piali Choudhury, Saleema Amershi, Ahmed Awadallah, Chi Wang).

Metadata

Release files for ag2studio 0.0.1rc5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ag2studio 0.0.1rc5
File Size Uploaded
ag2studio-0.0.1rc5.tar.gz 887.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ag2studio 0.0.1rc5
File Interpreter ABI Platform
ag2studio-0.0.1rc5-py3-none-any.whl Python 3 none any Details

Total release size: 1.8 MB

Release files / ag2studio-0.0.1rc5.tar.gz

Download URL ag2studio-0.0.1rc5.tar.gz
Size 887.6 kB
Tags Source
SHA-256 checksum
How to use checksums
aa67d9dcc621e1162581ff484c0fdc9026deeffed87ce97babee4486ff872f21
BLAKE2b-256 checksum
How to use checksums
4d555d3227b6d074dc9083bd4ffc0776d41f4f37ffd6033f7257e588a4071100
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1

Release files / ag2studio-0.0.1rc5-py3-none-any.whl

Download URL ag2studio-0.0.1rc5-py3-none-any.whl
Size 911.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac22e5c9815a8e895a8aab442169b648dc926677c147176be46f45d9dddc9f1d
BLAKE2b-256 checksum
How to use checksums
804239c5bc8adea9565cf6a382d46a1639a20996a54aa73523386ef88c2ce820
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page