Skip to main content

Module research_breadth

Module research_breadth 

Source
Expand description

Breadth and split checks for blyte review on research runs.

Constants§

BROAD_TURNS
A run with at least this many large-prompt turns is flagged as broad.
LARGE_PROMPT_TOKENS
A prompt above this many tokens (fresh plus cached input) counts as large.
MAX_DIRS
Most directories a split suggestion lists.

Functions§

breadth_flag
The flag for a broad run, or None when fewer than BROAD_TURNS turns were large.
large_prompt_turns
(turns with a prompt over LARGE_PROMPT_TOKENS, turns in all) from a run report’s turn_usage. Err names what is wrong when turn_usage is missing or an entry lacks input or cached.
read_dirs
Directories the run read files from, with the number of distinct files read in each, most files first, then by name; at most MAX_DIRS.
split_flag
The flag for a run that ran out of budget, or None when dirs is empty.