Package com.openai.models.realtime
Class RealtimeResponseCreateParams.Tool
-
- All Implemented Interfaces:
public final class RealtimeResponseCreateParams.ToolGive the model access to additional tools via remote Model Context Protocol (MCP) servers. Learn more about MCP.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRealtimeResponseCreateParams.Tool.VisitorAn interface that defines how to map each variant of Tool to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<Models>models()final Optional<RealtimeResponseCreateMcpTool>realtimeResponseCreateMcp()Give the model access to additional tools via remote Model Context Protocol (MCP) servers. final BooleanisModels()final BooleanisRealtimeResponseCreateMcp()final ModelsasModels()final RealtimeResponseCreateMcpToolasRealtimeResponseCreateMcp()Give the model access to additional tools via remote Model Context Protocol (MCP) servers. final Optional<JsonValue>_json()final <T extends Any> Taccept(RealtimeResponseCreateParams.Tool.Visitor<T> visitor)final RealtimeResponseCreateParams.Toolvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeResponseCreateParams.ToolofModels(Models models)final static RealtimeResponseCreateParams.ToolofRealtimeResponseCreateMcp(RealtimeResponseCreateMcpTool realtimeResponseCreateMcp)Give the model access to additional tools via remote Model Context Protocol (MCP) servers. -
-
Method Detail
-
realtimeResponseCreateMcp
final Optional<RealtimeResponseCreateMcpTool> realtimeResponseCreateMcp()
Give the model access to additional tools via remote Model Context Protocol (MCP) servers. Learn more about MCP.
-
isRealtimeResponseCreateMcp
final Boolean isRealtimeResponseCreateMcp()
-
asRealtimeResponseCreateMcp
final RealtimeResponseCreateMcpTool asRealtimeResponseCreateMcp()
Give the model access to additional tools via remote Model Context Protocol (MCP) servers. Learn more about MCP.
-
accept
final <T extends Any> T accept(RealtimeResponseCreateParams.Tool.Visitor<T> visitor)
-
validate
final RealtimeResponseCreateParams.Tool validate()
-
ofModels
final static RealtimeResponseCreateParams.Tool ofModels(Models models)
-
ofRealtimeResponseCreateMcp
final static RealtimeResponseCreateParams.Tool ofRealtimeResponseCreateMcp(RealtimeResponseCreateMcpTool realtimeResponseCreateMcp)
Give the model access to additional tools via remote Model Context Protocol (MCP) servers. Learn more about MCP.
-
-
-
-