ExtensionsOpenAIModelFactory.ResponsesMCPToolFilter Method

Definition

MCP tool filter.

public static Azure.AI.Extensions.OpenAI.ResponsesMCPToolFilter ResponsesMCPToolFilter(System.Collections.Generic.IEnumerable<string> toolNames = default, bool? isReadOnly = default);
static member ResponsesMCPToolFilter : seq<string> * Nullable<bool> -> Azure.AI.Extensions.OpenAI.ResponsesMCPToolFilter
Public Shared Function ResponsesMCPToolFilter (Optional toolNames As IEnumerable(Of String) = Nothing, Optional isReadOnly As Nullable(Of Boolean) = Nothing) As ResponsesMCPToolFilter

Parameters

toolNames
IEnumerable<String>

List of allowed tool names.

isReadOnly
Nullable<Boolean>

Indicates whether or not a tool modifies data or is read-only. If an MCP server is annotated with readOnlyHint, it will match this filter.

Returns

A new ResponsesMCPToolFilter instance for mocking.

Applies to