Freigeben über


SearchModelFactory.KnowledgeBaseAgenticReasoningActivityRecord Method

Definition

Initializes a new instance of KnowledgeBaseAgenticReasoningActivityRecord.

public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAgenticReasoningActivityRecord KnowledgeBaseAgenticReasoningActivityRecord(int id = 0, int? elapsedMs = default, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = default, int? reasoningTokens = default, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort retrievalReasoningEffort = default);
static member KnowledgeBaseAgenticReasoningActivityRecord : int * Nullable<int> * Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail * Nullable<int> * Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort -> Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAgenticReasoningActivityRecord
Public Shared Function KnowledgeBaseAgenticReasoningActivityRecord (Optional id As Integer = 0, Optional elapsedMs As Nullable(Of Integer) = Nothing, Optional error As KnowledgeBaseErrorDetail = Nothing, Optional reasoningTokens As Nullable(Of Integer) = Nothing, Optional retrievalReasoningEffort As KnowledgeRetrievalReasoningEffort = Nothing) As KnowledgeBaseAgenticReasoningActivityRecord

Parameters

id
Int32

The ID of the activity record.

elapsedMs
Nullable<Int32>

The elapsed time in milliseconds for the retrieval activity.

error
KnowledgeBaseErrorDetail

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

reasoningTokens
Nullable<Int32>

The number of input tokens for agentic reasoning.

retrievalReasoningEffort
KnowledgeRetrievalReasoningEffort

Please note KnowledgeRetrievalReasoningEffort 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 KnowledgeRetrievalLowReasoningEffort, KnowledgeRetrievalMediumReasoningEffort and KnowledgeRetrievalMinimalReasoningEffort.

Returns

A new KnowledgeBaseAgenticReasoningActivityRecord instance for mocking.

Applies to