Class BetaMcpToolset.Builder
-
- All Implemented Interfaces:
public final class BetaMcpToolset.BuilderA builder for BetaMcpToolset.
-
-
Method Summary
Modifier and Type Method Description final BetaMcpToolset.BuildermcpServerName(String mcpServerName)Name of the MCP server to configure tools for final BetaMcpToolset.BuildermcpServerName(JsonField<String> mcpServerName)Sets Builder.mcpServerName to an arbitrary JSON value. final BetaMcpToolset.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaMcpToolset.BuildercacheControl(BetaCacheControlEphemeral cacheControl)Create a cache control breakpoint at this content block. final BetaMcpToolset.BuildercacheControl(Optional<BetaCacheControlEphemeral> cacheControl)Alias for calling Builder.cacheControl with cacheControl.orElse(null).final BetaMcpToolset.BuildercacheControl(JsonField<BetaCacheControlEphemeral> cacheControl)Sets Builder.cacheControl to an arbitrary JSON value. final BetaMcpToolset.Builderconfigs(BetaMcpToolset.Configs configs)Configuration overrides for specific tools, keyed by tool name final BetaMcpToolset.Builderconfigs(Optional<BetaMcpToolset.Configs> configs)Alias for calling Builder.configs with configs.orElse(null).final BetaMcpToolset.Builderconfigs(JsonField<BetaMcpToolset.Configs> configs)Sets Builder.configs to an arbitrary JSON value. final BetaMcpToolset.BuilderdefaultConfig(BetaMcpToolDefaultConfig defaultConfig)Default configuration applied to all tools from this server final BetaMcpToolset.BuilderdefaultConfig(JsonField<BetaMcpToolDefaultConfig> defaultConfig)Sets Builder.defaultConfig to an arbitrary JSON value. final BetaMcpToolset.Buildertools(List<BetaMcpToolParam> tools)The server's tool listing, pinned: when present, the server is not asked for its tools before sampling and exactly these entries, with default_configandconfigsapplied, are the toolset's tools.final BetaMcpToolset.Buildertools(Optional<List<BetaMcpToolParam>> tools)Alias for calling Builder.tools with tools.orElse(null).final BetaMcpToolset.Buildertools(JsonField<List<BetaMcpToolParam>> tools)Sets Builder.tools to an arbitrary JSON value. final BetaMcpToolset.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaMcpToolset.BuilderaddTool(BetaMcpToolParam tool)Adds a single BetaMcpToolParam to tools. final BetaMcpToolset.BuilderaddTool(BetaMcpTool tool)Alias for calling addTool with tool.toParam().final BetaMcpToolset.BuilderputAdditionalProperty(String key, JsonValue value)final BetaMcpToolset.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaMcpToolset.BuilderremoveAdditionalProperty(String key)final BetaMcpToolset.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaMcpToolsetbuild()Returns an immutable instance of BetaMcpToolset. -
-
Method Detail
-
mcpServerName
final BetaMcpToolset.Builder mcpServerName(String mcpServerName)
Name of the MCP server to configure tools for
-
mcpServerName
final BetaMcpToolset.Builder mcpServerName(JsonField<String> mcpServerName)
Sets Builder.mcpServerName to an arbitrary JSON value.
You should usually call Builder.mcpServerName 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 BetaMcpToolset.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_toolset")This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheControl
final BetaMcpToolset.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaMcpToolset.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaMcpToolset.Builder cacheControl(JsonField<BetaCacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed BetaCacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
configs
final BetaMcpToolset.Builder configs(BetaMcpToolset.Configs configs)
Configuration overrides for specific tools, keyed by tool name
-
configs
final BetaMcpToolset.Builder configs(Optional<BetaMcpToolset.Configs> configs)
Alias for calling Builder.configs with
configs.orElse(null).
-
configs
final BetaMcpToolset.Builder configs(JsonField<BetaMcpToolset.Configs> configs)
Sets Builder.configs to an arbitrary JSON value.
You should usually call Builder.configs with a well-typed Configs value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
defaultConfig
final BetaMcpToolset.Builder defaultConfig(BetaMcpToolDefaultConfig defaultConfig)
Default configuration applied to all tools from this server
-
defaultConfig
final BetaMcpToolset.Builder defaultConfig(JsonField<BetaMcpToolDefaultConfig> defaultConfig)
Sets Builder.defaultConfig to an arbitrary JSON value.
You should usually call Builder.defaultConfig with a well-typed BetaMcpToolDefaultConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tools
final BetaMcpToolset.Builder tools(List<BetaMcpToolParam> tools)
The server's tool listing, pinned: when present, the server is not asked for its tools before sampling and exactly these entries, with
default_configandconfigsapplied, are the toolset's tools. Copy it from themcp_tool_listingblock of an earlier response.
-
tools
final BetaMcpToolset.Builder tools(Optional<List<BetaMcpToolParam>> tools)
Alias for calling Builder.tools with
tools.orElse(null).
-
tools
final BetaMcpToolset.Builder tools(JsonField<List<BetaMcpToolParam>> tools)
Sets Builder.tools to an arbitrary JSON value.
You should usually call Builder.tools with a well-typed
List<BetaMcpToolParam>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaMcpToolset.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addTool
final BetaMcpToolset.Builder addTool(BetaMcpToolParam tool)
Adds a single BetaMcpToolParam to tools.
-
addTool
final BetaMcpToolset.Builder addTool(BetaMcpTool tool)
Alias for calling addTool with
tool.toParam().
-
putAdditionalProperty
final BetaMcpToolset.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMcpToolset.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMcpToolset.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMcpToolset.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMcpToolset build()
Returns an immutable instance of BetaMcpToolset.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.mcpServerName()
-
-
-
-