### Install the ADK + AG-UI bridge
```bash
pip install ag-ui-adk
```
### Declare the predicted state mapping
ADK state streaming uses `PredictStateMapping` to map the streaming
`write_document` tool argument into `state["document"]`. Add
`AGUIToolset()` to the agent so CopilotKit can forward the state deltas to
the UI.