Class Models.Builder
-
- All Implemented Interfaces:
public final class Models.Builder
A builder for Models.
-
-
Method Summary
Modifier and Type Method Description final Models.Builder
description(String description)
The description of the function, including guidance on when and how to call it, and guidance about what to tell the user when calling (if anything). final Models.Builder
description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value. final Models.Builder
name(String name)
The name of the function. final Models.Builder
name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value. final Models.Builder
parameters(JsonValue parameters)
Parameters of the function in JSON Schema. final Models.Builder
type(Models.Type type)
The type of the tool, i.e. final Models.Builder
type(JsonField<Models.Type> type)
Sets Builder.type to an arbitrary JSON value. final Models.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final Models.Builder
putAdditionalProperty(String key, JsonValue value)
final Models.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final Models.Builder
removeAdditionalProperty(String key)
final Models.Builder
removeAllAdditionalProperties(Set<String> keys)
final Models
build()
Returns an immutable instance of Models. -
-
Method Detail
-
description
final Models.Builder description(String description)
The description of the function, including guidance on when and how to call it, and guidance about what to tell the user when calling (if anything).
-
description
final Models.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description 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 Models.Builder name(String name)
The name of the function.
-
name
final Models.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.
-
parameters
final Models.Builder parameters(JsonValue parameters)
Parameters of the function in JSON Schema.
-
type
final Models.Builder type(Models.Type type)
The type of the tool, i.e.
function
.
-
type
final Models.Builder type(JsonField<Models.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Models.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Models.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Models.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Models.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Models.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-