KnowledgeBaseMessage Class

Definition

The natural language message style object.

public class KnowledgeBaseMessage : System.ClientModel.Primitives.IJsonModel<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessage>, System.ClientModel.Primitives.IPersistableModel<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessage>
type KnowledgeBaseMessage = class
    interface IJsonModel<KnowledgeBaseMessage>
    interface IPersistableModel<KnowledgeBaseMessage>
Public Class KnowledgeBaseMessage
Implements IJsonModel(Of KnowledgeBaseMessage), IPersistableModel(Of KnowledgeBaseMessage)
Inheritance
KnowledgeBaseMessage
Implements

Constructors

Name Description
KnowledgeBaseMessage(IEnumerable<KnowledgeBaseMessageContent>)

Initializes a new instance of KnowledgeBaseMessage.

Properties

Name Description
Content

The content of the message.

Role

The role of the tool response.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<KnowledgeBaseMessage>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<KnowledgeBaseMessage>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<KnowledgeBaseMessage>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<KnowledgeBaseMessage>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<KnowledgeBaseMessage>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to