次の方法で共有


AzureAISearchToolResource Class

  • java.lang.Object
    • com.azure.ai.agents.persistent.models.AzureAISearchToolResource

Implements

public final class AzureAISearchToolResource
implements JsonSerializable<AzureAISearchToolResource>

A set of index resources used by the `azure_ai_search` tool.

Constructor Summary

Constructor Description
AzureAISearchToolResource()

Creates an instance of AzureAISearchToolResource class.

Method Summary

Modifier and Type Method and Description
static AzureAISearchToolResource fromJson(JsonReader jsonReader)

Reads an instance of AzureAISearchToolResource from the JsonReader.

List<AISearchIndexResource> getIndexList()

Get the indexList property: The indices attached to this agent.

AzureAISearchToolResource setIndexList(List<AISearchIndexResource> indexList)

Set the indexList property: The indices attached to this agent.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

AzureAISearchToolResource

public AzureAISearchToolResource()

Creates an instance of AzureAISearchToolResource class.

Method Details

fromJson

public static AzureAISearchToolResource fromJson(JsonReader jsonReader)

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.

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 JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to