bunqueue v2.9 API referenceall versions · guide
bunqueue
    Preparing search index...

    Interface AgentEffectOptions<T>

    interface AgentEffectOptions<T> {
        callId: string;
        executionId: string;
        invoke: (idempotencyKey: string) => Promise<T>;
        journal: AgentJournal;
        reconcile?: (idempotencyKey: string) => Promise<EffectReconciliation<T>>;
        stepId: string;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index
    callId: string

    Stable business operation identity, e.g. refund:order-123 (never a new provider call ID).

    executionId: string
    invoke: (idempotencyKey: string) => Promise<T>
    journal: AgentJournal
    reconcile?: (idempotencyKey: string) => Promise<EffectReconciliation<T>>

    Prove the original invocation stopped and its remote outcome before returning not_applied.

    stepId: string