Class BetaMcpToolResultBlock
-
- All Implemented Interfaces:
public final class BetaMcpToolResultBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaMcpToolResultBlock.BuilderA builder for BetaMcpToolResultBlock.
public final classBetaMcpToolResultBlock.Content
-
Method Summary
Modifier and Type Method Description final BetaRequestMcpToolResultBlockParamtoParam()final BetaMcpToolResultBlock.Contentcontent()final BooleanisError()final StringtoolUseId()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_result")final JsonField<BetaMcpToolResultBlock.Content>_content()Returns the raw JSON value of content. final JsonField<Boolean>_isError()Returns the raw JSON value of isError. final JsonField<String>_toolUseId()Returns the raw JSON value of toolUseId. final Map<String, JsonValue>_additionalProperties()final BetaMcpToolResultBlock.BuildertoBuilder()final BetaMcpToolResultBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMcpToolResultBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaMcpToolResultBlock. -
-
Method Detail
-
toParam
final BetaRequestMcpToolResultBlockParam toParam()
-
content
final BetaMcpToolResultBlock.Content content()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("mcp_tool_result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_content
final JsonField<BetaMcpToolResultBlock.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_isError
final JsonField<Boolean> _isError()
Returns the raw JSON value of isError.
Unlike isError, this method doesn't throw if the JSON field has an unexpected type.
-
_toolUseId
final JsonField<String> _toolUseId()
Returns the raw JSON value of toolUseId.
Unlike toolUseId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaMcpToolResultBlock.Builder toBuilder()
-
validate
final BetaMcpToolResultBlock 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 BetaMcpToolResultBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaMcpToolResultBlock.
The following fields are required:
.content() .isError() .toolUseId()
-
-
-
-