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 SourceChatMessage(string, string)
Declaration
public ChatMessage(string role, string content)
Parameters
Type | Name | Description |
---|---|---|
string | role | |
string | content |
Properties
| Improve this Doc View SourceContent
Declaration
[JsonPropertyName("content")]
public string Content { get; init; }
Property Value
Type | Description |
---|---|
string |
Role
Declaration
[JsonPropertyName("role")]
public string Role { get; init; }
Property Value
Type | Description |
---|---|
string |
Implements
System.IEquatable<T>