Package com.openai.models.realtime
Class RealtimeResponseCreateParams.Tool
-
- All Implemented Interfaces:
public final class RealtimeResponseCreateParams.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
RealtimeResponseCreateParams.Tool.Visitor
An 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 Boolean
isModels()
final Boolean
isRealtimeResponseCreateMcp()
final Models
asModels()
final RealtimeResponseCreateMcpTool
asRealtimeResponseCreateMcp()
Give the model access to additional tools via remote Model Context Protocol (MCP) servers. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(RealtimeResponseCreateParams.Tool.Visitor<T> visitor)
final RealtimeResponseCreateParams.Tool
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RealtimeResponseCreateParams.Tool
ofModels(Models models)
final static RealtimeResponseCreateParams.Tool
ofRealtimeResponseCreateMcp(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.
-
-
-
-