다음을 통해 공유


KnowledgeAgentActivityRecord Class

Definition

Base type for activity records. Please note KnowledgeAgentActivityRecord 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 KnowledgeAgentAzureBlobActivityRecord, KnowledgeAgentRetrievalActivityRecord, KnowledgeAgentModelAnswerSynthesisActivityRecord, KnowledgeAgentModelQueryPlanningActivityRecord, KnowledgeAgentSearchIndexActivityRecord and KnowledgeAgentSemanticRerankerActivityRecord.

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

Constructors

KnowledgeAgentActivityRecord(Int32)

Initializes a new instance of KnowledgeAgentActivityRecord.

Properties

ElapsedMs

The elapsed time in milliseconds for the retrieval activity.

Id

The ID of the activity record.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<KnowledgeAgentActivityRecord>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<KnowledgeAgentActivityRecord>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<KnowledgeAgentActivityRecord>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<KnowledgeAgentActivityRecord>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<KnowledgeAgentActivityRecord>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to