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

    Interface LDAIConfig

    Base AI Config interface without mode-specific fields.

    interface LDAIConfig {
        createTracker: () => LDAIConfigTracker;
        enabled: boolean;
        key: string;
        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.

    key: string

    The key of the AI Config.

    Optional model configuration.

    provider?: LDProviderConfig

    Optional configuration for the provider.