Class BetaCustomTool.Builder
-
- All Implemented Interfaces:
public final class BetaCustomTool.BuilderA builder for BetaCustomTool.
-
-
Method Summary
-
-
Method Detail
-
name
final BetaCustomTool.Builder name(String name)
The name of the custom tool, used to identify it in tool calls.
-
name
final BetaCustomTool.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaCustomTool.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("custom")This method is primarily for setting the field to an undocumented or not yet supported value.
-
allowedCallers
final BetaCustomTool.Builder allowedCallers(List<BetaCustomTool.AllowedCaller> allowedCallers)
The tool invocation context(s).
-
allowedCallers
final BetaCustomTool.Builder allowedCallers(Optional<List<BetaCustomTool.AllowedCaller>> allowedCallers)
Alias for calling Builder.allowedCallers with
allowedCallers.orElse(null).
-
allowedCallers
final BetaCustomTool.Builder allowedCallers(JsonField<List<BetaCustomTool.AllowedCaller>> allowedCallers)
Sets Builder.allowedCallers to an arbitrary JSON value.
You should usually call Builder.allowedCallers with a well-typed
List<AllowedCaller>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addAllowedCaller
final BetaCustomTool.Builder addAllowedCaller(BetaCustomTool.AllowedCaller allowedCaller)
Adds a single AllowedCaller to allowedCallers.
-
deferLoading
final BetaCustomTool.Builder deferLoading(Boolean deferLoading)
Whether this tool should be deferred and discovered via tool search.
-
deferLoading
final BetaCustomTool.Builder deferLoading(JsonField<Boolean> deferLoading)
Sets Builder.deferLoading to an arbitrary JSON value.
You should usually call Builder.deferLoading with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final BetaCustomTool.Builder description(String description)
Optional description of the custom tool, used to provide more context.
-
description
final BetaCustomTool.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.
-
format
final BetaCustomTool.Builder format(BetaCustomTool.Format format)
The input format for the custom tool. Default is unconstrained text.
-
format
final BetaCustomTool.Builder format(JsonField<BetaCustomTool.Format> format)
Sets Builder.format to an arbitrary JSON value.
You should usually call Builder.format with a well-typed Format value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
format
final BetaCustomTool.Builder format(BetaCustomTool.Format.Grammar grammar)
Alias for calling format with
Format.ofGrammar(grammar).
-
formatText
final BetaCustomTool.Builder formatText()
Alias for calling format with
Format.ofText().
-
additionalProperties
final BetaCustomTool.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaCustomTool.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaCustomTool.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaCustomTool.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaCustomTool.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaCustomTool build()
Returns an immutable instance of BetaCustomTool.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name()
-
-
-
-