ChatMessage(MessageRole, IReadOnlyList<IMessagePart>, String) Constructor
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.
Initializes a new instance of the ChatMessage class.
public ChatMessage(Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Messages.MessageRole role, System.Collections.Generic.IReadOnlyList<Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Messages.IMessagePart> parts, string? name = default);
new Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Messages.ChatMessage : Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Messages.MessageRole * System.Collections.Generic.IReadOnlyList<Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Messages.IMessagePart> * string -> Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Messages.ChatMessage
Public Sub New (role As MessageRole, parts As IReadOnlyList(Of IMessagePart), Optional name As String = Nothing)
Parameters
- role
- MessageRole
The role of the message sender.
- parts
- IReadOnlyList<IMessagePart>
The message parts.
- name
- String
Optional participant name.