run

Function run 

pub fn run(agent: Arc<dyn TextAgent>, mode: Mode) -> StepAction
Expand description

Build a step-enter action that runs agent in mode when the step first activates. Pair with FlowMonitor::on_enter.

let mon = FlowMonitor::new(flow, Enforcement::Enforce)
    .on_enter("check", run(availability_agent, AgentMode::Dispatch));