Freigeben über


SearchModelFactory.KnowledgeBaseRetrievalResponse Method

Definition

Initializes a new instance of KnowledgeBaseRetrievalResponse.

public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalResponse KnowledgeBaseRetrievalResponse(System.Collections.Generic.IEnumerable<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessage> response = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord> activity = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference> references = default);
static member KnowledgeBaseRetrievalResponse : seq<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessage> * seq<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord> * seq<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference> -> Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalResponse
Public Shared Function KnowledgeBaseRetrievalResponse (Optional response As IEnumerable(Of KnowledgeBaseMessage) = Nothing, Optional activity As IEnumerable(Of KnowledgeBaseActivityRecord) = Nothing, Optional references As IEnumerable(Of KnowledgeBaseReference) = Nothing) As KnowledgeBaseRetrievalResponse

Parameters

activity
IEnumerable<KnowledgeBaseActivityRecord>

The activity records for tracking progress and billing implications. 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.

references
IEnumerable<KnowledgeBaseReference>

The references for the retrieval data used in the response. Please note KnowledgeBaseReference 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 KnowledgeBaseAzureBlobReference, KnowledgeBaseIndexedOneLakeReference, KnowledgeBaseIndexedSharePointReference, KnowledgeBaseRemoteSharePointReference, KnowledgeBaseSearchIndexReference and KnowledgeBaseWebReference.

Returns

A new KnowledgeBaseRetrievalResponse instance for mocking.

Applies to