Skip to main content

decide

Function decide 

Source
pub fn decide(
    status: &AgentStatus,
    intent: Intent,
    hands_over_work: impl FnOnce() -> bool,
) -> Decision
Expand description

The decision for intent to the agent in status. hands_over_work is asked only for a routine message to a cold session (verdict’s argument); other intents never call it.