Class BetaResponsePrompt
-
- All Implemented Interfaces:
public final class BetaResponsePromptReference to a prompt template and its variables. Learn more.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponsePrompt.BuilderA builder for BetaResponsePrompt.
public final classBetaResponsePrompt.VariablesOptional 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.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique identifier of the prompt template to use. final Optional<BetaResponsePrompt.Variables>variables()Optional map of values to substitute in for variables in your prompt. final Optional<String>version()Optional version of the prompt template. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaResponsePrompt.Variables>_variables()Returns the raw JSON value of variables. final JsonField<String>_version()Returns the raw JSON value of version. final Map<String, JsonValue>_additionalProperties()final BetaResponsePrompt.BuildertoBuilder()final BetaResponsePromptvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponsePrompt.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponsePrompt. -
-
Method Detail
-
variables
final Optional<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.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_variables
final JsonField<BetaResponsePrompt.Variables> _variables()
Returns the raw JSON value of variables.
Unlike variables, this method doesn't throw if the JSON field has an unexpected type.
-
_version
final JsonField<String> _version()
Returns the raw JSON value of version.
Unlike version, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponsePrompt.Builder toBuilder()
-
validate
final BetaResponsePrompt validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaResponsePrompt.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponsePrompt.
The following fields are required:
.id()
-
-
-
-