Member Junction
    Preparing search index...

    Interface FlowAgentExecuteParams

    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.

    import { FlowAgentExecuteParams } from '@memberjunction/ai-agents';

    // Get the step to start at
    const approvalStep = AIEngine.Instance.GetAgentSteps(agentId)
    .find(s => s.Name === 'Approval Review');

    const params: ExecuteAgentParams<any, any, FlowAgentExecuteParams> = {
    agent: myFlowAgent,
    conversationMessages: messages,
    agentTypeParams: {
    startAtStep: approvalStep, // Skip initial steps, start here
    }
    };

    2.127.0

    interface FlowAgentExecuteParams {
        skipSteps?: MJAIAgentStepEntity[];
        startAtStep?: MJAIAgentStepEntity;
    }
    Index

    Properties

    skipSteps?: MJAIAgentStepEntity[]

    Steps 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:

    • Bypassing steps that have already been completed externally
    • Testing flows without certain side effects
    • Conditional step execution based on runtime state

    Skipped steps are still recorded in the execution path but marked as skipped. The step's output mapping is not applied when skipped.

    startAtStep?: MJAIAgentStepEntity

    Start 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:

    • Resuming a flow from a specific point
    • Testing specific branches of a flow
    • Re-running a portion of a flow after a failure

    The step must belong to the agent being executed. Use AIEngine.Instance.GetAgentSteps(agentId) to retrieve available steps.