Package com.openai.models.evals
Class EvalLabelModelGrader.Input.Assistant
-
- All Implemented Interfaces:
public final class EvalLabelModelGrader.Input.Assistant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEvalLabelModelGrader.Input.Assistant.BuilderA builder for Assistant.
public final classEvalLabelModelGrader.Input.Assistant.Contentpublic final classEvalLabelModelGrader.Input.Assistant.TypeThe type of item, which is always
message.
-
Method Summary
Modifier and Type Method Description final EvalLabelModelGrader.Input.Assistant.Contentcontent()final JsonValue_role()The role of the message. final EvalLabelModelGrader.Input.Assistant.Typetype()The type of item, which is always message.final JsonField<EvalLabelModelGrader.Input.Assistant.Content>_content()Returns the raw JSON value of content. final JsonField<EvalLabelModelGrader.Input.Assistant.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final EvalLabelModelGrader.Input.Assistant.BuildertoBuilder()final EvalLabelModelGrader.Input.Assistantvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static EvalLabelModelGrader.Input.Assistant.Builderbuilder()Returns a mutable builder for constructing an instance of Assistant. -
-
Method Detail
-
content
final EvalLabelModelGrader.Input.Assistant.Content content()
-
_role
final JsonValue _role()
The role of the message. Must be
assistantfor output.Expected to always return the following:
JsonValue.from("assistant")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
type
final EvalLabelModelGrader.Input.Assistant.Type type()
The type of item, which is always
message.
-
_content
final JsonField<EvalLabelModelGrader.Input.Assistant.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<EvalLabelModelGrader.Input.Assistant.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final EvalLabelModelGrader.Input.Assistant.Builder toBuilder()
-
validate
final EvalLabelModelGrader.Input.Assistant validate()
-
builder
final static EvalLabelModelGrader.Input.Assistant.Builder builder()
Returns a mutable builder for constructing an instance of Assistant.
The following fields are required:
.content() .type()
-
-
-
-