ChatMessage Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |