A single execution unit within a Mission. Each step wraps an executor (Agent, AgentTeam, Flow, or plain R function) and handles its own retry loop with error-history injection.
idUnique step identifier.
descriptionNatural language description of what this step does.
executorAgent | AgentTeam | Flow | function to perform the step.
statusCurrent status: "pending"|"running"|"done"|"failed"|"retrying".
max_retriesMaximum retry attempts before escalation. Default 2.
retry_countNumber of retries attempted so far.
timeout_secsOptional per-step timeout in seconds. NULL = no timeout.
parallelIf TRUE, this step may run concurrently with other parallel steps.
depends_onCharacter vector of step IDs that must complete before this step.
resultThe text result from the executor on success.
error_historyList of failure records, each containing
attempt, error, and timestamp.
new()Initialize a MissionStep.
MissionStep$new(
id,
description,
executor = NULL,
max_retries = 2,
timeout_secs = NULL,
parallel = FALSE,
depends_on = NULL
)idUnique step ID (e.g., "step_1").
descriptionNatural language task description.
executorAgent, AgentTeam, Flow, or R function.
max_retriesMaximum retries before stall escalation. Default 2.
timeout_secsOptional per-step timeout. Default NULL.
parallelCan run in parallel with other parallel steps. Default FALSE.
depends_onCharacter vector of prerequisite step IDs. Default NULL.
run()Execute this step once (no retry logic; handled by Mission).
MissionStep$run(session, model, context = NULL)sessionA ChatSession for shared state.
modelModel ID string.
contextOptional error-injection context string.
Character string result, or stops with an error.
clone()The objects of this class are cloneable with this method.
MissionStep$clone(deep = FALSE)deepWhether to make a deep clone.