[Proposal]: Merge `hitl-chat` and `agui` examples into a unified AG-UI HITL example
Problem Description
The two example projects, agentscope-examples/hitl-chat and agentscope-examples/agui, currently have significant functional overlap. Both provide a Spring Boot-based chat UI, and both support SSE streaming output as well as "stop/interrupt" control mechanisms. This duplication results in unnecessary redundancy.
Solution
Merge into a single example: AG-UI with HITL Demo
The new unified example should include:
- HITL (Human-In-The-Loop) Feature Showcase
- Tool Execution Confirmation
- Human Approval Workflow
- MCP Server Integration Management
- Real-time Interrupt Control
- GUI Automation Capabilities
- Automated GUI Task Execution
- Screen Interaction Feedback
- Operation Verification and Confirmation
- Modernized UI
- Unified Web Interface
- Real-time SSE Streaming Display
- Interactive Interrupt Button
- Operation History Log
Benefits
✅ Simplify Project Structure: Consolidates 2 overlapping examples into 1 complete, comprehensive example.
✅ Reduce Maintenance Costs: A single codebase is easier to maintain and test.
✅ Improve User Experience: Helps beginners clearly understand the full workflow of both HITL and GUI automation.
✅ Facilitate Extensibility: Future features will only need to be implemented in one place.
✅ Best Practices: Demonstrates real-world application scenarios combining HITL and GUI automation.
- Long-term Goal: To serve as the official recommended comprehensive example.
Related Files
- Current
hitl-chat:agentscope-examples/hitl-chat/ - Current
agui:agentscope-examples/agui/ - Note: Dependencies and configurations will need to be unified.
Additional Notes
This merger not only resolves code duplication issues but also provides users with a complete, production-grade example. It effectively demonstrates how to combine HITL and GUI automation capabilities in practical applications.
问题描述
agentscope-examples/hitl-chat 和 agentscope-examples/agui 两个示例项目存在大量功能重叠:它们都提供了基于 Spring Boot 的聊天 UI,支持 SSE 流式输出以及“停止 / 中断”式的控制,这种重复造成了功能冗余。
解决方案
合并为单一示例:AG-UI with HITL Demo
新示例应包含:
-
HITL 特性展示
- Tool Confirmation(工具执行前确认)
- Human Approval Flow(人类审批流程)
- MCP Server 集成管理
- 实时中断控制
-
GUI 自动化能力
- GUI 任务自动执行
- 屏幕交互反馈
- 操作验证和确认
-
现代化 UI
- 统一的 Web 界面
- SSE 实时流式显示
- 交互式中断按钮
- 操作历史记录
优势
✅ 简化项目结构:从 2 个重复示例 → 1 个完整综合示例
✅ 降低维护成本:单一代码库更易维护和测试
✅ 提升用户体验:新手清楚地了解 HITL 和 GUI 自动化的完整工作流
✅ 便于扩展:未来添加新特性只需在一处修改
✅ 最佳实践:展示 HITL + GUI 自动化的现实应用场景
- 长期:作为官方推荐的综合示例
相关文件
- 当前 hitl-chat:
agentscope-examples/hitl-chat/ - 当前 agui:
agentscope-examples/agui/ - 相关依赖和配置需要统一整理
补充说明
这个合并不仅能解决代码重复问题,还能为用户提供一个完整的、生产级的示例,展示如何在实际应用中结合 HITL 和 GUI 自动化能力。
感谢考虑!期待您的反馈。
Given that we want our examples to be independent and specific, we will not be merging multiple features together at this time.
Given that we want our examples to be independent and specific, we will not be merging multiple features together at this time.
I really hope a demo of AUGI + HITL can be released. With the current AGUI extension, implementing HITL is truly troublesome.