Class LdAiCompletionConfig
Represents an AI Completion Config returned by the SDK, containing model parameters, prompt messages, and a factory that produces a tracker for reporting events related to model usage.
Instances of this type are produced by CompletionConfig(string, Context, LdAiCompletionConfigDefault, IReadOnlyDictionary<string, object>); they are not constructed directly by users. To supply a fallback default to the client, use LdAiCompletionConfigDefault.
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Ai.Config
Assembly: LaunchDarkly.ServerSdk.Ai.dll
Syntax
public sealed class LdAiCompletionConfig : LdAiConfig
Properties
| Edit this page View SourceJudgeConfiguration
The judge configuration attached to this completion config, or null if none is configured.
Declaration
public LdAiConfigTypes.JudgeConfiguration JudgeConfiguration { get; }
Property Value
| Type | Description |
|---|---|
| LdAiConfigTypes.JudgeConfiguration |
Messages
The prompts associated with the config.
Declaration
public IReadOnlyList<LdAiConfigTypes.Message> Messages { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<LdAiConfigTypes.Message> |
Tools
The tools available to the model, keyed by tool name.
Declaration
public IReadOnlyDictionary<string, LdAiConfigTypes.Tool> Tools { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyDictionary<string, LdAiConfigTypes.Tool> |