chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:58:18 +08:00
commit 6d5d58c1a9
18293 changed files with 3502153 additions and 0 deletions
@@ -0,0 +1,24 @@
<Steps>
<Step>
### Install the ADK + AG-UI bridge
```bash
pip install ag-ui-adk
```
</Step>
<Step>
### Add `AGUIToolset()` to your agent
Shared state in ADK lives in `tool_context.state` — your tools write to
it directly and the runtime forwards updates to the UI. Wire your
`LlmAgent` with `AGUIToolset()` and CopilotKit takes care of the rest.
<DemoCode file="src/agents/shared_state_read_write_agent.py" region="shared-state-setup" />
See `src/agents/shared_state_read_write_agent.py` for the bidirectional
pattern: a before-model callback reads UI-authored preferences out of
session state, and a `set_notes` tool writes agent-authored notes back.
</Step>
</Steps>