OptionalexecutionWhere the flow's steps execute. See FlowExecutionMode.
Set 'inRun' when the caller needs the flow's result in the same request, for example an API
handler that returns the final payload to its client. A dispatched run returns as soon as its
steps are scheduled, so such a caller would otherwise continue before any work had happened.
When omitted, a sub-agent run (one with parentRun) executes 'inRun', because its parent
consumes the result, and a top-level run executes 'dispatch'. Setting 'dispatch' on a
sub-agent run is refused for the same reason.
OptionalskipSteps to skip during execution.
When the flow would normally execute one of these steps, it will instead immediately evaluate the step's outgoing paths and continue to the next valid step. This is useful for:
Skipped steps are still recorded in the execution path but marked as skipped. The step's output mapping is not applied when skipped.
OptionalstartStart execution at a specific step instead of the flow's entry point.
When provided, the flow agent will begin execution at this step, skipping all steps that would normally precede it. This is useful for:
The step must belong to the agent being executed. Use AIEngine.Instance.GetAgentSteps(agentId) to retrieve available steps.
A Decision step's answers are held by the run, never written into the payload, so a run started past a Decision step has none from it: every path that reads that decision stops the run with the reason. Start at or before the Decision step to route on it.
Flow Agent-specific execution parameters.
These parameters allow callers to customize how a Flow Agent executes, including starting at a specific step or skipping certain steps. Use with ExecuteAgentParams.agentTypeParams for type-safe configuration.
Example
Since
2.127.0