Class ChatCompletionCustomTool
-
- All Implemented Interfaces:
public final class ChatCompletionCustomToolA custom tool that processes input using a specified format.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionCustomTool.BuilderA builder for ChatCompletionCustomTool.
public final classChatCompletionCustomTool.CustomProperties of the custom tool.
-
Method Summary
Modifier and Type Method Description final ChatCompletionCustomTool.Customcustom()Properties of the custom tool. final JsonValue_type()The type of the custom tool. final JsonField<ChatCompletionCustomTool.Custom>_custom()Returns the raw JSON value of custom. final Map<String, JsonValue>_additionalProperties()final ChatCompletionCustomTool.BuildertoBuilder()final ChatCompletionCustomToolvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionCustomTool.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionCustomTool. -
-
Method Detail
-
custom
final ChatCompletionCustomTool.Custom custom()
Properties of the custom tool.
-
_type
final JsonValue _type()
The type of the custom tool. Always
custom.Expected to always return the following:
JsonValue.from("custom")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_custom
final JsonField<ChatCompletionCustomTool.Custom> _custom()
Returns the raw JSON value of custom.
Unlike custom, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionCustomTool.Builder toBuilder()
-
validate
final ChatCompletionCustomTool 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 ChatCompletionCustomTool.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionCustomTool.
The following fields are required:
.custom()
-
-
-
-