다음을 통해 공유


ConversationsModelFactory.OrchestrationPrediction Method

Definition

Initializes a new instance of OrchestrationPrediction.

public static Azure.AI.Language.Conversations.Models.OrchestrationPrediction OrchestrationPrediction (string topIntent = default, System.Collections.Generic.IReadOnlyDictionary<string,Azure.AI.Language.Conversations.Models.TargetIntentResult> intents = default);
static member OrchestrationPrediction : string * System.Collections.Generic.IReadOnlyDictionary<string, Azure.AI.Language.Conversations.Models.TargetIntentResult> -> Azure.AI.Language.Conversations.Models.OrchestrationPrediction
Public Shared Function OrchestrationPrediction (Optional topIntent As String = Nothing, Optional intents As IReadOnlyDictionary(Of String, TargetIntentResult) = Nothing) As OrchestrationPrediction

Parameters

topIntent
String

The intent with the highest score.

intents
IReadOnlyDictionary<String,TargetIntentResult>

A dictionary that contains all intents. A key is an intent name and a value is its confidence score and target type. The top intent's value also contains the actual response from the target project. Please note TargetIntentResult is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ConversationTargetIntentResult, LuisTargetIntentResult, NoneLinkedTargetIntentResult and QuestionAnsweringTargetIntentResult.

Returns

A new OrchestrationPrediction instance for mocking.

Applies to