Class ToolUseBlock
-
- All Implemented Interfaces:
public final class ToolUseBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classToolUseBlock.BuilderA builder for ToolUseBlock.
public final classToolUseBlock.Callerpublic final classToolUseBlock.Input
-
Method Summary
Modifier and Type Method Description final Stringid()final ToolUseBlock.Callercaller()final Stringname()final Optional<String>toolsetName()For a toolset member tool_use, the toolset family. final ToolUseBlockParamtoParam()final JsonValue_input()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<ToolUseBlock.Caller>_caller()Returns the raw JSON value of caller. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_toolsetName()Returns the raw JSON value of toolsetName. final Map<String, JsonValue>_additionalProperties()final ToolUseBlock.BuildertoBuilder()final ToolUseBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ToolUseBlock.Builderbuilder()Returns a mutable builder for constructing an instance of ToolUseBlock. -
-
Method Detail
-
caller
final ToolUseBlock.Caller caller()
-
toolsetName
final Optional<String> toolsetName()
For a toolset member tool_use, the toolset family.
-
toParam
final ToolUseBlockParam 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.
-
_caller
final JsonField<ToolUseBlock.Caller> _caller()
Returns the raw JSON value of caller.
Unlike caller, 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.
-
_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 ToolUseBlock.Builder toBuilder()
-
validate
final ToolUseBlock 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 ToolUseBlock.Builder builder()
Returns a mutable builder for constructing an instance of ToolUseBlock.
The following fields are required:
.id() .caller() .input() .name()
-
-
-
-