Skip to main content

classify_failure_category

Function classify_failure_category 

Source
pub fn classify_failure_category(compressed_context: &str) -> &'static str
Expand description

Classify which content category was likely lost in a compaction failure.

Returns one of: tool_output, assistant_reasoning, user_context, unknown.

Classification is performed on the compaction summary text, not on the post-summary LLM response.