Class ResponseOutputItem.McpListTools.Builder
-
- All Implemented Interfaces:
public final class ResponseOutputItem.McpListTools.Builder
A builder for McpListTools.
-
-
Method Summary
-
-
Method Detail
-
id
final ResponseOutputItem.McpListTools.Builder id(String id)
The unique ID of the list.
-
id
final ResponseOutputItem.McpListTools.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
serverLabel
final ResponseOutputItem.McpListTools.Builder serverLabel(String serverLabel)
The label of the MCP server.
-
serverLabel
final ResponseOutputItem.McpListTools.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.
-
tools
final ResponseOutputItem.McpListTools.Builder tools(List<ResponseOutputItem.McpListTools.Tool> tools)
The tools available on the server.
-
tools
final ResponseOutputItem.McpListTools.Builder tools(JsonField<List<ResponseOutputItem.McpListTools.Tool>> tools)
Sets Builder.tools to an arbitrary JSON value.
You should usually call Builder.tools with a well-typed
List<Tool>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTool
final ResponseOutputItem.McpListTools.Builder addTool(ResponseOutputItem.McpListTools.Tool tool)
-
type
final ResponseOutputItem.McpListTools.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_list_tools")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
error
final ResponseOutputItem.McpListTools.Builder error(String error)
Error message if the server could not list tools.
-
error
final ResponseOutputItem.McpListTools.Builder error(Optional<String> error)
Alias for calling Builder.error with
error.orElse(null)
.
-
error
final ResponseOutputItem.McpListTools.Builder error(JsonField<String> error)
Sets Builder.error to an arbitrary JSON value.
You should usually call Builder.error 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 ResponseOutputItem.McpListTools.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseOutputItem.McpListTools.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseOutputItem.McpListTools.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseOutputItem.McpListTools.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseOutputItem.McpListTools.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseOutputItem.McpListTools build()
Returns an immutable instance of McpListTools.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .serverLabel() .tools()
-
-
-
-