FileSearchToolResource Methods
ClassMethods1 member
A Foundry tool resource that enables an agent to search uploaded files and proprietary documents using vector search.
ToAgentToolAsync(CancellationToken)Section titled ToAgentToolAsync(CancellationToken)overrideTask<ResponseTool> Converts this tool definition into the SDK
Responses.ResponseTool representation. public sealed class FileSearchToolResource{ public override Task<ResponseTool> ToAgentToolAsync( CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
cancellationTokenCancellationTokenoptionalA cancellation token.Returns
Task<ResponseTool>The SDK tool representation.Remarks
This method is called at deploy time, after infrastructure provisioning is complete. Tools that depend on provisioned resources (e.g., Azure AI Search connections) can safely resolve their connection identifiers at this point.