Class BetaToolResultBlockParam
-
- All Implemented Interfaces:
public final class BetaToolResultBlockParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaToolResultBlockParam.BuilderA builder for BetaToolResultBlockParam.
public final classBetaToolResultBlockParam.Content
-
Method Summary
Modifier and Type Method Description final StringtoolUseId()final Optional<BetaCacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final Optional<BetaToolResultBlockParam.Content>content()final Optional<Boolean>isError()final Optional<String>toolsetName()For a toolset member tool_result, the toolset family of the paired tool_use. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("tool_result")final JsonField<String>_toolUseId()Returns the raw JSON value of toolUseId. final JsonField<BetaCacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final JsonField<BetaToolResultBlockParam.Content>_content()Returns the raw JSON value of content. final JsonField<Boolean>_isError()Returns the raw JSON value of isError. final JsonField<String>_toolsetName()Returns the raw JSON value of toolsetName. final Map<String, JsonValue>_additionalProperties()final BetaToolResultBlockParam.BuildertoBuilder()final BetaToolResultBlockParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaToolResultBlockParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaToolResultBlockParam. final static BetaToolResultBlockParamof(String toolUseId)Returns an immutable instance of BetaToolResultBlockParam with the required toolUseId set to the given value. -
-
Method Detail
-
cacheControl
final Optional<BetaCacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
content
final Optional<BetaToolResultBlockParam.Content> content()
-
toolsetName
final Optional<String> toolsetName()
For a toolset member tool_result, the toolset family of the paired tool_use.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("tool_result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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<BetaToolResultBlockParam.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.
-
_toolsetName
final JsonField<String> _toolsetName()
Returns the raw JSON value of toolsetName.
Unlike toolsetName, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaToolResultBlockParam.Builder toBuilder()
-
validate
final BetaToolResultBlockParam 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 BetaToolResultBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaToolResultBlockParam.
The following fields are required:
.toolUseId()
-
of
final static BetaToolResultBlockParam of(String toolUseId)
Returns an immutable instance of BetaToolResultBlockParam with the required toolUseId set to the given value.
-
-
-
-