Skip to main content

Module classifier

Module classifier 

Source
Expand description

Event classifier: takes a chat chunk + recent task context, returns suggested event_type + task_id + confidence.

Modules§

heuristic
Heuristic classifier — pattern-matching on common phrasing cues.
http
Anthropic API HTTP client implementing Classifier.
hybrid
Hybrid classifier — heuristic-first, LLM fallback.
mock
Mock classifier: returns a pre-set output regardless of input.
prompt
Prompt builder for the classifier.
telemetry
Append-only classifier telemetry: one JSONL line per classification call.

Structs§

ClassifyInput
ClassifyOutput
TaskContext

Constants§

CONFIDENCE_THRESHOLD

Traits§

Classifier

Functions§

decide_status