Expand description
Human-facing devtools inspector for the UITree.
Reuses the AI-agent AgentState/ElementSummary snapshot (see
crate::agent) plus a pretty-printed view of the tree itself, so a
developer can inspect the structure, the interactive/data elements an AI
agent would see, and — when signals are named via
crate::signal::Signal::labeled — which signals have been firing.
The output is plain text (ideal for a terminal/console devtools panel) and
also renderable to a self-contained HTML snippet via to_html.
Structs§
- Devtools
Report - A complete devtools report: the tree view, the agent-state view, and the signal-activity view.
Functions§
- inspect_
state - Renders an
AgentStatesnapshot as a readable listing of the interactive and data elements an AI agent would observe. - inspect_
tree - Pretty-prints a
UITreeas an indented tree, annotating each node with itsmeta(class, key, dynamic flag, AI action, on_click presence, assigned id). - render
- Builds a full
DevtoolsReportfrom aUITreeand itsAgentState. - to_html
- Renders a
DevtoolsReportas a self-contained HTML snippet suitable for embedding in a devtools panel (no external CSS/JS).