Class BetaNamespaceTool.Builder
-
- All Implemented Interfaces:
public final class BetaNamespaceTool.BuilderA builder for BetaNamespaceTool.
-
-
Method Summary
-
-
Method Detail
-
description
final BetaNamespaceTool.Builder description(String description)
A description of the namespace shown to the model.
-
description
final BetaNamespaceTool.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.
-
name
final BetaNamespaceTool.Builder name(String name)
The namespace name used in tool calls (for example,
crm).
-
name
final BetaNamespaceTool.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.
-
tools
final BetaNamespaceTool.Builder tools(List<BetaNamespaceTool.Tool> tools)
The function/custom tools available inside this namespace.
-
tools
final BetaNamespaceTool.Builder tools(JsonField<List<BetaNamespaceTool.Tool>> tools)
Sets Builder.tools to an arbitrary JSON value.
You should usually call Builder.tools with a well-typed
List<Tool>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTool
final BetaNamespaceTool.Builder addTool(BetaNamespaceTool.Tool tool)
-
addTool
final BetaNamespaceTool.Builder addTool(BetaNamespaceTool.Tool.Function function)
Alias for calling addTool with
Tool.ofFunction(function).
-
addTool
final BetaNamespaceTool.Builder addTool(BetaCustomTool custom)
Alias for calling addTool with
Tool.ofCustom(custom).
-
addFunctionTool
final BetaNamespaceTool.Builder addFunctionTool(String name)
Alias for calling addTool with the following:
Tool.Function.builder() .name(name) .build()
-
addCustomTool
final BetaNamespaceTool.Builder addCustomTool(String name)
Alias for calling addTool with the following:
BetaCustomTool.builder() .name(name) .build()
-
type
final BetaNamespaceTool.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("namespace")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaNamespaceTool.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaNamespaceTool.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaNamespaceTool.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaNamespaceTool.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaNamespaceTool.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaNamespaceTool build()
Returns an immutable instance of BetaNamespaceTool.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.description() .name() .tools()
-
-
-
-