Member Junction
    Preparing search index...

    Interface FinalizeAgentRunStepOptions

    Inputs for finalizeAgentRunStep — the "completion" field set of an agent run step.

    interface FinalizeAgentRunStepOptions {
        completedAt?: Date;
        errorMessage?: string;
        outputData?: Record<string, unknown>;
        success: boolean;
        targetLogID?: string;
    }
    Index

    Properties

    completedAt?: Date

    Optional completion timestamp. Capture it at the moment the step actually finished and pass it in, so that re-applying this finalize later (e.g. the queue re-asserts it AFTER the INSERT lands) yields the SAME CompletedAt/durationMs rather than drifting to "now". Defaults to new Date().

    errorMessage?: string

    Optional failure detail (empty/undefined → null).

    outputData?: Record<string, unknown>

    Optional output payload; wrapped in a standard { success, durationMs, errorMessage } context envelope.

    success: boolean

    Whether the step succeeded — drives Status (Completed/Failed) and Success.

    targetLogID?: string

    Optional run-log id to stamp now (when not known at start — e.g. a prompt run id captured after execution).