feat: AG-UI Decision Logic with Router and Rich UI Components#52
feat: AG-UI Decision Logic with Router and Rich UI Components#52
Conversation
…ents Implement intelligent routing between chat and rich UI components: - Add router.py with heuristic + LLM-based routing decisions - Add DataTableCapture and ProcessMapBuilder frontend components - Add request_data_table and request_process_map tools - Integrate router state tracking in design assistant - Add confidence thresholds for tool vs clarify vs chat decisions - Support structured UI submissions with JSON markers - Add infer_selection_from_assistant_output for numbered lists 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- design-agent-avatars.md: Plan for unique avatars + character names - design-ux-ideas.md: Collection of 15 UX enhancement ideas 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
PR Review: AG-UI Decision Logic with Router and Rich UI ComponentsThis is a substantial PR that introduces intelligent routing and rich UI components to Clara. Overall, the implementation is well-structured and follows good practices, but there are several areas that need attention. 🎯 SummaryAdditions: 6,870 lines This PR adds:
✅ Strengths1. Strong Type Safety & Validation
2. Well-Tested
3. Security-Conscious
4. Clean Architecture
5. Frontend Quality
|
Summary
Key Changes
Backend
router.py: Heuristic + LLM routing with confidence thresholds (0.75 tool, 0.45 clarify)structured_output.py: Pydantic models for structured LLM responsestools.py: request_data_table, request_process_map toolsFrontend
Design Documents
ag-ui-decision-logic-spec.md: Router architecture specdesign-agent-avatars.md: Future avatar feature plandesign-ux-ideas.md: 15 UX enhancement ideasTest plan
🤖 Generated with Claude Code