Commit 80ed88c
committed
feat(ag-ui): add multi-step wizard interactions
Add a new 'wizard' interaction type to the AG-UI protocol, enabling
agents to present chained, branching prompts to users during execution.
Backend:
- Add WizardStep, WizardField, WizardCondition, WizardDefinition types
- Add WIZARD_STEP_ADVANCE, WIZARD_COMPLETE, WIZARD_CANCELLED events
- Add requestWizard() helper that loops through steps with conditional
branching and returns aggregated WizardResult
- Update /respond endpoint to accept wizardStepId and wizardCancelled
Frontend:
- Add wizardState to useAgentStream hook with wizard event handling
- Create WizardModal component with stepper progress indicator,
5 step types (approval, confirm_data, choice, text_input, form),
conditional step branching, and back/next/cancel navigation
- Glassmorphism styling matching existing InteractionModal
No database migration required — wizard context stored in existing
interaction_context JSONB column. Fully backward compatible.1 parent 94eb322 commit 80ed88c
8 files changed
Lines changed: 1535 additions & 25 deletions
File tree
- src
- components/agui
- hooks
- task-runner/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments