Class NamespaceTool.Builder
-
- All Implemented Interfaces:
public final class NamespaceTool.BuilderA builder for NamespaceTool.
-
-
Method Summary
Modifier and Type Method Description final NamespaceTool.Builderdescription(String description)A description of the namespace shown to the model. final NamespaceTool.Builderdescription(JsonField<String> description)Sets Builder.description to an arbitrary JSON value. final NamespaceTool.Buildername(String name)The namespace name used in tool calls (for example, crm).final NamespaceTool.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final NamespaceTool.Buildertools(List<NamespaceTool.Tool> tools)The function/custom tools available inside this namespace. final NamespaceTool.Buildertools(JsonField<List<NamespaceTool.Tool>> tools)Sets Builder.tools to an arbitrary JSON value. final NamespaceTool.BuilderaddTool(NamespaceTool.Tool tool)Adds a single Tool to tools. final NamespaceTool.BuilderaddTool(NamespaceTool.Tool.Function function)Alias for calling addTool with Tool.ofFunction(function).final NamespaceTool.BuilderaddTool(CustomTool custom)Alias for calling addTool with Tool.ofCustom(custom).final NamespaceTool.BuilderaddFunctionTool(String name)Alias for calling addTool with the following: Tool.Function.builder() .name(name) .build()final NamespaceTool.BuilderaddCustomTool(String name)Alias for calling addTool with the following: CustomTool.builder() .name(name) .build()final NamespaceTool.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final NamespaceTool.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final NamespaceTool.BuilderputAdditionalProperty(String key, JsonValue value)final NamespaceTool.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final NamespaceTool.BuilderremoveAdditionalProperty(String key)final NamespaceTool.BuilderremoveAllAdditionalProperties(Set<String> keys)final NamespaceToolbuild()Returns an immutable instance of NamespaceTool. -
-
Method Detail
-
description
final NamespaceTool.Builder description(String description)
A description of the namespace shown to the model.
-
description
final NamespaceTool.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 NamespaceTool.Builder name(String name)
The namespace name used in tool calls (for example,
crm).
-
name
final NamespaceTool.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 NamespaceTool.Builder tools(List<NamespaceTool.Tool> tools)
The function/custom tools available inside this namespace.
-
tools
final NamespaceTool.Builder tools(JsonField<List<NamespaceTool.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 NamespaceTool.Builder addTool(NamespaceTool.Tool tool)
-
addTool
final NamespaceTool.Builder addTool(NamespaceTool.Tool.Function function)
Alias for calling addTool with
Tool.ofFunction(function).
-
addTool
final NamespaceTool.Builder addTool(CustomTool custom)
Alias for calling addTool with
Tool.ofCustom(custom).
-
addFunctionTool
final NamespaceTool.Builder addFunctionTool(String name)
Alias for calling addTool with the following:
Tool.Function.builder() .name(name) .build()
-
addCustomTool
final NamespaceTool.Builder addCustomTool(String name)
Alias for calling addTool with the following:
CustomTool.builder() .name(name) .build()
-
type
final NamespaceTool.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 NamespaceTool.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final NamespaceTool.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final NamespaceTool.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final NamespaceTool.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final NamespaceTool.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final NamespaceTool build()
Returns an immutable instance of NamespaceTool.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.description() .name() .tools()
-
-
-
-