Skip to main content

Module calls

Module calls 

Source
Expand description

One line per tool call: the sentence a reader needs, not the JSON the model wrote.

The dashboard shows a tool call as a single row and keeps its arguments behind a toggle. What that row says is a rule, and it lives here rather than in the page because a rule in JavaScript is a rule no test in this repository can check. The message itself is untouched: GET /api/sessions/:id returns the stored messages exactly as the provider would see them and adds the statements beside them, so nothing here can reach a request.

The shape is “name, then what it acted on”: write_file src/x.rs · 44 KB, shell cargo test. A path or a URL is the statement for the tools that take one — the braces and the key names are noise at a glance — and anything this does not know is the arguments themselves, cut.

Enums§

Outcome
How a call ended, which is what the row’s glyph says — the same four marks the full-screen interface uses (⏺, ✓, ⊘, ✗).

Constants§

WIDTH
Where a statement is cut. Wide enough for a path and a command, narrow enough that one call cannot wrap into a paragraph of its own in a half-width window.

Functions§

outcome
The verdict on one result. live is the tool’s own is_error when the caller has it; a stored result has none, and the verdict is read off the text.
statement
One line describing a call: the tool’s name and the part of its arguments worth reading.