Class ChatCompletionCustomTool
-
- All Implemented Interfaces:
public final class ChatCompletionCustomTool
A custom tool that processes input using a specified format.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionCustomTool.Builder
A builder for ChatCompletionCustomTool.
public final class
ChatCompletionCustomTool.Custom
Properties of the custom tool.
-
Method Summary
Modifier and Type Method Description final ChatCompletionCustomTool.Custom
custom()
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.Builder
toBuilder()
final ChatCompletionCustomTool
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionCustomTool.Builder
builder()
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()
-
builder
final static ChatCompletionCustomTool.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionCustomTool.
The following fields are required:
.custom()
-
-
-
-