Compartilhar via


ChatMessage Class

Definition

An input message sent to a model (OTEL gen-ai semantic conventions).

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

Constructors

Name Description
ChatMessage(MessageRole, IReadOnlyList<IMessagePart>, String)

Initializes a new instance of the ChatMessage class.

Properties

Name Description
Name

Gets the optional participant name.

Parts

Gets the message parts.

Role

Gets the role of the message sender.

Applies to