Share via


ChatProtocolExecutor.StringMessageChatRole Property

Definition

Gets or sets the chat role to use when converting string messages to ChatMessage instances. If set, the executor will accept string messages and convert them to chat messages with this role.

protected Microsoft.Extensions.AI.ChatRole? StringMessageChatRole { get; }
member this.StringMessageChatRole : Nullable<Microsoft.Extensions.AI.ChatRole>
Protected ReadOnly Property StringMessageChatRole As Nullable(Of ChatRole)

Property Value

Applies to