Raxol. Playground. Demos. HarnessToolBlocksDemo
(Raxol v2.9.2)
View Source
Playground demo: agent-harness tool-call/tool-result blocks + taint badge.
Exercises the three Raxol.UI.Components.Harness modules directly (real
init/1 + render/2, and handle_event/3 for the collapsible result):
- A
ToolCallBlockthat transitions:running->:doneon a tick subscription (spinner glyph while running, green check on completion;[r]replays it). - A trusted
ToolResultBlockwith short output (not collapsible). - A tainted
ToolResultBlock-- content fetched from an untrusted source (simulated: a fetched web page carrying a prompt-injection attempt) -- showing theTaintBadgeand a collapsed long body.[space]toggles collapse, forwarded straight to the component's ownhandle_event/3.
These blocks are the render-dual of the item_started/item_completed
event shapes.