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.CallerTool invocation directly from the model.
-
Method Summary
Modifier and Type Method Description final BetaServerToolUseBlockParamtoParam()final Stringid()final JsonValue_input()final BetaServerToolUseBlock.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<BetaServerToolUseBlock.Caller>caller()Tool invocation directly from the model. 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
-
toParam
final BetaServerToolUseBlockParam toParam()
-
name
final BetaServerToolUseBlock.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).
-
caller
final Optional<BetaServerToolUseBlock.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.
-
_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()
-
-
-
-