Class BetaMcpToolListingBlockParam
-
- All Implemented Interfaces:
public final class BetaMcpToolListingBlockParamThe tool listing an MCP server returned while an earlier response was produced, as that response carried it. Send the assistant message back unchanged, this block included, and the server uses this listing for the matching
mcp_toolsetinstead of asking the MCP server again.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaMcpToolListingBlockParam.BuilderA builder for BetaMcpToolListingBlockParam.
-
Method Summary
Modifier and Type Method Description final StringmcpServerName()The name of the MCP server this listing came from, as mcp_serversdeclares it.final List<BetaMcpToolParam>tools()The server's tools, exactly as the response listed them. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("mcp_tool_listing")final JsonField<String>_mcpServerName()Returns the raw JSON value of mcpServerName. final JsonField<List<BetaMcpToolParam>>_tools()Returns the raw JSON value of tools. final Map<String, JsonValue>_additionalProperties()final BetaMcpToolListingBlockParam.BuildertoBuilder()final BetaMcpToolListingBlockParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMcpToolListingBlockParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaMcpToolListingBlockParam. -
-
Method Detail
-
mcpServerName
final String mcpServerName()
The name of the MCP server this listing came from, as
mcp_serversdeclares it.
-
tools
final List<BetaMcpToolParam> tools()
The server's tools, exactly as the response listed them.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("mcp_tool_listing")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_mcpServerName
final JsonField<String> _mcpServerName()
Returns the raw JSON value of mcpServerName.
Unlike mcpServerName, this method doesn't throw if the JSON field has an unexpected type.
-
_tools
final JsonField<List<BetaMcpToolParam>> _tools()
Returns the raw JSON value of tools.
Unlike tools, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaMcpToolListingBlockParam.Builder toBuilder()
-
validate
final BetaMcpToolListingBlockParam validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaMcpToolListingBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaMcpToolListingBlockParam.
The following fields are required:
.mcpServerName() .tools()
-
-
-
-