Share via


KnowledgeBaseAnswer Class

Definition

Represents knowledge base answer.

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

Properties

Answer

Answer text.

Confidence

Answer confidence score, value ranges from 0 to 1.

Dialog

Dialog associated with Answer.

Metadata

Metadata associated with the answer, useful to categorize or filter question answers.

QnaId

ID of the QnA result.

Questions

List of questions associated with the answer.

ShortAnswer

Answer span object of QnA with respect to user's question.

Source

Source of QnA result.

Explicit Interface Implementations

IJsonModel<KnowledgeBaseAnswer>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<KnowledgeBaseAnswer>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<KnowledgeBaseAnswer>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<KnowledgeBaseAnswer>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<KnowledgeBaseAnswer>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to