Search Results for

    Show / Hide Table of Contents

    Class ChatMessage

    Inheritance
    object
    ChatMessage
    Implements
    IEquatable<ChatMessage>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DotnetPrompt.LLM.OpenAI.Model
    Assembly: DotnetPrompt.LLM.OpenAI.dll
    Syntax
    public record ChatMessage : IEquatable<ChatMessage>

    Constructors

    | Improve this Doc View Source

    ChatMessage(string, string)

    Declaration
    public ChatMessage(string role, string content)
    Parameters
    Type Name Description
    string role
    string content

    Properties

    | Improve this Doc View Source

    Content

    Declaration
    [JsonPropertyName("content")]
    public string Content { get; init; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    Role

    Declaration
    [JsonPropertyName("role")]
    public string Role { get; init; }
    Property Value
    Type Description
    string

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright 2023 © Pavel «xakpc» Osadchuk for DotnetPrompt