Class ResponsePrompt.Builder
-
- All Implemented Interfaces:
public final class ResponsePrompt.Builder
A builder for ResponsePrompt.
-
-
Method Summary
-
-
Method Detail
-
id
final ResponsePrompt.Builder id(String id)
The unique identifier of the prompt template to use.
-
id
final ResponsePrompt.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
variables
final ResponsePrompt.Builder variables(ResponsePrompt.Variables variables)
Optional map of values to substitute in for variables in your prompt. The substitution values can either be strings, or other Response input types like images or files.
-
variables
final ResponsePrompt.Builder variables(Optional<ResponsePrompt.Variables> variables)
Alias for calling Builder.variables with
variables.orElse(null)
.
-
variables
final ResponsePrompt.Builder variables(JsonField<ResponsePrompt.Variables> variables)
Sets Builder.variables to an arbitrary JSON value.
You should usually call Builder.variables with a well-typed Variables value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
version
final ResponsePrompt.Builder version(String version)
Optional version of the prompt template.
-
version
final ResponsePrompt.Builder version(Optional<String> version)
Alias for calling Builder.version with
version.orElse(null)
.
-
version
final ResponsePrompt.Builder version(JsonField<String> version)
Sets Builder.version to an arbitrary JSON value.
You should usually call Builder.version 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 ResponsePrompt.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponsePrompt.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponsePrompt.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponsePrompt.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponsePrompt.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponsePrompt build()
Returns an immutable instance of ResponsePrompt.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id()
-
-
-
-