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

    Interface LDAIMetricSummary

    Summary metrics returned in a ManagedResult or from LDAIConfigTracker.getSummary(). Provides a flat view of the key metrics for the completed operation.

    interface LDAIMetricSummary {
        durationMs?: number;
        feedback?: { kind: LDFeedbackKind };
        resumptionToken?: string;
        success?: boolean;
        timeToFirstTokenMs?: number;
        tokens?: LDTokenUsage;
        toolCalls?: string[];
    }
    Index
    durationMs?: number

    Duration of the operation in milliseconds, if tracked.

    feedback?: { kind: LDFeedbackKind }

    User feedback sentiment for this generation, if provided.

    resumptionToken?: string

    Resumption token for deferred feedback association.

    success?: boolean

    Whether the AI operation was successful.

    timeToFirstTokenMs?: number

    Time to first token in milliseconds, if tracked.

    tokens?: LDTokenUsage

    Token usage information, if available.

    toolCalls?: string[]

    List of tool call identifiers made during the operation, if any.