Interface LDAICompletionConfig

Completion AI Config (default mode).

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.

judgeConfiguration?: LDJudgeConfiguration

Judge configuration for AI Configs being evaluated. References judge AI Configs that should evaluate this AI Config.

key: string

The key of the AI Config.

messages?: LDMessage[]

Optional prompt data for completion configurations.

Optional model configuration.

provider?: LDProviderConfig

Optional configuration for the provider.

tools?: {
    [toolName: string]: LDTool;
}

Root-level tools map keyed by tool name. Distinct from model.parameters.tools[].

Type declaration

Generated using TypeDoc