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 SourceChatMessageTemplate(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 SourceContentTemplate
Template for content, might be parameterless
Declaration
public IPromptTemplate ContentTemplate { get; init; }
Property Value
Type | Description |
---|---|
IPromptTemplate |
Role
One of the chat role
Declaration
public string Role { get; init; }
Property Value
Type | Description |
---|---|
string |
Implements
System.IEquatable<T>