Class RealtimeSessionCreateResponse.Tool
-
- All Implemented Interfaces:
public final class RealtimeSessionCreateResponse.Tool
Give 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 interface
RealtimeSessionCreateResponse.Tool.Visitor
An interface that defines how to map each variant of Tool to a value of type T.
public final class
RealtimeSessionCreateResponse.Tool.McpTool
Give the model access to additional tools via remote Model Context Protocol (MCP) servers. Learn more about MCP.
-
Method Summary
-
-
Method Detail
-
realtimeFunction
final Optional<RealtimeFunctionTool> realtimeFunction()
-
mcp
final Optional<RealtimeSessionCreateResponse.Tool.McpTool> mcp()
Give the model access to additional tools via remote Model Context Protocol (MCP) servers. Learn more about MCP.
-
isRealtimeFunction
final Boolean isRealtimeFunction()
-
asRealtimeFunction
final RealtimeFunctionTool asRealtimeFunction()
-
asMcp
final RealtimeSessionCreateResponse.Tool.McpTool asMcp()
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(RealtimeSessionCreateResponse.Tool.Visitor<T> visitor)
-
validate
final RealtimeSessionCreateResponse.Tool validate()
-
ofRealtimeFunction
final static RealtimeSessionCreateResponse.Tool ofRealtimeFunction(RealtimeFunctionTool realtimeFunction)
-
ofMcp
final static RealtimeSessionCreateResponse.Tool ofMcp(RealtimeSessionCreateResponse.Tool.McpTool mcp)
Give the model access to additional tools via remote Model Context Protocol (MCP) servers. Learn more about MCP.
-
-
-
-