Class ToolSearchTool.Builder
-
- All Implemented Interfaces:
public final class ToolSearchTool.BuilderA builder for ToolSearchTool.
-
-
Method Summary
-
-
Method Detail
-
type
final ToolSearchTool.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("tool_search")This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final ToolSearchTool.Builder description(String description)
Description shown to the model for a client-executed tool search tool.
-
description
final ToolSearchTool.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final ToolSearchTool.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
execution
final ToolSearchTool.Builder execution(ToolSearchTool.Execution execution)
Whether tool search is executed by the server or by the client.
-
execution
final ToolSearchTool.Builder execution(JsonField<ToolSearchTool.Execution> execution)
Sets Builder.execution to an arbitrary JSON value.
You should usually call Builder.execution with a well-typed Execution value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
parameters
final ToolSearchTool.Builder parameters(JsonValue parameters)
Parameter schema for a client-executed tool search tool.
-
additionalProperties
final ToolSearchTool.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ToolSearchTool.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ToolSearchTool.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ToolSearchTool.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ToolSearchTool.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ToolSearchTool build()
Returns an immutable instance of ToolSearchTool.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-