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 class
EvalLabelModelGrader.Input.Assistant.Builder
A builder for Assistant.
public final class
EvalLabelModelGrader.Input.Assistant.Content
public final class
EvalLabelModelGrader.Input.Assistant.Type
The type of item, which is always
message
.
-
Method Summary
Modifier and Type Method Description final EvalLabelModelGrader.Input.Assistant.Content
content()
final JsonValue
_role()
The role of the message. final EvalLabelModelGrader.Input.Assistant.Type
type()
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.Builder
toBuilder()
final EvalLabelModelGrader.Input.Assistant
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static EvalLabelModelGrader.Input.Assistant.Builder
builder()
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
assistant
for 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()
-
-
-
-