Skip to main content

AG2 Studio

Project description

AG2 Studio

PyPI version Downloads

AG2 Studio is an AG2-powered (formerly AutoGen) 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 meant to help you rapidly prototype multi-agent workflows and demonstrate an example of end user interfaces built with AG2. It is not meant to be a production-ready app.

[!WARNING] AG2 Studio is currently under active development and we are iterating quickly. Kindly consider that we may introduce breaking changes in the releases during the upcoming weeks, and also the README might be outdated. Please see the AG2 Studio docs page for the most up-to-date information.

Project Structure:

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

Installation

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. Install from PyPi

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

    pip install ag2studio
    
  2. Install from Source

    Note: This approach requires some familiarity with building interfaces in React.

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

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

      pip install -e .
      
    • Navigate to the samples/apps/ag2-studio/frontend directory, install dependencies, and build the UI:

      npm install -g gatsby-cli
      npm install --global yarn
      cd frontend
      yarn install
      yarn build
      

For Windows users, to build the frontend, you may need alternative commands to build the frontend.

  gatsby clean && rmdir /s /q ..\\ag2studio\\web\\ui 2>nul & (set \"PREFIX_PATH_VALUE=\" || ver>nul) && gatsby build --prefix-paths && xcopy /E /I /Y public ..\\ag2studio\\web\\ui

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ag2studio-0.0.1rc3.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

ag2studio-0.0.1rc3-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file ag2studio-0.0.1rc3.tar.gz.

File metadata

  • Download URL: ag2studio-0.0.1rc3.tar.gz
  • Upload date:
  • Size: 36.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for ag2studio-0.0.1rc3.tar.gz
Algorithm Hash digest
SHA256 52a2facfe55a39f5820eefa577e85e80dc79d2382d8aa62bfe9fcd34066910d3
MD5 90ecb3a8ba371b9e9ef4b6618f4e8c22
BLAKE2b-256 5e76305cff7874a0e3fcad04c84efa30bbbdc3ef375ce3e98aaabe13985b6d7d

See more details on using hashes here.

File details

Details for the file ag2studio-0.0.1rc3-py3-none-any.whl.

File metadata

  • Download URL: ag2studio-0.0.1rc3-py3-none-any.whl
  • Upload date:
  • Size: 39.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for ag2studio-0.0.1rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 78434567137d7053a2cc81969fc7ce6e9cfb7bd9b7aada7f699a79214d0a2d59
MD5 f57245f71c4530f385ab29185bf5d77e
BLAKE2b-256 17e463cec35e95a222685ac82772d05d4d53b4c129b8644e4c908dacfc4addc7

See more details on using hashes here.

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