ConversationsModelFactory.TextConversationItem Method
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 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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for .NET