Class ChatCompletionMessageFunctionToolCall.Function.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionMessageFunctionToolCall.Function.Builder
A builder for Function.
-
-
Method Summary
-
-
Method Detail
-
arguments
final ChatCompletionMessageFunctionToolCall.Function.Builder arguments(String arguments)
The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
-
arguments
final ChatCompletionMessageFunctionToolCall.Function.Builder arguments(JsonField<String> arguments)
Sets Builder.arguments to an arbitrary JSON value.
You should usually call Builder.arguments with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final ChatCompletionMessageFunctionToolCall.Function.Builder name(String name)
The name of the function to call.
-
name
final ChatCompletionMessageFunctionToolCall.Function.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatCompletionMessageFunctionToolCall.Function.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionMessageFunctionToolCall.Function.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionMessageFunctionToolCall.Function.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionMessageFunctionToolCall.Function.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionMessageFunctionToolCall.Function.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionMessageFunctionToolCall.Function build()
Returns an immutable instance of Function.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.arguments() .name()
-
-
-
-