20 lines
614 B
Plaintext
20 lines
614 B
Plaintext
First, pass `AGUIToolset()` in your `LlmAgent`'s `tools=` list and pair it
|
|
with `stop_on_terminal_text` as the `after_model_callback`. The toolset is
|
|
what makes every CopilotKit feature on the frontend — frontend tools, shared
|
|
state, agent context, and generative UI components — visible to your ADK
|
|
agent on every turn.
|
|
|
|
<DemoCode file="src/agents/hitl_in_chat_agent.py" region="setup" />
|
|
|
|
<Accordions>
|
|
<Accordion title="Install the SDK">
|
|
If `ag-ui-adk` isn't already in your project, add it so the imports
|
|
above resolve:
|
|
|
|
```bash
|
|
pip install ag-ui-adk
|
|
```
|
|
|
|
</Accordion>
|
|
</Accordions>
|