@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface TaskResultCompleted<T>

    Successful completion — data is always present.

    interface TaskResultCompleted<T> {
        metadata: TaskResultMetadata;
        governance?: GovernanceCheckResult;
        governanceOutcome?: GovernanceOutcome;
        governanceOutcomeError?: string;
        conversation?: Message[];
        debug_logs?: any[];
        match?: <R>(
            handlers: MatchHandlers<T, R> | PartialMatchHandlers<T, R>,
        ) => R;
        success: true;
        status: "completed";
        data: T;
        error?: undefined;
        adcpError?: undefined;
        errorInstance?: undefined;
        correlationId?: undefined;
        deferred?: undefined;
        submitted?: undefined;
    }

    Type Parameters

    • T

    Hierarchy

    • TaskResultBase<T>
      • TaskResultCompleted
    Index

    Properties

    Governance check result (present when governance is configured)

    governanceOutcome?: GovernanceOutcome

    Governance outcome (present after successful execution with governance)

    governanceOutcomeError?: string

    Error message when governance outcome reporting failed

    conversation?: Message[]

    Full conversation history

    debug_logs?: any[]

    Debug logs (if debug enabled)

    match?: <R>(handlers: MatchHandlers<T, R> | PartialMatchHandlers<T, R>) => R

    Exhaustive pattern match on the result's status. Prefer this method form — it autocompletes alongside the other TaskResult accessors.

    The free function import('./match').match is also exported for compositional use (e.g., point-free style or when the result type is not yet narrowed).

    Attached non-enumerably by the client when the result is returned from executeTask. Results constructed by hand (e.g., in test fixtures or custom middleware) will not have this method — use the free function, or call attachMatch(result) first.

    success: true
    status: "completed"
    data: T
    error?: undefined
    adcpError?: undefined
    errorInstance?: undefined
    correlationId?: undefined
    deferred?: undefined
    submitted?: undefined