Class BetaTool
-
- All Implemented Interfaces:
public final class BetaTool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaTool.BuilderA builder for BetaTool.
public final classBetaTool.InputSchemaJSON schema for this tool's input.
This defines the shape of the
inputthat your tool accepts and that the model will produce.public final classBetaTool.Type
-
Method Summary
Modifier and Type Method Description final BetaTool.InputSchemainputSchema()JSON schema for this tool's input. final Stringname()Name of the tool. final Optional<BetaCacheControlEphemeral>cacheControl()final Optional<String>description()Description of what this tool does. final Optional<BetaTool.Type>type()final JsonField<BetaTool.InputSchema>_inputSchema()JSON schema for this tool's input. final JsonField<String>_name()Name of the tool. final JsonField<BetaCacheControlEphemeral>_cacheControl()final JsonField<String>_description()Description of what this tool does. final JsonField<BetaTool.Type>_type()final Map<String, JsonValue>_additionalProperties()final BetaToolvalidate()final BetaTool.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaTool.Builderbuilder()-
-
Method Detail
-
inputSchema
final BetaTool.InputSchema inputSchema()
JSON schema for this tool's input.
This defines the shape of the
inputthat your tool accepts and that the model will produce.
-
name
final String name()
Name of the tool.
This is how the tool will be called by the model and in tool_use blocks.
-
cacheControl
final Optional<BetaCacheControlEphemeral> cacheControl()
-
description
final Optional<String> description()
Description of what this tool does.
Tool descriptions should be as detailed as possible. The more information that the model has about what the tool is and how to use it, the better it will perform. You can use natural language descriptions to reinforce important aspects of the tool input JSON schema.
-
type
final Optional<BetaTool.Type> type()
-
_inputSchema
final JsonField<BetaTool.InputSchema> _inputSchema()
JSON schema for this tool's input.
This defines the shape of the
inputthat your tool accepts and that the model will produce.
-
_name
final JsonField<String> _name()
Name of the tool.
This is how the tool will be called by the model and in tool_use blocks.
-
_cacheControl
final JsonField<BetaCacheControlEphemeral> _cacheControl()
-
_description
final JsonField<String> _description()
Description of what this tool does.
Tool descriptions should be as detailed as possible. The more information that the model has about what the tool is and how to use it, the better it will perform. You can use natural language descriptions to reinforce important aspects of the tool input JSON schema.
-
_type
final JsonField<BetaTool.Type> _type()
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaTool.Builder toBuilder()
-
builder
final static BetaTool.Builder builder()
-
-
-
-