Freigeben über


SearchModelFactory.KnowledgeBaseModelQueryPlanningActivityRecord Method

Definition

Initializes a new instance of KnowledgeBaseModelQueryPlanningActivityRecord.

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

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.

inputTokens
Nullable<Int32>

The number of input tokens for the LLM query planning activity.

outputTokens
Nullable<Int32>

The number of output tokens for the LLM query planning activity.

Returns

A new KnowledgeBaseModelQueryPlanningActivityRecord instance for mocking.

Applies to