Skip to main content

should_nudge_learning

Function should_nudge_learning 

Source
pub fn should_nudge_learning(messages: &[Message], threshold: u32) -> bool
Expand 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.