classifyDeliberationCue function
Classifies text as DeliberationVerdict.thinking when it contains any
of the deliberationCues (matched case-insensitively, on word
boundaries), otherwise DeliberationVerdict.normal.
Pure and total: empty or whitespace-only text is DeliberationVerdict.normal,
and the same input always yields the same verdict. Word-boundary matching
keeps the match honest — research matches "can you research the API" but
not the substring inside "researcher" or "rare searches".
Implementation
DeliberationVerdict classifyDeliberationCue(String text) {
for (final cue in deliberationCues) {
if (_containsCue(text, cue)) return DeliberationVerdict.thinking;
}
return DeliberationVerdict.normal;
}