Package com.openai.models.responses
Class Tool.Mcp.AllowedTools.McpToolFilter
-
- All Implemented Interfaces:
public final class Tool.Mcp.AllowedTools.McpToolFilterA filter object to specify which tools are allowed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTool.Mcp.AllowedTools.McpToolFilter.BuilderA builder for McpToolFilter.
-
Method Summary
Modifier and Type Method Description final Optional<Boolean>readOnly()Indicates whether or not a tool modifies data or is read-only. final Optional<List<String>>toolNames()List of allowed tool names. final JsonField<Boolean>_readOnly()Returns the raw JSON value of readOnly. final JsonField<List<String>>_toolNames()Returns the raw JSON value of toolNames. final Map<String, JsonValue>_additionalProperties()final Tool.Mcp.AllowedTools.McpToolFilter.BuildertoBuilder()final Tool.Mcp.AllowedTools.McpToolFiltervalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Tool.Mcp.AllowedTools.McpToolFilter.Builderbuilder()Returns a mutable builder for constructing an instance of McpToolFilter. -
-
Method Detail
-
readOnly
final Optional<Boolean> readOnly()
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.
-
_readOnly
final JsonField<Boolean> _readOnly()
Returns the raw JSON value of readOnly.
Unlike readOnly, this method doesn't throw if the JSON field has an unexpected type.
-
_toolNames
final JsonField<List<String>> _toolNames()
Returns the raw JSON value of toolNames.
Unlike toolNames, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Tool.Mcp.AllowedTools.McpToolFilter.Builder toBuilder()
-
validate
final Tool.Mcp.AllowedTools.McpToolFilter validate()
-
builder
final static Tool.Mcp.AllowedTools.McpToolFilter.Builder builder()
Returns a mutable builder for constructing an instance of McpToolFilter.
-
-
-
-