Skip to main content

Module stats

Module stats 

Source
Expand description

The parts of ultron/session-stats.ts the report reads: which REPL APIs a cell names, which steer a message is, and the stored runtime counters (ultron.module/stats).

Structs§

Cells
Guard
Stats
A stored stats document with every field present (SessionStatsDocument).

Constants§

CELL_APIS
REPL APIs a cell’s code can name, in the order the report lists them.
SESSION_STATS_MODULE
The module name: the session value ultron.module/stats.
STATS_VERSION
The stored document’s format version.

Functions§

cell_apis
The REPL APIs a cell’s code names (each at most once): a static read of the source, so a call inside a function the cell only defines counts too, and a call made through an alias does not.
classify_nudge
Which steer a [Ultron] ... message is (skill, wait or toolRounds; see crate::nudge), or None.
parse_session_stats
parseSessionStats: None when saved is not a stats document of version 1. Unknown fields are dropped and malformed counters read as zero. A value that is not an object (null included) reads as an empty part.
stats_lane
Which counter a lane’s cells go to: the root lane, rlm.spawn subagents, or anything else (typed agents, jobs).