AG2 Studio
Project description
AG2 Studio
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.
Project Structure:
- ag2studio/ code for the backend classes and web api (FastAPI)
- frontend/ code for the webui, built with Node.js 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.
-
Install from PyPi
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 ag2studio
-
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 20) installed. Here's how you get started:
-
Clone the AG2 Studio repository and install its Python dependencies:
pip install -e .
-
Navigate to the
frontenddirectory, install dependencies, and build the UI.For MacOS/Linux/Windows:
yarn installThen, for MacOS/Linux:
yarn buildOr, 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 tolocalhost. 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.ag2studiodirectory in the user's home directory.--port <port>argument to specify the port number. By default, it is set to8080.--reloadargument to enable auto-reloading of the server when changes are made to the code. By default, it is set toFalse.--database-uriargument to specify the database URI. Example values includesqlite:///database.sqlitefor SQLite andpostgresql+psycopg://user:password@localhost/dbnamefor PostgreSQL. If this is not specified, the database URIL defaults to adatabase.sqlitefile in the--appdirdirectory.
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.mdto use it - Please use the tag
studiofor 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ag2studio-0.0.1rc4.tar.gz.
File metadata
- Download URL: ag2studio-0.0.1rc4.tar.gz
- Upload date:
- Size: 879.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4841d5c868e62ae35545a7c7b3ba984605655e563c6b82e787d99ae1cbda4baf
|
|
| MD5 |
878a363e40ed87eab845fff777174707
|
|
| BLAKE2b-256 |
5028f023aba7a5c461db2ddb9645cd18aed040c707d33093234c14cfdde124d3
|
File details
Details for the file ag2studio-0.0.1rc4-py3-none-any.whl.
File metadata
- Download URL: ag2studio-0.0.1rc4-py3-none-any.whl
- Upload date:
- Size: 904.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3724b0b48782bc2fe30c1ac3c095225edfb936d7df6b38bcf5b9d721bf414aaa
|
|
| MD5 |
b3d92fb5f1f323677691f8404729d576
|
|
| BLAKE2b-256 |
bcc8ca6565f1768b5ed48462ba10ff4f14cb355d2bbd38f3db3249a9c7f67a28
|