Class LdAiConfig
Shared type for AI Configs returned by the SDK. Carries common fields and the CreateTracker() factory. Cannot be constructed or subclassed outside the SDK.
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Ai.Config
Assembly: LaunchDarkly.ServerSdk.Ai.dll
Syntax
public abstract class LdAiConfig
Properties
| Edit this page View SourceEnabled
Whether the config is enabled.
Declaration
public bool Enabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Key
The key of the AI Config that was evaluated.
Declaration
public string Key { get; }
Property Value
| Type | Description |
|---|---|
| string |
Model
Information about the model.
Declaration
public LdAiConfigTypes.ModelConfig Model { get; }
Property Value
| Type | Description |
|---|---|
| LdAiConfigTypes.ModelConfig |
Provider
Information about the model provider.
Declaration
public LdAiConfigTypes.ProviderConfig Provider { get; }
Property Value
| Type | Description |
|---|---|
| LdAiConfigTypes.ProviderConfig |
Methods
| Edit this page View SourceCreateTracker()
Creates a tracker that emits events related to this config. The returned tracker is always non-null.
Declaration
public ILdAiConfigTracker CreateTracker()
Returns
| Type | Description |
|---|---|
| ILdAiConfigTracker | a tracker for this config |