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 class
RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template.Builder
A builder for Template.
public final class
RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template.InnerTemplate
A message input to the model with a role indicating instruction following hierarchy. Instructions given with the
developer
orsystem
role take precedence over instructions given with theuser
role. Messages with theassistant
role are presumed to have been generated by the model in previous interactions.
-
Method Summary
Modifier and Type Method Description final List<RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template.InnerTemplate>
template()
A list of chat messages forming the prompt or context. final JsonValue
_type()
The type of input messages. final JsonField<List<RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template.InnerTemplate>>
_template()
Returns the raw JSON value of template. final Map<String, JsonValue>
_additionalProperties()
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template.Builder
toBuilder()
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.InputMessages.Template.Builder
builder()
Returns a mutable builder for constructing an instance of Template. -
-
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
item
namespace, 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()
-
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()
-
-
-
-