Class BetaResponsePrompt.Builder
-
- All Implemented Interfaces:
public final class BetaResponsePrompt.BuilderA builder for BetaResponsePrompt.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaResponsePrompt.Builder id(String id)
The unique identifier of the prompt template to use.
-
id
final BetaResponsePrompt.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 BetaResponsePrompt.Builder variables(BetaResponsePrompt.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 BetaResponsePrompt.Builder variables(Optional<BetaResponsePrompt.Variables> variables)
Alias for calling Builder.variables with
variables.orElse(null).
-
variables
final BetaResponsePrompt.Builder variables(JsonField<BetaResponsePrompt.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 BetaResponsePrompt.Builder version(String version)
Optional version of the prompt template.
-
version
final BetaResponsePrompt.Builder version(Optional<String> version)
Alias for calling Builder.version with
version.orElse(null).
-
version
final BetaResponsePrompt.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 BetaResponsePrompt.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponsePrompt.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponsePrompt.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponsePrompt.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponsePrompt.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponsePrompt build()
Returns an immutable instance of BetaResponsePrompt.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id()
-
-
-
-