Package com.openai.models.responses
Class Tool.Mcp.AllowedTools
-
- All Implemented Interfaces:
public final class Tool.Mcp.AllowedTools
List of allowed tool names or a filter object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
Tool.Mcp.AllowedTools.Visitor
An interface that defines how to map each variant of AllowedTools to a value of type T.
public final class
Tool.Mcp.AllowedTools.McpToolFilter
A filter object to specify which tools are allowed.
-
Method Summary
Modifier and Type Method Description final Optional<List<String>>
mcp()
A string array of allowed tool names final Optional<Tool.Mcp.AllowedTools.McpToolFilter>
mcpToolFilter()
A filter object to specify which tools are allowed. final Boolean
isMcp()
final Boolean
isMcpToolFilter()
final List<String>
asMcp()
A string array of allowed tool names final Tool.Mcp.AllowedTools.McpToolFilter
asMcpToolFilter()
A filter object to specify which tools are allowed. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(Tool.Mcp.AllowedTools.Visitor<T> visitor)
final Tool.Mcp.AllowedTools
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Tool.Mcp.AllowedTools
ofMcp(List<String> mcp)
A string array of allowed tool names final static Tool.Mcp.AllowedTools
ofMcpToolFilter(Tool.Mcp.AllowedTools.McpToolFilter mcpToolFilter)
A filter object to specify which tools are allowed. -
-
Method Detail
-
mcpToolFilter
final Optional<Tool.Mcp.AllowedTools.McpToolFilter> mcpToolFilter()
A filter object to specify which tools are allowed.
-
isMcpToolFilter
final Boolean isMcpToolFilter()
-
asMcpToolFilter
final Tool.Mcp.AllowedTools.McpToolFilter asMcpToolFilter()
A filter object to specify which tools are allowed.
-
accept
final <T extends Any> T accept(Tool.Mcp.AllowedTools.Visitor<T> visitor)
-
validate
final Tool.Mcp.AllowedTools validate()
-
ofMcp
final static Tool.Mcp.AllowedTools ofMcp(List<String> mcp)
A string array of allowed tool names
-
ofMcpToolFilter
final static Tool.Mcp.AllowedTools ofMcpToolFilter(Tool.Mcp.AllowedTools.McpToolFilter mcpToolFilter)
A filter object to specify which tools are allowed.
-
-
-
-