Share via


ConversationsModelFactory.ConversationResult Method

Definition

Initializes a new instance of ConversationResult.

public static Azure.AI.Language.Conversations.Models.ConversationResult ConversationResult (string query = default, string detectedLanguage = default, Azure.AI.Language.Conversations.Models.ConversationPrediction prediction = default);
static member ConversationResult : string * string * Azure.AI.Language.Conversations.Models.ConversationPrediction -> Azure.AI.Language.Conversations.Models.ConversationResult
Public Shared Function ConversationResult (Optional query As String = Nothing, Optional detectedLanguage As String = Nothing, Optional prediction As ConversationPrediction = Nothing) As ConversationResult

Parameters

query
String

The same query given in request.

detectedLanguage
String

The detected language from the query in BCP 47 language representation.

prediction
ConversationPrediction

The predicted result for the query.

Returns

A new ConversationResult instance for mocking.

Applies to