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
Disabled
Convenient helper that returns a disabled LdAiConfig.
Declaration
public static LdAiConfig Disabled
Field Value
|
Edit this page
View Source
Model
The model parameters associated with the config.
Declaration
public readonly IReadOnlyDictionary<string, object> Model
Field Value
|
Edit this page
View Source
Prompt
The prompts associated with the config.
Declaration
public readonly IReadOnlyList<LdAiConfig.Message> Prompt
Field Value
Properties
|
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
VersionKey
This field meant for internal LaunchDarkly usage.
Declaration
public string VersionKey { 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