ExtensionsOpenAIModelFactory.ResponsesMCPToolFilter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.