Class FunctionTool
-
- All Implemented Interfaces:
public final class FunctionTool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFunctionTool.BuilderA builder for FunctionTool.
-
Method Summary
Modifier and Type Method Description final FunctionDefinitionfunction()final JsonValue_type()The type of tool being defined: functionExpected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("function")final JsonField<FunctionDefinition>_function()Returns the raw JSON value of function. final Map<String, JsonValue>_additionalProperties()final FunctionTool.BuildertoBuilder()final FunctionToolvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FunctionTool.Builderbuilder()Returns a mutable builder for constructing an instance of FunctionTool. -
-
Method Detail
-
function
final FunctionDefinition function()
-
_type
final JsonValue _type()
The type of tool being defined:
functionExpected to always return the following:
JsonValue.from("function")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_function
final JsonField<FunctionDefinition> _function()
Returns the raw JSON value of function.
Unlike function, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final FunctionTool.Builder toBuilder()
-
validate
final FunctionTool 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 FunctionTool.Builder builder()
Returns a mutable builder for constructing an instance of FunctionTool.
The following fields are required:
.function()
-
-
-
-