Class BetaMcpToolListingBlockParam.Builder
-
- All Implemented Interfaces:
public final class BetaMcpToolListingBlockParam.BuilderA builder for BetaMcpToolListingBlockParam.
-
-
Method Summary
-
-
Method Detail
-
mcpServerName
final BetaMcpToolListingBlockParam.Builder mcpServerName(String mcpServerName)
The name of the MCP server this listing came from, as
mcp_serversdeclares it.
-
mcpServerName
final BetaMcpToolListingBlockParam.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.
-
tools
final BetaMcpToolListingBlockParam.Builder tools(List<BetaMcpToolParam> tools)
The server's tools, exactly as the response listed them.
-
tools
final BetaMcpToolListingBlockParam.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.
-
type
final BetaMcpToolListingBlockParam.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_tool_listing")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaMcpToolListingBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addTool
final BetaMcpToolListingBlockParam.Builder addTool(BetaMcpToolParam tool)
Adds a single BetaMcpToolParam to tools.
-
addTool
final BetaMcpToolListingBlockParam.Builder addTool(BetaMcpTool tool)
Alias for calling addTool with
tool.toParam().
-
putAdditionalProperty
final BetaMcpToolListingBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMcpToolListingBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMcpToolListingBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMcpToolListingBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMcpToolListingBlockParam build()
Returns an immutable instance of BetaMcpToolListingBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.mcpServerName() .tools()
-
-
-
-