Class BetaServerToolUseBlock
-
- All Implemented Interfaces:
public final class BetaServerToolUseBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaServerToolUseBlock.BuilderA builder for BetaServerToolUseBlock.
public final classBetaServerToolUseBlock.Inputpublic final classBetaServerToolUseBlock.Namepublic final classBetaServerToolUseBlock.Caller
-
Method Summary
Modifier and Type Method Description final Stringid()final BetaServerToolUseBlock.Namename()final Optional<BetaServerToolUseBlock.Caller>caller()final BetaServerToolUseBlockParamtoParam()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("server_tool_use")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaServerToolUseBlock.Name>_name()Returns the raw JSON value of name. final JsonField<BetaServerToolUseBlock.Caller>_caller()Returns the raw JSON value of caller. final Map<String, JsonValue>_additionalProperties()final BetaServerToolUseBlock.BuildertoBuilder()final BetaServerToolUseBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaServerToolUseBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaServerToolUseBlock. -
-
Method Detail
-
name
final BetaServerToolUseBlock.Name name()
-
caller
final Optional<BetaServerToolUseBlock.Caller> caller()
-
toParam
final BetaServerToolUseBlockParam toParam()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("server_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<BetaServerToolUseBlock.Name> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_caller
final JsonField<BetaServerToolUseBlock.Caller> _caller()
Returns the raw JSON value of caller.
Unlike caller, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaServerToolUseBlock.Builder toBuilder()
-
validate
final BetaServerToolUseBlock 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 BetaServerToolUseBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaServerToolUseBlock.
The following fields are required:
.id() .input() .name()
-
-
-
-