Share via


KnowledgeBaseAnswerContext Class

Definition

Context object with previous QnA's information.

public class KnowledgeBaseAnswerContext : System.ClientModel.Primitives.IJsonModel<Azure.AI.Language.Conversations.Models.KnowledgeBaseAnswerContext>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Language.Conversations.Models.KnowledgeBaseAnswerContext>
type KnowledgeBaseAnswerContext = class
    interface IJsonModel<KnowledgeBaseAnswerContext>
    interface IPersistableModel<KnowledgeBaseAnswerContext>
Public Class KnowledgeBaseAnswerContext
Implements IJsonModel(Of KnowledgeBaseAnswerContext), IPersistableModel(Of KnowledgeBaseAnswerContext)
Inheritance
KnowledgeBaseAnswerContext
Implements

Constructors

KnowledgeBaseAnswerContext(Int32)

Initializes a new instance of KnowledgeBaseAnswerContext.

Properties

PreviousQnaId

Previous turn top answer result QnA ID.

PreviousQuestion

Previous user query.

Explicit Interface Implementations

IJsonModel<KnowledgeBaseAnswerContext>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<KnowledgeBaseAnswerContext>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<KnowledgeBaseAnswerContext>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<KnowledgeBaseAnswerContext>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<KnowledgeBaseAnswerContext>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to