Build an agent run workspace
Bring run progress, human approvals and source citations together so a person can inspect and direct an agent's work.
Interactive example with illustrative data. Your application supplies the connected services.
Components in this recipe
Build it yourself
- Map your runner's events to stable run and step IDs. Render progress in the agent workspace and preserve completed steps after reconnecting.
- Route consequential tool requests to the approval inbox. Send decisions to your backend and wait for acknowledgement before showing approval as applied.
- Attach the citation panel to each generated artifact. Supply original source URLs and excerpts that the user is permitted to access.
Build with your agent
A ready-to-use task for your connected coding agent.
Connect your application
These components do not run an agent or execute tools. Your backend owns streaming, retries, cancellation, approval enforcement and source access.
Verify the result
Test interrupted streams, rejected approval, retry, empty citations and duplicate events. Cancellation and approval must remain explicit user actions.