Udostępnij przez


PersistentAgentsModelFactory.AISearchIndexResource Method

Definition

Initializes a new instance of AISearchIndexResource.

public static Azure.AI.Agents.Persistent.AISearchIndexResource AISearchIndexResource(string indexConnectionId = default, string indexName = default, Azure.AI.Agents.Persistent.AzureAISearchQueryType? queryType = default, int? topK = default, string filter = default, string indexAssetId = default);
static member AISearchIndexResource : string * string * Nullable<Azure.AI.Agents.Persistent.AzureAISearchQueryType> * Nullable<int> * string * string -> Azure.AI.Agents.Persistent.AISearchIndexResource
Public Shared Function AISearchIndexResource (Optional indexConnectionId As String = Nothing, Optional indexName As String = Nothing, Optional queryType As Nullable(Of AzureAISearchQueryType) = Nothing, Optional topK As Nullable(Of Integer) = Nothing, Optional filter As String = Nothing, Optional indexAssetId As String = Nothing) As AISearchIndexResource

Parameters

indexConnectionId
String

An index connection id in an IndexResource attached to this agent.

indexName
String

The name of an index in an IndexResource attached to this agent.

queryType
Nullable<AzureAISearchQueryType>

Type of query in an AIIndexResource attached to this agent.

topK
Nullable<Int32>

Number of documents to retrieve from search and present to the model.

filter
String

filter string for search resource.

indexAssetId
String

Index asset id for search resource.

Returns

A new AISearchIndexResource instance for mocking.

Applies to