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

    Interface LDAIMetrics

    Metrics information for AI operations that includes success status and token usage. This class combines success/failure tracking with token usage metrics.

    interface LDAIMetrics {
        durationMs?: number;
        success: boolean;
        tokens?: LDTokenUsage;
        toolCalls?: string[];
    }
    Index
    durationMs?: number

    Duration of the operation in milliseconds. This will be undefined if duration was not tracked.

    success: boolean

    Whether the AI operation was successful.

    tokens?: LDTokenUsage

    Token usage information for the operation. This will be undefined if no token usage data is available.

    toolCalls?: string[]

    List of tool call identifiers made during the operation. This will be undefined if no tool calls were made.