@launchdarkly/server-sdk-ai - v2.0.21
    Preparing search index...

    Interface LDAIGraphMetricSummary

    Summarized graph-level metrics for a completed graph invocation, as returned by ManagedAgentGraph.run via ManagedGraphResult.metrics.

    For the tracker-layer incremental view (where fields populate as tracking calls arrive), see LDGraphTracker.getSummary, which returns a Partial<LDAIGraphMetricSummary>.

    interface LDAIGraphMetricSummary {
        durationMs?: number;
        nodeMetrics: Record<string, LDAIMetricSummary>;
        path: string[];
        resumptionToken?: string;
        success: boolean;
        tokens?: LDTokenUsage;
    }
    Index
    durationMs?: number

    Total graph execution duration in milliseconds, if tracked.

    nodeMetrics: Record<string, LDAIMetricSummary>

    Per-node metric summaries keyed by agent config key.

    path: string[]

    Execution path through the graph as an ordered array of config keys.

    resumptionToken?: string

    Resumption token for deferred feedback association.

    success: boolean

    Whether the graph invocation succeeded.

    tokens?: LDTokenUsage

    Aggregate token usage across the entire graph invocation, if available.