Class BetaRequestMcpToolResultBlockParam
-
- All Implemented Interfaces:
public final class BetaRequestMcpToolResultBlockParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaRequestMcpToolResultBlockParam.BuilderA builder for BetaRequestMcpToolResultBlockParam.
public final classBetaRequestMcpToolResultBlockParam.Content
-
Method Summary
-
-
Method Detail
-
_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).
-
cacheControl
final Optional<BetaCacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
content
final Optional<BetaRequestMcpToolResultBlockParam.Content> content()
-
_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.
-
_cacheControl
final JsonField<BetaCacheControlEphemeral> _cacheControl()
Returns the raw JSON value of cacheControl.
Unlike cacheControl, this method doesn't throw if the JSON field has an unexpected type.
-
_content
final JsonField<BetaRequestMcpToolResultBlockParam.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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaRequestMcpToolResultBlockParam.Builder toBuilder()
-
validate
final BetaRequestMcpToolResultBlockParam validate()
-
builder
final static BetaRequestMcpToolResultBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaRequestMcpToolResultBlockParam.
The following fields are required:
.toolUseId()
-
-
-
-