Class AzureAISearchToolResource

java.lang.Object
com.azure.ai.agents.persistent.models.AzureAISearchToolResource
All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureAISearchToolResource>

public final class AzureAISearchToolResource extends Object implements com.azure.json.JsonSerializable<AzureAISearchToolResource>
A set of index resources used by the `azure_ai_search` tool.
  • Constructor Details

    • AzureAISearchToolResource

      public AzureAISearchToolResource()
      Creates an instance of AzureAISearchToolResource class.
  • Method Details

    • getIndexList

      public List<AISearchIndexResource> getIndexList()
      Get the indexList property: The indices attached to this agent. There can be a maximum of 1 index resource attached to the agent.
      Returns:
      the indexList value.
    • setIndexList

      public AzureAISearchToolResource setIndexList(List<AISearchIndexResource> indexList)
      Set the indexList property: The indices attached to this agent. There can be a maximum of 1 index resource attached to the agent.
      Parameters:
      indexList - the indexList value to set.
      Returns:
      the AzureAISearchToolResource object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AzureAISearchToolResource>
      Throws:
      IOException
    • fromJson

      public static AzureAISearchToolResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AzureAISearchToolResource from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AzureAISearchToolResource 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 AzureAISearchToolResource.