Class LdAiConfig
Represents an AI configuration, which contains model parameters and prompt messages.
Assembly: LaunchDarkly.ServerSdk.Ai.dll
Syntax
public record LdAiConfig : IEquatable<LdAiConfig>
Constructors
View Source
LdAiConfig(LdAiConfig)
Declaration
protected LdAiConfig(LdAiConfig original)
Parameters
Fields
|
Edit this page
View Source
Messages
The prompts associated with the config.
Declaration
public readonly IReadOnlyList<LdAiConfig.Message> Messages
Field Value
|
Edit this page
View Source
Model
The model parameters associated with the config.
Declaration
public readonly LdAiConfig.ModelConfiguration Model
Field Value
|
Edit this page
View Source
Provider
Information about the model provider.
Declaration
public readonly LdAiConfig.ModelProvider Provider
Field Value
Properties
|
Edit this page
View Source
Disabled
Convenient helper that returns a disabled LdAiConfig.
Declaration
public static LdAiConfig Disabled { get; }
Property Value
|
Edit this page
View Source
Enabled
Returns true if the config is enabled.
Declaration
public bool Enabled { get; }
Property Value
Type |
Description |
bool |
true if enabled
|
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
|
Edit this page
View Source
VariationKey
This field meant for internal LaunchDarkly usage.
Declaration
public string VariationKey { get; }
Property Value
Methods
View Source
Equals(LdAiConfig?)
Declaration
public virtual bool Equals(LdAiConfig? other)
Parameters
Returns
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
New()
Creates a new LdAiConfig builder.
Declaration
public static LdAiConfig.Builder New()
Returns
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(LdAiConfig?, LdAiConfig?)
Declaration
public static bool operator ==(LdAiConfig? left, LdAiConfig? right)
Parameters
Returns
View Source
operator !=(LdAiConfig?, LdAiConfig?)
Declaration
public static bool operator !=(LdAiConfig? left, LdAiConfig? right)
Parameters
Returns
Implements