Class BetaMcpToolListingBlock
-
- All Implemented Interfaces:
public final class BetaMcpToolListingBlockThe tool listing the server fetched from an MCP server while producing this response. Send the assistant message back unchanged, this block included, so later requests use this listing instead of asking the MCP server again.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaMcpToolListingBlock.BuilderA builder for BetaMcpToolListingBlock.
-
Method Summary
Modifier and Type Method Description final StringmcpServerName()final List<BetaMcpTool>tools()final BetaMcpToolListingBlockParamtoParam()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<BetaMcpTool>>_tools()Returns the raw JSON value of tools. final Map<String, JsonValue>_additionalProperties()final BetaMcpToolListingBlock.BuildertoBuilder()final BetaMcpToolListingBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMcpToolListingBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaMcpToolListingBlock. -
-
Method Detail
-
mcpServerName
final String mcpServerName()
-
tools
final List<BetaMcpTool> tools()
-
toParam
final BetaMcpToolListingBlockParam toParam()
-
_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<BetaMcpTool>> _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 BetaMcpToolListingBlock.Builder toBuilder()
-
validate
final BetaMcpToolListingBlock 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 BetaMcpToolListingBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaMcpToolListingBlock.
The following fields are required:
.mcpServerName() .tools()
-
-
-
-