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

    Interface LDAIJudgeConfig

    Judge-specific AI Config with required evaluation metric key.

    interface LDAIJudgeConfig {
        createTracker: () => LDAIConfigTracker;
        enabled: boolean;
        evaluationMetricKey?: string;
        key: string;
        messages?: LDMessage[];
        model?: LDModelConfig;
        provider?: LDProviderConfig;
    }

    Hierarchy (View Summary)

    Index
    createTracker: () => LDAIConfigTracker

    Creates a new tracker for a fresh AI run. Each call mints a new runId (a UUIDv4) that LaunchDarkly uses to correlate the run's events in metrics views. Call this once per AI run; metrics from different runIds cannot be combined.

    enabled: boolean

    Whether the configuration is enabled.

    evaluationMetricKey?: string

    Evaluation metric key for judge configurations. The key of the metric that this judge can evaluate.

    key: string

    The key of the AI Config.

    messages?: LDMessage[]

    Optional prompt data for judge configurations.

    Optional model configuration.

    provider?: LDProviderConfig

    Optional configuration for the provider.