Class BetaToolUseBlock
-
- All Implemented Interfaces:
public final class BetaToolUseBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaToolUseBlock.BuilderA builder for BetaToolUseBlock.
-
Method Summary
Modifier and Type Method Description final BetaToolUseBlockParamtoParam()final Stringid()final JsonValue_input()final Stringname()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("tool_use")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalProperties()final BetaToolUseBlock.BuildertoBuilder()final BetaToolUseBlockvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaToolUseBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaToolUseBlock. -
-
Method Detail
-
toParam
final BetaToolUseBlockParam toParam()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("tool_use")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaToolUseBlock.Builder toBuilder()
-
validate
final BetaToolUseBlock validate()
-
builder
final static BetaToolUseBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaToolUseBlock.
The following fields are required:
.id() .input() .name()
-
-
-
-