[PR #549] [MERGED] add GenUIWorkflow for generating UI components from workflow events #582

Closed
opened 2026-02-15 20:15:25 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/create-llama/pull/549
Author: @leehuwuj
Created: 4/9/2025
Status: Merged
Merged: 4/15/2025
Merged by: @leehuwuj

Base: mainHead: lee/gen-ui


📝 Commits (10+)

  • 42d3fd3 feat: add GenUIWorkflow for generating UI components from workflow events
  • 0f8dd5e feat: enhance GenUIWorkflow to support event handling and UI generation
  • c5dbcd4 add cache, split code
  • 910e6e5 use gemini model
  • d9e2752 refactor: update GenUIWorkflow to use Anthropic model and add pre-run checks for API key and package installation
  • cd36b40 feat: introduce PlanningEvent and enhance GenUIWorkflow for improved UI planning and aggregation function generation
  • fa406b1 Merge remote-tracking branch 'origin/main' into lee/gen-ui
  • 37f383f feat: add gen ui to llamaindexserver
  • ab40edd refactor: remove unused gen_ui.py file
  • de80741 simplify

📊 Changes

10 files changed (+837 additions, -259 deletions)

View changed files

📝 .github/workflows/e2e.yml (+4 -0)
📝 llama-index-server/docs/custom_ui_component.md (+51 -17)
📝 llama-index-server/llama_index/server/__init__.py (+2 -1)
📝 llama-index-server/llama_index/server/api/models.py (+11 -0)
📝 llama-index-server/llama_index/server/chat_ui.py (+1 -1)
llama-index-server/llama_index/server/gen_ui/__init__.py (+0 -0)
llama-index-server/llama_index/server/gen_ui/main.py (+423 -0)
llama-index-server/llama_index/server/gen_ui/parse_workflow_code.py (+93 -0)
📝 llama-index-server/poetry.lock (+251 -240)
📝 llama-index-server/pyproject.toml (+1 -0)

📄 Description

Summary by CodeRabbit

  • New Features
    • Introduced a new UI event type and data model for custom UI components.
    • Added an advanced workflow to generate React UI components automatically from backend event schemas.
    • Enabled dynamic aggregation and refinement of generated UI code using language models.
  • Documentation
    • Enhanced documentation with examples and guidelines for emitting UI events and generating UI components.
  • Chores
    • Updated GitHub Actions to exclude llama-index-server changes from triggering E2E tests.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/create-llama/pull/549 **Author:** [@leehuwuj](https://github.com/leehuwuj) **Created:** 4/9/2025 **Status:** ✅ Merged **Merged:** 4/15/2025 **Merged by:** [@leehuwuj](https://github.com/leehuwuj) **Base:** `main` ← **Head:** `lee/gen-ui` --- ### 📝 Commits (10+) - [`42d3fd3`](https://github.com/run-llama/create-llama/commit/42d3fd317c78783929d32cf4bcbfcebdc0ffdce9) feat: add GenUIWorkflow for generating UI components from workflow events - [`0f8dd5e`](https://github.com/run-llama/create-llama/commit/0f8dd5e3b14abbb1133d08baaaf45fb4171a64e3) feat: enhance GenUIWorkflow to support event handling and UI generation - [`c5dbcd4`](https://github.com/run-llama/create-llama/commit/c5dbcd48da2b0bd6f611dd894f9e2986ee203570) add cache, split code - [`910e6e5`](https://github.com/run-llama/create-llama/commit/910e6e5782bb95159c626157e45cc54e8909ceb6) use gemini model - [`d9e2752`](https://github.com/run-llama/create-llama/commit/d9e2752f41261e41425901b2b092b598024697d2) refactor: update GenUIWorkflow to use Anthropic model and add pre-run checks for API key and package installation - [`cd36b40`](https://github.com/run-llama/create-llama/commit/cd36b40db1891dc148fb2be6aa592026f676f367) feat: introduce PlanningEvent and enhance GenUIWorkflow for improved UI planning and aggregation function generation - [`fa406b1`](https://github.com/run-llama/create-llama/commit/fa406b1c60e63ba24384b4d2dd058d6b4f83fe39) Merge remote-tracking branch 'origin/main' into lee/gen-ui - [`37f383f`](https://github.com/run-llama/create-llama/commit/37f383faf815534c12d4790e58414da9150def33) feat: add gen ui to llamaindexserver - [`ab40edd`](https://github.com/run-llama/create-llama/commit/ab40edd16344b628ad594f2e2730e2ddcf9dbe90) refactor: remove unused gen_ui.py file - [`de80741`](https://github.com/run-llama/create-llama/commit/de807412352de99d094ea705f13f8dfc4392bb18) simplify ### 📊 Changes **10 files changed** (+837 additions, -259 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/e2e.yml` (+4 -0) 📝 `llama-index-server/docs/custom_ui_component.md` (+51 -17) 📝 `llama-index-server/llama_index/server/__init__.py` (+2 -1) 📝 `llama-index-server/llama_index/server/api/models.py` (+11 -0) 📝 `llama-index-server/llama_index/server/chat_ui.py` (+1 -1) ➕ `llama-index-server/llama_index/server/gen_ui/__init__.py` (+0 -0) ➕ `llama-index-server/llama_index/server/gen_ui/main.py` (+423 -0) ➕ `llama-index-server/llama_index/server/gen_ui/parse_workflow_code.py` (+93 -0) 📝 `llama-index-server/poetry.lock` (+251 -240) 📝 `llama-index-server/pyproject.toml` (+1 -0) </details> ### 📄 Description <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new UI event type and data model for custom UI components. - Added an advanced workflow to generate React UI components automatically from backend event schemas. - Enabled dynamic aggregation and refinement of generated UI code using language models. - **Documentation** - Enhanced documentation with examples and guidelines for emitting UI events and generating UI components. - **Chores** - Updated GitHub Actions to exclude `llama-index-server` changes from triggering E2E tests. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:15:25 -05:00
yindo closed this issue 2026-02-15 20:15:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/create-llama#582