Interface LDAIJudgeConfig

Judge-specific AI Config with required evaluation metric key.

Hierarchy

Properties

createTracker?: (() => LDAIConfigTracker)

Type declaration

    • (): LDAIConfigTracker
    • Creates a new tracker for this AI Config invocation. Each call returns a new tracker with a fresh runId. Use createTracker() at the start of each execution to obtain a tracker, then use it to record metrics for that run.

      Returns LDAIConfigTracker

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.

evaluationMetricKeys?: string[]

Evaluation metric keys for judge configurations (legacy). The keys of the metrics that this judge can evaluate.

Deprecated

Use evaluationMetricKey instead. This field is kept for legacy support.

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.

Generated using TypeDoc