Package com.openai.models.realtime
Class RealtimeResponseCreateMcpTool.RequireApproval.McpToolApprovalFilter.Always
-
- All Implemented Interfaces:
public final class RealtimeResponseCreateMcpTool.RequireApproval.McpToolApprovalFilter.AlwaysA filter object to specify which tools are allowed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeResponseCreateMcpTool.RequireApproval.McpToolApprovalFilter.Always.BuilderA builder for Always.
-
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 RealtimeResponseCreateMcpTool.RequireApproval.McpToolApprovalFilter.Always.BuildertoBuilder()final RealtimeResponseCreateMcpTool.RequireApproval.McpToolApprovalFilter.Alwaysvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeResponseCreateMcpTool.RequireApproval.McpToolApprovalFilter.Always.Builderbuilder()Returns a mutable builder for constructing an instance of Always. -
-
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 RealtimeResponseCreateMcpTool.RequireApproval.McpToolApprovalFilter.Always.Builder toBuilder()
-
validate
final RealtimeResponseCreateMcpTool.RequireApproval.McpToolApprovalFilter.Always validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static RealtimeResponseCreateMcpTool.RequireApproval.McpToolApprovalFilter.Always.Builder builder()
Returns a mutable builder for constructing an instance of Always.
-
-
-
-