Class ChatCompletionCustomTool.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionCustomTool.Builder
A builder for ChatCompletionCustomTool.
-
-
Method Summary
Modifier and Type Method Description final ChatCompletionCustomTool.Builder
custom(ChatCompletionCustomTool.Custom custom)
Properties of the custom tool. final ChatCompletionCustomTool.Builder
custom(JsonField<ChatCompletionCustomTool.Custom> custom)
Sets Builder.custom to an arbitrary JSON value. final ChatCompletionCustomTool.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final ChatCompletionCustomTool.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ChatCompletionCustomTool.Builder
putAdditionalProperty(String key, JsonValue value)
final ChatCompletionCustomTool.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ChatCompletionCustomTool.Builder
removeAdditionalProperty(String key)
final ChatCompletionCustomTool.Builder
removeAllAdditionalProperties(Set<String> keys)
final ChatCompletionCustomTool
build()
Returns an immutable instance of ChatCompletionCustomTool. -
-
Method Detail
-
custom
final ChatCompletionCustomTool.Builder custom(ChatCompletionCustomTool.Custom custom)
Properties of the custom tool.
-
custom
final ChatCompletionCustomTool.Builder custom(JsonField<ChatCompletionCustomTool.Custom> custom)
Sets Builder.custom to an arbitrary JSON value.
You should usually call Builder.custom with a well-typed Custom value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ChatCompletionCustomTool.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("custom")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatCompletionCustomTool.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionCustomTool.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionCustomTool.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionCustomTool.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionCustomTool.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionCustomTool build()
Returns an immutable instance of ChatCompletionCustomTool.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.custom()
-
-
-
-