AgUiSharedStateExample
Agent Runtimes / examples / AgUiSharedStateExample
Variable: AgUiSharedStateExample
constAgUiSharedStateExample:React.FC
Defined in: examples/AgUiSharedStateExample.tsx:318
AgUiSharedStateExample Component
Demonstrates bidirectional shared state with AG-UI. Both the frontend and the AI agent can modify the recipe state, with changes synchronized via STATE_SNAPSHOT events.
Features demonstrated:
- Bidirectional state synchronization
- StateDeps for passing state to agent
- STATE_SNAPSHOT for receiving state from agent
- Editable UI that updates shared state