Expand description
The parameters of Agents list and Agents status (spec ยง5): which groups, which agents, which page; and
the two answers built from them. Filters run on the cheap facts (state, model, provider, runtime, account)
for every agent; the groups asked for are read only for the agents of the page.
Structsยง
- Cheap
- What a filter reads of one agent.
- Filter
- The agents a caller wants.
- Kept ๐
- One kept agent: its row, and what was read to keep it.
- Params
Constantsยง
- DEFAULT_
MAX_ ๐BYTES - A list that asks for groups or a page stops at this many bytes (a default call keeps every agent, as
it always has);
Agents statusis the compact way to see them all.
Functionsยง
- agent_
of ๐ - The agent a discovery row describes, when it has a runtime row to say its state.
- apply
- The rows of
Agents list: filtered, paged, each with its short model and the groups asked for; and the pageโs note. - contains_
ci ๐ - decorate_
page ๐ - The page of
kept, their groups read now, and a note of what was cut. - filtered ๐
- The rows that pass the filter, each with its model answer (an agent with no runtime row passes an empty filter only).
- key_of ๐
- How the compact answer groups its counts.
- names_
model ๐ - Whether
modelis the onewantednames: part of its id or its label. - seat_
words ๐ - What a seat says, as words to match against: its role, qualifier, lead (name and id) and area. Not its JSON, whose key names would match every agent that has a seat.
- short_
duration - โ4mโ, โ2h 5mโ, โ30sโ: a duration a person reads at a glance.
- status
Agents status: one line per agent, the counts by state, model and host, and, withgroup_by, the agents grouped.- status_
line name | state (turn 4m), quiet 22m | Sonnet 5.5 high | ctx 62% | account | 5h 60% 7d 44% | #1234: what a leader reads to see the fleet. A fact that is not known is left out, not guessed.- string_
at ๐ - text ๐
- usage_
short ๐ - โ5h 60% 7d 44%โ: the accountโs windows, the one that resets first first.
- wanted
- Whether the agent is wanted.
!modelkeeps an agent whose model is not known too: it is not shown to be that model.