Skip to main content

Module observation

Module observation 

Source
Expand description

Whether a tool-call batch is read-only.

Separated from the detector because it answers a different question. The detector counts repeats; this decides which allowance a repeat is held to. Keeping them apart also leaves mod.rs room to change.

Constantsยง

COSTLY_OBSERVATION_TOOLS ๐Ÿ”’
Shipped observation entries that are read-only here but not free to repeat.

Functionsยง

covers_whole_segments ๐Ÿ”’
Whether pat occupies a whole run of segments.
is_costly_batch ๐Ÿ”’
Return true if any call in calls costs something to repeat.
is_observation_batch
Return true if every call in calls is an observation-only tool.
split_segments ๐Ÿ”’
Split a tool name on the separators clients build compound names from.