Class Tool.Builder
-
- All Implemented Interfaces:
public final class Tool.BuilderA builder for Tool.
-
-
Method Summary
-
-
Method Detail
-
inputSchema
final Tool.Builder inputSchema(Tool.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 Tool.Builder inputSchema(JsonField<Tool.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 Tool.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 Tool.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 Tool.Builder cacheControl(CacheControlEphemeral cacheControl)
-
cacheControl
final Tool.Builder cacheControl(Optional<CacheControlEphemeral> cacheControl)
-
cacheControl
final Tool.Builder cacheControl(JsonField<CacheControlEphemeral> cacheControl)
-
description
final Tool.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 Tool.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.
-
additionalProperties
final Tool.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Tool.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Tool.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Tool.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Tool.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-