Class ServerToolUseBlock
-
- All Implemented Interfaces:
public final class ServerToolUseBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classServerToolUseBlock.BuilderA builder for ServerToolUseBlock.
public final classServerToolUseBlock.CallerTool invocation directly from the model.
public final classServerToolUseBlock.Inputpublic final classServerToolUseBlock.Name
-
Method Summary
Modifier and Type Method Description final ServerToolUseBlockParamtoParam()final Stringid()final JsonValue_input()final ServerToolUseBlock.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 JsonField<String>_id()Returns the raw JSON value of id. final ServerToolUseBlock.Callercaller()final JsonField<ServerToolUseBlock.Name>_name()Returns the raw JSON value of name. final JsonField<ServerToolUseBlock.Caller>_caller()Returns the raw JSON value of caller. final Map<String, JsonValue>_additionalProperties()final ServerToolUseBlock.BuildertoBuilder()final ServerToolUseBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ServerToolUseBlock.Builderbuilder()Returns a mutable builder for constructing an instance of ServerToolUseBlock. -
-
Method Detail
-
toParam
final ServerToolUseBlockParam toParam()
-
name
final ServerToolUseBlock.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).
-
_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 ServerToolUseBlock.Caller caller()
-
_name
final JsonField<ServerToolUseBlock.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<ServerToolUseBlock.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 ServerToolUseBlock.Builder toBuilder()
-
validate
final ServerToolUseBlock 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 ServerToolUseBlock.Builder builder()
Returns a mutable builder for constructing an instance of ServerToolUseBlock.
The following fields are required:
.id() .caller() .input() .name()
-
-
-
-