Class AISearchIndexResource
java.lang.Object
com.azure.ai.agents.persistent.models.AISearchIndexResource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AISearchIndexResource>
public final class AISearchIndexResource
extends Object
implements com.azure.json.JsonSerializable<AISearchIndexResource>
A AI Search Index resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AISearchIndexResourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AISearchIndexResource from the JsonReader.Get the filter property: filter string for search resource.Get the indexAssetId property: Index asset id for search resource.Get the indexConnectionId property: An index connection id in an IndexResource attached to this agent.Get the indexName property: The name of an index in an IndexResource attached to this agent.Get the queryType property: Type of query in an AIIndexResource attached to this agent.getTopK()Get the topK property: Number of documents to retrieve from search and present to the model.Set the filter property: filter string for search resource.setIndexAssetId(String indexAssetId) Set the indexAssetId property: Index asset id for search resource.setIndexConnectionId(String indexConnectionId) Set the indexConnectionId property: An index connection id in an IndexResource attached to this agent.setIndexName(String indexName) Set the indexName property: The name of an index in an IndexResource attached to this agent.setQueryType(AzureAISearchQueryType queryType) Set the queryType property: Type of query in an AIIndexResource attached to this agent.Set the topK property: Number of documents to retrieve from search and present to the model.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AISearchIndexResource
public AISearchIndexResource()Creates an instance of AISearchIndexResource class.
-
-
Method Details
-
getIndexConnectionId
Get the indexConnectionId property: An index connection id in an IndexResource attached to this agent.- Returns:
- the indexConnectionId value.
-
getIndexName
Get the indexName property: The name of an index in an IndexResource attached to this agent.- Returns:
- the indexName value.
-
getQueryType
Get the queryType property: Type of query in an AIIndexResource attached to this agent.- Returns:
- the queryType value.
-
setQueryType
Set the queryType property: Type of query in an AIIndexResource attached to this agent.- Parameters:
queryType- the queryType value to set.- Returns:
- the AISearchIndexResource object itself.
-
getTopK
Get the topK property: Number of documents to retrieve from search and present to the model.- Returns:
- the topK value.
-
setTopK
Set the topK property: Number of documents to retrieve from search and present to the model.- Parameters:
topK- the topK value to set.- Returns:
- the AISearchIndexResource object itself.
-
getFilter
Get the filter property: filter string for search resource.- Returns:
- the filter value.
-
setFilter
Set the filter property: filter string for search resource.- Parameters:
filter- the filter value to set.- Returns:
- the AISearchIndexResource object itself.
-
getIndexAssetId
Get the indexAssetId property: Index asset id for search resource.- Returns:
- the indexAssetId value.
-
setIndexAssetId
Set the indexAssetId property: Index asset id for search resource.- Parameters:
indexAssetId- the indexAssetId value to set.- Returns:
- the AISearchIndexResource object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AISearchIndexResource>- Throws:
IOException
-
fromJson
public static AISearchIndexResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AISearchIndexResource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AISearchIndexResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AISearchIndexResource.
-
setIndexConnectionId
Set the indexConnectionId property: An index connection id in an IndexResource attached to this agent.- Parameters:
indexConnectionId- the indexConnectionId value to set.- Returns:
- the AISearchIndexResource object itself.
-
setIndexName
Set the indexName property: The name of an index in an IndexResource attached to this agent.- Parameters:
indexName- the indexName value to set.- Returns:
- the AISearchIndexResource object itself.
-