Partilhar via


PredictionBase Class

Definition

This is the base class of prediction Please note PredictionBase 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 ConversationPrediction and OrchestrationPrediction.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.Language.Conversations.Models.UnknownPredictionBase))]
public abstract class PredictionBase : System.ClientModel.Primitives.IJsonModel<Azure.AI.Language.Conversations.Models.PredictionBase>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Language.Conversations.Models.PredictionBase>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.Language.Conversations.Models.UnknownPredictionBase))>]
type PredictionBase = class
    interface IJsonModel<PredictionBase>
    interface IPersistableModel<PredictionBase>
Public MustInherit Class PredictionBase
Implements IJsonModel(Of PredictionBase), IPersistableModel(Of PredictionBase)
Inheritance
PredictionBase
Derived
Attributes
Implements

Constructors

PredictionBase()

Initializes a new instance of PredictionBase.

Properties

TopIntent

The intent with the highest score.

Explicit Interface Implementations

IJsonModel<PredictionBase>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<PredictionBase>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<PredictionBase>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<PredictionBase>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<PredictionBase>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to