Class ChatCompletionCreateParams.Function.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionCreateParams.Function.Builder
A builder for Function.
-
-
Method Summary
-
-
Method Detail
-
name
final ChatCompletionCreateParams.Function.Builder name(String name)
The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
-
name
final ChatCompletionCreateParams.Function.Builder name(JsonField<String> name)
The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
-
description
final ChatCompletionCreateParams.Function.Builder description(String description)
A description of what the function does, used by the model to choose when and how to call the function.
-
description
final ChatCompletionCreateParams.Function.Builder description(JsonField<String> description)
A description of what the function does, used by the model to choose when and how to call the function.
-
parameters
final ChatCompletionCreateParams.Function.Builder parameters(FunctionParameters parameters)
The parameters the functions accepts, described as a JSON Schema object. See the guide for examples, and the JSON Schema reference for documentation about the format.
Omitting
parameters
defines a function with an empty parameter list.
-
parameters
final ChatCompletionCreateParams.Function.Builder parameters(JsonField<FunctionParameters> parameters)
The parameters the functions accepts, described as a JSON Schema object. See the guide for examples, and the JSON Schema reference for documentation about the format.
Omitting
parameters
defines a function with an empty parameter list.
-
additionalProperties
final ChatCompletionCreateParams.Function.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionCreateParams.Function.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionCreateParams.Function.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionCreateParams.Function.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionCreateParams.Function.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionCreateParams.Function build()
-
-
-
-