Skip to main content

classify_message

Function classify_message 

Source
pub fn classify_message(
    msg: &Message,
    _format: AgentFormat,
) -> MessageClassification
Expand description

Classify a message for grouping purposes.

Determines how a message should be handled in the grouping algorithm:

  • Starting a new group
  • Attaching to current group
  • Being a tool result
  • Being skipped