Class BetaServerToolUseBlockParam
-
- All Implemented Interfaces:
public final class BetaServerToolUseBlockParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaServerToolUseBlockParam.BuilderA builder for BetaServerToolUseBlockParam.
public final classBetaServerToolUseBlockParam.Name
-
Method Summary
Modifier and Type Method Description final Stringid()final JsonValue_input()final BetaServerToolUseBlockParam.Namename()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 Optional<BetaCacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaServerToolUseBlockParam.Name>_name()Returns the raw JSON value of name. final JsonField<BetaCacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final Map<String, JsonValue>_additionalProperties()final BetaServerToolUseBlockParam.BuildertoBuilder()final BetaServerToolUseBlockParamvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaServerToolUseBlockParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaServerToolUseBlockParam. -
-
Method Detail
-
name
final BetaServerToolUseBlockParam.Name name()
-
_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).
-
cacheControl
final Optional<BetaCacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
_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<BetaServerToolUseBlockParam.Name> _name()
Returns the raw JSON value of name.
Unlike name, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaServerToolUseBlockParam.Builder toBuilder()
-
validate
final BetaServerToolUseBlockParam validate()
-
builder
final static BetaServerToolUseBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaServerToolUseBlockParam.
The following fields are required:
.id() .input() .name()
-
-
-
-