LaunchDarkly Dotnet Server AI SDK
Search Results for

    Show / Hide Table of Contents

    Class LdAiConfig

    Represents an AI configuration, which contains model parameters and prompt messages.

    Inheritance
    object
    LdAiConfig
    Implements
    IEquatable<LdAiConfig>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: LaunchDarkly.Sdk.Server.Ai.Config
    Assembly: LaunchDarkly.ServerSdk.Ai.dll
    Syntax
    public record LdAiConfig : IEquatable<LdAiConfig>

    Constructors

    View Source

    LdAiConfig(LdAiConfig)

    Declaration
    protected LdAiConfig(LdAiConfig original)
    Parameters
    Type Name Description
    LdAiConfig original

    Fields

    | Edit this page View Source

    Messages

    The prompts associated with the config.

    Declaration
    public readonly IReadOnlyList<LdAiConfig.Message> Messages
    Field Value
    Type Description
    IReadOnlyList<LdAiConfig.Message>
    | Edit this page View Source

    Model

    The model parameters associated with the config.

    Declaration
    public readonly LdAiConfig.ModelConfiguration Model
    Field Value
    Type Description
    LdAiConfig.ModelConfiguration
    | Edit this page View Source

    Provider

    Information about the model provider.

    Declaration
    public readonly LdAiConfig.ModelProvider Provider
    Field Value
    Type Description
    LdAiConfig.ModelProvider

    Properties

    | Edit this page View Source

    Disabled

    Convenient helper that returns a disabled LdAiConfig.

    Declaration
    public static LdAiConfig Disabled { get; }
    Property Value
    Type Description
    LdAiConfig
    | 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
    Type Description
    Type
    | Edit this page View Source

    VariationKey

    This field meant for internal LaunchDarkly usage.

    Declaration
    public string VariationKey { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Version

    This field meant for internal LaunchDarkly usage.

    Declaration
    public int Version { get; }
    Property Value
    Type Description
    int

    Methods

    View Source

    Equals(LdAiConfig?)

    Declaration
    public virtual bool Equals(LdAiConfig? other)
    Parameters
    Type Name Description
    LdAiConfig other
    Returns
    Type Description
    bool
    View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    New()

    Creates a new LdAiConfig builder.

    Declaration
    public static LdAiConfig.Builder New()
    Returns
    Type Description
    LdAiConfig.Builder

    a new builder

    View Source

    PrintMembers(StringBuilder)

    Declaration
    protected virtual bool PrintMembers(StringBuilder builder)
    Parameters
    Type Name Description
    StringBuilder builder
    Returns
    Type Description
    bool
    View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Operators

    View Source

    operator ==(LdAiConfig?, LdAiConfig?)

    Declaration
    public static bool operator ==(LdAiConfig? left, LdAiConfig? right)
    Parameters
    Type Name Description
    LdAiConfig left
    LdAiConfig right
    Returns
    Type Description
    bool
    View Source

    operator !=(LdAiConfig?, LdAiConfig?)

    Declaration
    public static bool operator !=(LdAiConfig? left, LdAiConfig? right)
    Parameters
    Type Name Description
    LdAiConfig left
    LdAiConfig right
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX