Member Junction
    Preparing search index...

    Interface MJTaskEntity_ITaskWhileConfiguration

    A While step: run the body until a condition stops being true.

    Mirrors WhileOperation in @memberjunction/ai-core-plus field for field — see the note on MJTaskEntity_ITaskForEachConfiguration for why that matters.

    interface MJTaskEntity_ITaskWhileConfiguration {
        action?: MJTaskEntity_ITaskLoopActionBody;
        condition: string;
        continueOnError?: boolean;
        delayBetweenIterationsMs?: number;
        itemVariable?: string;
        maxIterations?: number;
        prompt?: MJTaskEntity_ITaskLoopPromptBody;
        subAgent?: MJTaskEntity_ITaskLoopSubAgentBody;
    }
    Index

    Properties

    Run this action once per iteration.

    condition: string

    Boolean expression evaluated before each iteration.

    continueOnError?: boolean

    Keep going if an iteration fails (default: false).

    delayBetweenIterationsMs?: number

    Delay between iterations, in milliseconds (default: 0).

    itemVariable?: string

    Variable name for the attempt context (default: "attempt").

    maxIterations?: number

    Maximum iterations (undefined = 100, 0 = unlimited, >0 = limit).

    A prompt run once per loop iteration.

    Run this sub-agent once per iteration.