Class RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template
-
- All Implemented Interfaces:
public final class RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template.BuilderA builder for Template.
public final classRunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template.InnerTemplateA message input to the model with a role indicating instruction following hierarchy. Instructions given with the
developerorsystemrole take precedence over instructions given with theuserrole. Messages with theassistantrole are presumed to have been generated by the model in previous interactions.
-
Method Summary
-
-
Method Detail
-
template
final List<RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template.InnerTemplate> template()
A list of chat messages forming the prompt or context. May include variable references to the
itemnamespace, ie {{item.name}}.
-
_type
final JsonValue _type()
The type of input messages. Always
template.Expected to always return the following:
JsonValue.from("template")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_template
final JsonField<List<RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template.InnerTemplate>> _template()
Returns the raw JSON value of template.
Unlike template, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template.Builder toBuilder()
-
validate
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template 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 RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template.Builder builder()
Returns a mutable builder for constructing an instance of Template.
The following fields are required:
.template()
-
-
-
-