autogen/python/packages/autogen-studio/frontend
Victor Dibia 9494ac97a0
AGS Improvements (Add Test Button in Team Builder View + Others) (#5416)
<!-- Thank you for your contribution! Please review
https://microsoft.github.io/autogen/docs/Contribute before opening a
pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

- Add ability to test teams in Team Builder view 
- Update Gallery (add deep research default team, fix bug with gallery
serialization)
- UI fixes 
   -  improve drag drop component experience 
- improve new session experience (single click rather than 3 clicks to
create a session)
   - fix bug with stop reason not being shown in some cases

<img width="1738" alt="Image"
src="https://github.com/user-attachments/assets/4b895df2-3bad-474e-bec6-4fbcbf1c4346"
/>

<img width="1761" alt="Image"
src="https://github.com/user-attachments/assets/65f52eb9-e926-4168-88fb-d2496c159474"
/>

<!-- Please give a short summary of the change and the problem this
solves. -->

## Related issue number

Closes #5392

<!-- For example: "Closes #1234" -->

## Checks

- [ ] I've included any doc changes needed for
https://microsoft.github.io/autogen/. See
https://microsoft.github.io/autogen/docs/Contribute#documentation to
build and test documentation locally.
- [ ] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [ ] I've made sure all auto checks have passed.
2025-02-07 23:37:44 +00:00
..
src AGS Improvements (Add Test Button in Team Builder View + Others) (#5416) 2025-02-07 23:37:44 +00:00
static/images/bg Add Component Gallery to AGS (#4693) 2024-12-14 15:33:14 -08:00
.env.default v1 of AutoGen Studio on AgentChat (#4097) 2024-11-09 14:32:24 -08:00
.gitignore v1 of AutoGen Studio on AgentChat (#4097) 2024-11-09 14:32:24 -08:00
README.md PoC AGS dev container (#5026) 2025-01-14 21:19:47 -08:00
gatsby-browser.js move studio to a package 2024-09-30 10:20:38 -04:00
gatsby-config.ts v1 of AutoGen Studio on AgentChat (#4097) 2024-11-09 14:32:24 -08:00
gatsby-ssr.tsx move studio to a package 2024-09-30 10:20:38 -04:00
package.json Improve AGS Documentation (#5065) 2025-01-15 14:00:47 -08:00
postcss.config.js v1 of AutoGen Studio on AgentChat (#4097) 2024-11-09 14:32:24 -08:00
tailwind.config.js Add v1 Drag and Drop Team Composition to AGS (#4609) 2024-12-11 14:31:25 -08:00
tsconfig.json v1 of AutoGen Studio on AgentChat (#4097) 2024-11-09 14:32:24 -08:00
yarn.lock Improve AGS Documentation (#5065) 2025-01-15 14:00:47 -08:00

README.md

AutoGen Studio frontend

🚀 Running UI in Dev Mode

Run the UI in dev mode (make changes and see them reflected in the browser with hot reloading):

yarn install
yarn start               # local development
yarn start --host 0.0.0.0  # in container (enables external access)

This should start the server on port 8000.

Design Elements

Modifying the UI, Adding Pages

The core of the app can be found in the src folder. To add pages, add a new folder in src/pages and add a index.js file. This will be the entry point for the page. For example to add a route in the app like /about, add a folder about in src/pages and add a index.tsx file. You can follow the content style in src/pages/index.tsx to add content to the page.

Core logic for each component should be written in the src/components folder and then imported in pages as needed.

Connecting to backend

The frontend makes requests to the backend api and expects it at /api on localhost port 8081.

setting env variables for the UI

  • please look at .env.default
  • make a copy of this file and name it .env.development
  • set the values for the variables in this file
    • The main variable here is GATSBY_API_URL which should be set to http://localhost:8081/api for local development. This tells the UI where to make requests to the backend.