Class RealtimeSessionCreateResponse.Tool.McpTool.Builder
-
- All Implemented Interfaces:
public final class RealtimeSessionCreateResponse.Tool.McpTool.Builder
A builder for McpTool.
-
-
Method Summary
-
-
Method Detail
-
serverLabel
final RealtimeSessionCreateResponse.Tool.McpTool.Builder serverLabel(String serverLabel)
A label for this MCP server, used to identify it in tool calls.
-
serverLabel
final RealtimeSessionCreateResponse.Tool.McpTool.Builder serverLabel(JsonField<String> serverLabel)
Sets Builder.serverLabel to an arbitrary JSON value.
You should usually call Builder.serverLabel with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final RealtimeSessionCreateResponse.Tool.McpTool.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("mcp")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
allowedTools
final RealtimeSessionCreateResponse.Tool.McpTool.Builder allowedTools(RealtimeSessionCreateResponse.Tool.McpTool.AllowedTools allowedTools)
List of allowed tool names or a filter object.
-
allowedTools
final RealtimeSessionCreateResponse.Tool.McpTool.Builder allowedTools(Optional<RealtimeSessionCreateResponse.Tool.McpTool.AllowedTools> allowedTools)
Alias for calling Builder.allowedTools with
allowedTools.orElse(null)
.
-
allowedTools
final RealtimeSessionCreateResponse.Tool.McpTool.Builder allowedTools(JsonField<RealtimeSessionCreateResponse.Tool.McpTool.AllowedTools> allowedTools)
Sets Builder.allowedTools to an arbitrary JSON value.
You should usually call Builder.allowedTools with a well-typed AllowedTools value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
allowedTools
final RealtimeSessionCreateResponse.Tool.McpTool.Builder allowedTools(RealtimeSessionCreateResponse.Tool.McpTool.AllowedTools.McpToolFilter mcpToolFilter)
Alias for calling allowedTools with
AllowedTools.ofMcpToolFilter(mcpToolFilter)
.
-
allowedToolsOfMcp
final RealtimeSessionCreateResponse.Tool.McpTool.Builder allowedToolsOfMcp(List<String> mcp)
Alias for calling allowedTools with
AllowedTools.ofMcp(mcp)
.
-
authorization
final RealtimeSessionCreateResponse.Tool.McpTool.Builder authorization(String authorization)
An OAuth access token that can be used with a remote MCP server, either with a custom MCP server URL or a service connector. Your application must handle the OAuth authorization flow and provide the token here.
-
authorization
final RealtimeSessionCreateResponse.Tool.McpTool.Builder authorization(JsonField<String> authorization)
Sets Builder.authorization to an arbitrary JSON value.
You should usually call Builder.authorization with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
connectorId
final RealtimeSessionCreateResponse.Tool.McpTool.Builder connectorId(RealtimeSessionCreateResponse.Tool.McpTool.ConnectorId connectorId)
Identifier for service connectors, like those available in ChatGPT. One of
server_url
orconnector_id
must be provided. Learn more about service connectors here.Currently supported
connector_id
values are:Dropbox:
connector_dropbox
Gmail:
connector_gmail
Google Calendar:
connector_googlecalendar
Google Drive:
connector_googledrive
Microsoft Teams:
connector_microsoftteams
Outlook Calendar:
connector_outlookcalendar
Outlook Email:
connector_outlookemail
SharePoint:
connector_sharepoint
-
connectorId
final RealtimeSessionCreateResponse.Tool.McpTool.Builder connectorId(JsonField<RealtimeSessionCreateResponse.Tool.McpTool.ConnectorId> connectorId)
Sets Builder.connectorId to an arbitrary JSON value.
You should usually call Builder.connectorId with a well-typed ConnectorId value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
headers
final RealtimeSessionCreateResponse.Tool.McpTool.Builder headers(RealtimeSessionCreateResponse.Tool.McpTool.Headers headers)
Optional HTTP headers to send to the MCP server. Use for authentication or other purposes.
-
headers
final RealtimeSessionCreateResponse.Tool.McpTool.Builder headers(Optional<RealtimeSessionCreateResponse.Tool.McpTool.Headers> headers)
Alias for calling Builder.headers with
headers.orElse(null)
.
-
headers
final RealtimeSessionCreateResponse.Tool.McpTool.Builder headers(JsonField<RealtimeSessionCreateResponse.Tool.McpTool.Headers> headers)
Sets Builder.headers to an arbitrary JSON value.
You should usually call Builder.headers with a well-typed Headers value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
requireApproval
final RealtimeSessionCreateResponse.Tool.McpTool.Builder requireApproval(RealtimeSessionCreateResponse.Tool.McpTool.RequireApproval requireApproval)
Specify which of the MCP server's tools require approval.
-
requireApproval
final RealtimeSessionCreateResponse.Tool.McpTool.Builder requireApproval(Optional<RealtimeSessionCreateResponse.Tool.McpTool.RequireApproval> requireApproval)
Alias for calling Builder.requireApproval with
requireApproval.orElse(null)
.
-
requireApproval
final RealtimeSessionCreateResponse.Tool.McpTool.Builder requireApproval(JsonField<RealtimeSessionCreateResponse.Tool.McpTool.RequireApproval> requireApproval)
Sets Builder.requireApproval to an arbitrary JSON value.
You should usually call Builder.requireApproval with a well-typed RequireApproval value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
requireApproval
final RealtimeSessionCreateResponse.Tool.McpTool.Builder requireApproval(RealtimeSessionCreateResponse.Tool.McpTool.RequireApproval.McpToolApprovalFilter mcpToolApprovalFilter)
Alias for calling requireApproval with
RequireApproval.ofMcpToolApprovalFilter(mcpToolApprovalFilter)
.
-
requireApproval
final RealtimeSessionCreateResponse.Tool.McpTool.Builder requireApproval(RealtimeSessionCreateResponse.Tool.McpTool.RequireApproval.McpToolApprovalSetting mcpToolApprovalSetting)
Alias for calling requireApproval with
RequireApproval.ofMcpToolApprovalSetting(mcpToolApprovalSetting)
.
-
serverDescription
final RealtimeSessionCreateResponse.Tool.McpTool.Builder serverDescription(String serverDescription)
Optional description of the MCP server, used to provide more context.
-
serverDescription
final RealtimeSessionCreateResponse.Tool.McpTool.Builder serverDescription(JsonField<String> serverDescription)
Sets Builder.serverDescription to an arbitrary JSON value.
You should usually call Builder.serverDescription with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
serverUrl
final RealtimeSessionCreateResponse.Tool.McpTool.Builder serverUrl(String serverUrl)
The URL for the MCP server. One of
server_url
orconnector_id
must be provided.
-
serverUrl
final RealtimeSessionCreateResponse.Tool.McpTool.Builder serverUrl(JsonField<String> serverUrl)
Sets Builder.serverUrl to an arbitrary JSON value.
You should usually call Builder.serverUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeSessionCreateResponse.Tool.McpTool.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeSessionCreateResponse.Tool.McpTool.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeSessionCreateResponse.Tool.McpTool.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeSessionCreateResponse.Tool.McpTool.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeSessionCreateResponse.Tool.McpTool.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeSessionCreateResponse.Tool.McpTool build()
Returns an immutable instance of McpTool.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.serverLabel()
-
-
-
-