Share via


KnowledgeBaseActivityRecord Class

Definition

Base type for activity records. Please note KnowledgeBaseActivityRecord 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 KnowledgeBaseAgenticReasoningActivityRecord, KnowledgeBaseAzureBlobActivityRecord, KnowledgeBaseIndexedOneLakeActivityRecord, KnowledgeBaseIndexedSharePointActivityRecord, KnowledgeBaseRetrievalActivityRecord, KnowledgeBaseModelAnswerSynthesisActivityRecord, KnowledgeBaseModelQueryPlanningActivityRecord, KnowledgeBaseRemoteSharePointActivityRecord, KnowledgeBaseSearchIndexActivityRecord and KnowledgeBaseWebActivityRecord.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.Search.Documents.Models.UnknownKnowledgeBaseActivityRecord))]
public abstract class KnowledgeBaseActivityRecord : System.ClientModel.Primitives.IJsonModel<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord>, System.ClientModel.Primitives.IPersistableModel<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.Search.Documents.Models.UnknownKnowledgeBaseActivityRecord))>]
type KnowledgeBaseActivityRecord = class
    interface IJsonModel<KnowledgeBaseActivityRecord>
    interface IPersistableModel<KnowledgeBaseActivityRecord>
Public MustInherit Class KnowledgeBaseActivityRecord
Implements IJsonModel(Of KnowledgeBaseActivityRecord), IPersistableModel(Of KnowledgeBaseActivityRecord)
Inheritance
KnowledgeBaseActivityRecord
Derived
Attributes
Implements

Constructors

Name Description
KnowledgeBaseActivityRecord(Int32)

Initializes a new instance of KnowledgeBaseActivityRecord.

Properties

Name Description
ElapsedMs

The elapsed time in milliseconds for the retrieval activity.

Error

The error detail explaining why the operation failed. This property is only included when the activity does not succeed.

Id

The ID of the activity record.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

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

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

IJsonModel<KnowledgeBaseActivityRecord>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<KnowledgeBaseActivityRecord>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<KnowledgeBaseActivityRecord>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<KnowledgeBaseActivityRecord>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to