Search Results for

    Show / Hide Table of Contents

    Class ChatMessageTemplate

    Prompt template of chat message

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

    Constructors

    | Improve this Doc View Source

    ChatMessageTemplate(string, IPromptTemplate)

    Prompt template of chat message

    Declaration
    public ChatMessageTemplate(string Role, IPromptTemplate ContentTemplate)
    Parameters
    Type Name Description
    string Role

    One of the chat role

    IPromptTemplate ContentTemplate

    Template for content, might be parameterless

    Properties

    | Improve this Doc View Source

    ContentTemplate

    Template for content, might be parameterless

    Declaration
    public IPromptTemplate ContentTemplate { get; init; }
    Property Value
    Type Description
    IPromptTemplate
    | Improve this Doc View Source

    Role

    One of the chat role

    Declaration
    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