Download demo.html from Pleuron/ToolTree: direct link, hf CLI and curl.
- Browser
- Download file 19.4 kB
-
https://huggingface.co/spaces/Pleuron/ToolTree/resolve/main/demo.html
- Command line
-
hf download hf://spaces/Pleuron/ToolTree/demo.html
-
curl -L -o demo.html https://huggingface.co/spaces/Pleuron/ToolTree/resolve/main/demo.html
19.4 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>ToolTree — Interactive Case Walkthrough</title> | |
| <meta name="description" content="Step through real ToolTree search traces on three GTA tasks: candidate drafts, pre/post evaluation, bidirectional pruning, real tool outputs, and Q/N backpropagation."> | |
| <link rel="icon" href="data:,"> | |
| <style> | |
| :root { | |
| --ink: #1c2430; | |
| --muted: #5b6a7c; | |
| --line: #dde4ec; | |
| --bg: #f6f8fa; | |
| --card: #ffffff; | |
| --accent: #1f5fbf; | |
| --ok: #1e8a4c; | |
| --bad: #b3402f; | |
| --warn: #8a6d1e; | |
| } | |
| * { box-sizing: border-box; } | |
| body { | |
| margin: 0; | |
| background: var(--bg); | |
| color: var(--ink); | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; | |
| font-size: 15px; | |
| line-height: 1.5; | |
| } | |
| a { color: var(--accent); text-decoration: none; } | |
| a:hover { text-decoration: underline; } | |
| code { background: #eef2f7; border-radius: 4px; padding: 0 4px; font-size: .86em; } | |
| .wrap { max-width: 980px; margin: 0 auto; padding: 20px 18px 60px; } | |
| header h1 { font-size: 1.45rem; margin: 8px 0 4px; } | |
| header .sub { color: var(--muted); font-size: .92rem; } | |
| .navlinks { font-size: .9rem; margin-top: 6px; } | |
| .navlinks a + a { margin-left: 14px; } | |
| .banner { | |
| margin: 14px 0 18px; | |
| padding: 10px 14px; | |
| background: #fff7e8; | |
| border: 1px solid #ecd9ac; | |
| border-radius: 8px; | |
| font-size: .88rem; | |
| color: #6a5320; | |
| } | |
| .card { | |
| background: var(--card); | |
| border: 1px solid var(--line); | |
| border-radius: 10px; | |
| padding: 16px 18px; | |
| margin-bottom: 16px; | |
| } | |
| /* case tabs */ | |
| .tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; } | |
| .tabs button { | |
| font: inherit; | |
| padding: 8px 14px; | |
| border: 1px solid var(--line); | |
| border-radius: 8px; | |
| background: #fff; | |
| color: var(--ink); | |
| cursor: pointer; | |
| text-align: left; | |
| } | |
| .tabs button:hover { border-color: var(--accent); color: var(--accent); } | |
| .tabs button.active { border-color: var(--accent); background: #eaf1fb; font-weight: 600; } | |
| .query { | |
| border-left: 3px solid var(--accent); | |
| background: #f2f6fc; | |
| padding: 8px 12px; | |
| margin: 0 0 4px; | |
| font-size: .92rem; | |
| border-radius: 0 6px 6px 0; | |
| } | |
| .query .who { font-weight: 700; font-size: .78rem; color: var(--accent); display: block; } | |
| /* controls */ | |
| .controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } | |
| .controls button { | |
| font: inherit; | |
| padding: 5px 14px; | |
| border: 1px solid var(--line); | |
| border-radius: 7px; | |
| background: #fff; | |
| color: var(--ink); | |
| cursor: pointer; | |
| } | |
| .controls button:hover { border-color: var(--accent); color: var(--accent); } | |
| .controls input[type=range] { flex: 1; min-width: 180px; accent-color: var(--accent); } | |
| .controls .steplabel { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 96px; } | |
| .hint { color: var(--muted); font-size: .8rem; margin-top: 6px; } | |
| /* step panel */ | |
| .stephead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } | |
| .stephead .sid { font-weight: 700; font-size: 1.05rem; } | |
| .badge { | |
| display: inline-block; | |
| padding: 1px 10px; | |
| border-radius: 6px; | |
| font-size: .76rem; | |
| font-weight: 700; | |
| letter-spacing: .03em; | |
| white-space: nowrap; | |
| } | |
| .badge.ok { background: #e2f3e8; color: var(--ok); border: 1px solid #bcdfc9; } | |
| .badge.bad { background: #f7e8e5; color: var(--bad); border: 1px solid #e6c5be; } | |
| .badge.gray { background: #eef1f5; color: var(--muted); border: 1px solid #d8dfe7; } | |
| .secline { margin: 8px 0; font-size: .92rem; } | |
| .seclabel { font-weight: 700; font-size: .78rem; color: var(--accent); letter-spacing: .04em; display: block; margin: 12px 0 4px; } | |
| table.cands { width: 100%; border-collapse: collapse; font-size: .88rem; } | |
| table.cands th, table.cands td { | |
| text-align: left; | |
| padding: 5px 8px; | |
| border-bottom: 1px solid var(--line); | |
| vertical-align: top; | |
| } | |
| table.cands th { color: var(--muted); font-weight: 600; font-size: .8rem; } | |
| table.cands td.num { font-variant-numeric: tabular-nums; white-space: nowrap; } | |
| pre.out { | |
| background: #0f1720; | |
| color: #cfd8e3; | |
| border-radius: 8px; | |
| padding: 12px 14px; | |
| overflow-x: auto; | |
| font-size: .8rem; | |
| line-height: 1.45; | |
| white-space: pre-wrap; | |
| word-break: break-word; | |
| margin: 6px 0; | |
| } | |
| pre.out.err { color: #f0a89c; } | |
| .trunc { color: var(--warn); font-size: .78rem; } | |
| ul.plain { margin: 4px 0; padding-left: 20px; font-size: .9rem; } | |
| .answerbox { | |
| border-left: 3px solid var(--ok); | |
| background: #f0f9f3; | |
| padding: 10px 14px; | |
| border-radius: 0 6px 6px 0; | |
| margin: 8px 0; | |
| font-size: .95rem; | |
| } | |
| .stats { display: flex; gap: 22px; flex-wrap: wrap; font-size: .9rem; margin: 6px 0 2px; } | |
| .stats .k { color: var(--muted); } | |
| .stats .v { font-weight: 600; font-variant-numeric: tabular-nums; } | |
| figure.treefig { | |
| margin: 0 0 16px; | |
| background: var(--card); | |
| border: 1px solid var(--line); | |
| border-radius: 10px; | |
| padding: 14px 14px 10px; | |
| } | |
| figure.treefig img { display: block; width: 100%; height: auto; } | |
| figure.treefig figcaption { color: var(--muted); font-size: .8rem; margin-top: 8px; } | |
| #error { | |
| display: none; | |
| background: #f7e8e5; | |
| border: 1px solid #e6c5be; | |
| color: var(--bad); | |
| padding: 14px 16px; | |
| border-radius: 8px; | |
| margin-top: 14px; | |
| } | |
| footer { color: var(--muted); font-size: .8rem; margin-top: 26px; } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="wrap"> | |
| <header> | |
| <h1>ToolTree — Interactive Case Walkthrough</h1> | |
| <div class="sub">Real execution traces from this repository (real tool-execution mode) on three GTA tasks: | |
| step through each rollout — candidate drafts, pre-evaluation, execution with real tool outputs, | |
| post-evaluation, pruning, and Q/N backpropagation.</div> | |
| <div class="navlinks"> | |
| <a href="index.html">← Project page</a> | |
| <a href="https://github.com/SYang2000/ICLR_2026_ToolTree" target="_blank" rel="noopener">GitHub repo</a> | |
| <a href="https://openreview.net/forum?id=Ef5O9gNNLE" target="_blank" rel="noopener">Paper (ICLR 2026)</a> | |
| </div> | |
| <div class="banner"> | |
| <b>Provenance:</b> every candidate draft, score (r_pre / r_post), Q/N value, tool output, and final | |
| answer below is taken verbatim from two logged runs of this repository — 5 GTA tasks (Cases 1–2) | |
| and 4 GTA tasks with 3–4-step reference plans (Case 3) — both with | |
| <code>tool_execution: real</code> (seed 42, τ<sub>pre</sub> 0.3, τ<sub>post</sub> 0.4, | |
| c 1.4, max 40 rollouts). Long tool outputs are truncated to 300 characters and flagged. Failed tool | |
| calls (e.g. a tool without a real backend, or a malformed argument draft) are shown verbatim — | |
| post-evaluation prunes those branches; one error message that echoed a local filesystem path has | |
| that path masked and is flagged. Task images are referenced by their dataset-relative paths and are | |
| not embedded here. | |
| </div> | |
| </header> | |
| <div id="error"> | |
| Walkthrough data failed to load. This page needs <code>static/demo_data.js</code> next to it | |
| (shipped in the repo under <code>docs/static/</code>). If you are viewing a copy of this file alone, | |
| grab the full <code>docs/</code> directory from the | |
| <a href="https://github.com/SYang2000/ICLR_2026_ToolTree" target="_blank" rel="noopener">GitHub repo</a>. | |
| </div> | |
| <noscript><p style="max-width:720px;margin:24px auto;padding:12px 16px;background:#fef3c7;border:1px solid #d97706;border-radius:8px;font-size:14px">This interactive walkthrough requires JavaScript. The search mechanism it illustrates is documented on the <a href="index.html">project page</a> and in the <a href="https://github.com/SYang2000/ICLR_2026_ToolTree">repository README</a>.</p></noscript> | |
| <figure class="treefig" id="case3-tree"> | |
| <a href="static/paper/case3_tree.svg" target="_blank" rel="noopener"> | |
| <img src="static/paper/case3_tree.svg" alt="Full search tree of Case 3: from the user query, ImageDescription, GoogleSearch, and Calculator branches carry pre- and post-evaluation scores; dashed boxes mark pruned and duplicate (skipped) candidate drafts, and a bold green path through ImageDescription, GoogleSearch, and Calculator leads to the final answer of 112.5 miles." width="1680" height="1500"> | |
| </a> | |
| <figcaption>Search tree of this case (reconstructed from the logged run): solid boxes are executed tool | |
| calls with their pre-/post-evaluation scores, dashed boxes are pruned or duplicate (skipped) | |
| candidate drafts, and the bold green path is the final highest-reward plan.</figcaption> | |
| </figure> | |
| <div id="app" style="display:none"> | |
| <div class="tabs" id="tabs"></div> | |
| <div class="card"> | |
| <div class="query"><span class="who">USER QUERY</span><span id="query"></span></div> | |
| </div> | |
| <div class="card"> | |
| <div class="controls"> | |
| <button id="btnPrev" title="previous step (←)">◀ Prev</button> | |
| <button id="btnNext" title="next step (→)">Next ▶</button> | |
| <input type="range" id="slider" min="0" max="1" value="0" step="1"> | |
| <span class="steplabel" id="stepLabel"></span> | |
| </div> | |
| <div class="hint">Keyboard: ← / → step through the search.</div> | |
| </div> | |
| <div class="card" id="stepPanel"></div> | |
| <footer> | |
| Data source: <code>static/demo_data.js</code>, generated from the audit logs of two real-execution | |
| validation runs of this codebase (per-rollout AUDIT events, LLM traffic, and final results). | |
| · <a href="index.html">Project page</a> | |
| · <a href="https://github.com/SYang2000/ICLR_2026_ToolTree" target="_blank" rel="noopener">GitHub repo</a> | |
| </footer> | |
| </div> | |
| </div> | |
| <script src="static/demo_data.js"></script> | |
| <script> | |
| </script> | |
| </body> | |
| </html> | |