Class BetaNamespaceTool
-
- All Implemented Interfaces:
public final class BetaNamespaceToolGroups function/custom tools under a shared namespace.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaNamespaceTool.BuilderA builder for BetaNamespaceTool.
public final classBetaNamespaceTool.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<BetaNamespaceTool.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<BetaNamespaceTool.Tool>>_tools()Returns the raw JSON value of tools. final Map<String, JsonValue>_additionalProperties()final BetaNamespaceTool.BuildertoBuilder()final BetaNamespaceToolvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaNamespaceTool.Builderbuilder()Returns a mutable builder for constructing an instance of BetaNamespaceTool. -
-
Method Detail
-
description
final String description()
A description of the namespace shown to the model.
-
tools
final List<BetaNamespaceTool.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<BetaNamespaceTool.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 BetaNamespaceTool.Builder toBuilder()
-
validate
final BetaNamespaceTool validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaNamespaceTool.Builder builder()
Returns a mutable builder for constructing an instance of BetaNamespaceTool.
The following fields are required:
.description() .name() .tools()
-
-
-
-