Class BetaTool.Builder
-
- All Implemented Interfaces:
public final class BetaTool.BuilderA builder for BetaTool.
-
-
Method Summary
-
-
Method Detail
-
inputSchema
final BetaTool.Builder inputSchema(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.
-
inputSchema
final BetaTool.Builder inputSchema(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 BetaTool.Builder name(String name)
Name of the tool.
This is how the tool will be called by the model and in tool_use blocks.
-
name
final BetaTool.Builder name(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 BetaTool.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
-
cacheControl
final BetaTool.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
-
cacheControl
final BetaTool.Builder cacheControl(JsonField<BetaCacheControlEphemeral> cacheControl)
-
description
final BetaTool.Builder description(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.
-
description
final BetaTool.Builder description(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 BetaTool.Builder type(BetaTool.Type type)
-
type
final BetaTool.Builder type(Optional<BetaTool.Type> type)
-
type
final BetaTool.Builder type(JsonField<BetaTool.Type> type)
-
additionalProperties
final BetaTool.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaTool.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaTool.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaTool.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaTool.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-