pub fn should_nudge_learning(messages: &[Message], threshold: u32) -> boolExpand description
Check if the session was complex enough to warrant a learning nudge.
Counts tool calls across all assistant messages. Returns true if the count meets or exceeds the threshold, suggesting the agent should consider saving the approach as a skill or persisting something to memory.