Class NamespaceTool
-
- All Implemented Interfaces:
public final class NamespaceToolGroups function/custom tools under a shared namespace.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classNamespaceTool.BuilderA builder for NamespaceTool.
public final classNamespaceTool.ToolA function or custom tool that belongs to a namespace.
-
Method Summary
Modifier and Type Method Description final Stringdescription()A description of the namespace shown to the model. final Stringname()The namespace name used in tool calls (for example, crm).final List<NamespaceTool.Tool>tools()The function/custom tools available inside this namespace. final JsonValue_type()The type of the tool. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<List<NamespaceTool.Tool>>_tools()Returns the raw JSON value of tools. final Map<String, JsonValue>_additionalProperties()final NamespaceTool.BuildertoBuilder()final NamespaceToolvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static NamespaceTool.Builderbuilder()Returns a mutable builder for constructing an instance of NamespaceTool. -
-
Method Detail
-
description
final String description()
A description of the namespace shown to the model.
-
tools
final List<NamespaceTool.Tool> tools()
The function/custom tools available inside this namespace.
-
_type
final JsonValue _type()
The type of the tool. Always
namespace.Expected to always return the following:
JsonValue.from("namespace")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_tools
final JsonField<List<NamespaceTool.Tool>> _tools()
Returns the raw JSON value of tools.
Unlike tools, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final NamespaceTool.Builder toBuilder()
-
validate
final NamespaceTool validate()
-
builder
final static NamespaceTool.Builder builder()
Returns a mutable builder for constructing an instance of NamespaceTool.
The following fields are required:
.description() .name() .tools()
-
-
-
-