Share via


ConversationsModelFactory.TextConversationItem Method

Definition

Initializes a new instance of TextConversationItem.

public static Azure.AI.Language.Conversations.Models.TextConversationItem TextConversationItem (string id = default, string participantId = default, string language = default, Azure.AI.Language.Conversations.Models.InputModality? modality = default, Azure.AI.Language.Conversations.Models.ParticipantRole? role = default, string text = default);
static member TextConversationItem : string * string * string * Nullable<Azure.AI.Language.Conversations.Models.InputModality> * Nullable<Azure.AI.Language.Conversations.Models.ParticipantRole> * string -> Azure.AI.Language.Conversations.Models.TextConversationItem
Public Shared Function TextConversationItem (Optional id As String = Nothing, Optional participantId As String = Nothing, Optional language As String = Nothing, Optional modality As Nullable(Of InputModality) = Nothing, Optional role As Nullable(Of ParticipantRole) = Nothing, Optional text As String = Nothing) As TextConversationItem

Parameters

id
String

The ID of a conversation item.

participantId
String

The participant ID of a conversation item.

language
String

The override language of a conversation item in BCP 47 language representation.

modality
Nullable<InputModality>

Enumeration of supported conversational modalities.

role
Nullable<ParticipantRole>

Role of the participant.

text
String

The text input.

Returns

A new TextConversationItem instance for mocking.

Applies to