Share via


AzureAISearchToolResource Class

Definition

A set of index resources used by the azure_ai_search tool.

public class AzureAISearchToolResource : Azure.AI.AgentServer.Contracts.Generated.Common.IUtf8JsonSerializable, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.AzureAISearchToolResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.AzureAISearchToolResource>
type AzureAISearchToolResource = class
    interface IUtf8JsonSerializable
    interface IJsonModel<AzureAISearchToolResource>
    interface IPersistableModel<AzureAISearchToolResource>
Public Class AzureAISearchToolResource
Implements IJsonModel(Of AzureAISearchToolResource), IPersistableModel(Of AzureAISearchToolResource), IUtf8JsonSerializable
Inheritance
AzureAISearchToolResource
Implements

Constructors

Name Description
AzureAISearchToolResource()

Initializes a new instance of AzureAISearchToolResource.

AzureAISearchToolResource(IList<AISearchIndexResource>, IDictionary<String,BinaryData>)

Initializes a new instance of AzureAISearchToolResource.

Properties

Name Description
IndexList

The indices attached to this agent. There can be a maximum of 1 index resource attached to the agent.

Methods

Name Description
DeserializeAzureAISearchToolResource(JsonElement, ModelReaderWriterOptions)
FromResponse(Response)

Deserializes the model from a raw response.

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
ToRequestContent()

Convert into a RequestContent.

Explicit Interface Implementations

Name Description
IJsonModel<AzureAISearchToolResource>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AzureAISearchToolResource>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AzureAISearchToolResource>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AzureAISearchToolResource>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AzureAISearchToolResource>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to