Skip to main content

decide_action

Function decide_action 

Source
pub fn decide_action(_stage: Stage, outcome: AgentStatus) -> Action
Expand description

Decide what to do given the outcome of a stage’s agent run.

stage is part of the signature for Plan 04’s dispatch even though the current mapping is stage-independent — kept for forward compatibility, not used in the match itself.

The match is exhaustive over every AgentStatus variant with NO wildcard arm — see the module doc comment.