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