LaunchDarkly Dotnet Server AI SDK
Search Results for

    Show / Hide Table of Contents

    Class LdAiConfig.Message

    Represents a single message, which is part of a prompt.

    Inheritance
    object
    LdAiConfig.Message
    Implements
    IEquatable<LdAiConfig.Message>
    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.Message : IEquatable<LdAiConfig.Message>

    Constructors

    View Source

    Message(Message)

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

    Fields

    | Edit this page View Source

    Content

    The content of the message, which may contain Mustache templates.

    Declaration
    public readonly string Content
    Field Value
    Type Description
    string
    | Edit this page View Source

    Role

    The role of the message.

    Declaration
    public readonly Role Role
    Field Value
    Type Description
    Role

    Properties

    View Source

    EqualityContract

    Declaration
    protected virtual Type EqualityContract { get; }
    Property Value
    Type Description
    Type

    Methods

    View Source

    Equals(Message?)

    Declaration
    public virtual bool Equals(LdAiConfig.Message? other)
    Parameters
    Type Name Description
    LdAiConfig.Message 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()
    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 ==(Message?, Message?)

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

    operator !=(Message?, Message?)

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

    Implements

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