แชร์ผ่าน


ChatMessage Class

Definition

Represents a chat message used by an IChatClient.

public ref class ChatMessage
public class ChatMessage
type ChatMessage = class
Public Class ChatMessage
Inheritance
ChatMessage

Constructors

ChatMessage()

Initializes a new instance of the ChatMessage class.

ChatMessage(ChatRole, IList<AIContent>)

Initializes a new instance of the ChatMessage class.

ChatMessage(ChatRole, String)

Initializes a new instance of the ChatMessage class.

Properties

AdditionalProperties

Gets or sets any additional properties associated with the message.

AuthorName

Gets or sets the name of the author of the message.

Contents

Gets or sets the chat message content items.

RawRepresentation

Gets or sets the raw representation of the chat message from an underlying implementation.

Role

Gets or sets the role of the author of the message.

Text

Gets or sets the text of the first TextContent instance in Contents.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

Applies to