Class BetaToolUseBlockParam
-
- All Implemented Interfaces:
public final class BetaToolUseBlockParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaToolUseBlockParam.BuilderA builder for BetaToolUseBlockParam.
public final classBetaToolUseBlockParam.Inputpublic final classBetaToolUseBlockParam.CallerTool invocation directly from the model.
-
Method Summary
Modifier and Type Method Description final Stringid()final BetaToolUseBlockParam.Inputinput()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 Optional<BetaCacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final Optional<BetaToolUseBlockParam.Caller>caller()Tool invocation directly from the model. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaToolUseBlockParam.Input>_input()Returns the raw JSON value of input. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<BetaCacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final JsonField<BetaToolUseBlockParam.Caller>_caller()Returns the raw JSON value of caller. final Map<String, JsonValue>_additionalProperties()final BetaToolUseBlockParam.BuildertoBuilder()final BetaToolUseBlockParamvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaToolUseBlockParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaToolUseBlockParam. -
-
Method Detail
-
input
final BetaToolUseBlockParam.Input input()
-
_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).
-
cacheControl
final Optional<BetaCacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
caller
final Optional<BetaToolUseBlockParam.Caller> caller()
Tool invocation directly from the model.
-
_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.
-
_input
final JsonField<BetaToolUseBlockParam.Input> _input()
Returns the raw JSON value of input.
Unlike input, 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.
-
_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.
-
_caller
final JsonField<BetaToolUseBlockParam.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 BetaToolUseBlockParam.Builder toBuilder()
-
validate
final BetaToolUseBlockParam validate()
-
builder
final static BetaToolUseBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaToolUseBlockParam.
The following fields are required:
.id() .input() .name()
-
-
-
-