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