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