FileSearchTool Class

Definition

File search.

public class FileSearchTool : Azure.AI.AgentServer.Responses.Models.Tool, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Responses.Models.FileSearchTool>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Responses.Models.FileSearchTool>
type FileSearchTool = class
    inherit Tool
    interface IJsonModel<FileSearchTool>
    interface IPersistableModel<FileSearchTool>
Public Class FileSearchTool
Inherits Tool
Implements IJsonModel(Of FileSearchTool), IPersistableModel(Of FileSearchTool)
Inheritance
FileSearchTool
Implements

Constructors

Name Description
FileSearchTool(IEnumerable<String>)

Initializes a new instance of FileSearchTool.

Properties

Name Description
Description

Optional user-defined description for this tool or configuration.

Filters

Gets or sets the Filters.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

<remarks> Supported types:

</remarks>

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

MaxNumResults

The maximum number of results to return. This number should be between 1 and 50 inclusive.

Name

Optional user-defined name for this tool or configuration.

RankingOptions

Ranking options for search.

VectorStoreIds

The IDs of the vector stores to search.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<FileSearchTool>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<FileSearchTool>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IJsonModel<Tool>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from Tool)
IJsonModel<Tool>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from Tool)
IPersistableModel<FileSearchTool>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<FileSearchTool>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<FileSearchTool>.Write(ModelReaderWriterOptions)
IPersistableModel<Tool>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from Tool)
IPersistableModel<Tool>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from Tool)
IPersistableModel<Tool>.Write(ModelReaderWriterOptions) (Inherited from Tool)

Applies to