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