Class RunCreateResponse
-
- All Implemented Interfaces:
public final class RunCreateResponseA schema representing an evaluation run.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRunCreateResponse.BuilderA builder for RunCreateResponse.
public final classRunCreateResponse.DataSourceInformation about the run's data source.
public final classRunCreateResponse.MetadataSet of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
public final classRunCreateResponse.PerModelUsagepublic final classRunCreateResponse.PerTestingCriteriaResultpublic final classRunCreateResponse.ResultCountsCounters summarizing the outcomes of the evaluation run.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for the evaluation run. final LongcreatedAt()Unix timestamp (in seconds) when the evaluation run was created. final RunCreateResponse.DataSourcedataSource()Information about the run's data source. final EvalApiErrorerror()An object representing an error response from the Eval API. final StringevalId()The identifier of the associated evaluation. final Optional<RunCreateResponse.Metadata>metadata()Set of 16 key-value pairs that can be attached to an object. final Stringmodel()The model that is evaluated, if applicable. final Stringname()The name of the evaluation run. final JsonValue_object_()The type of the object. final List<RunCreateResponse.PerModelUsage>perModelUsage()Usage statistics for each model during the evaluation run. final List<RunCreateResponse.PerTestingCriteriaResult>perTestingCriteriaResults()Results per testing criteria applied during the evaluation run. final StringreportUrl()The URL to the rendered evaluation run report on the UI dashboard. final RunCreateResponse.ResultCountsresultCounts()Counters summarizing the outcomes of the evaluation run. final Stringstatus()The status of the evaluation run. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Long>_createdAt()Returns the raw JSON value of createdAt. final JsonField<RunCreateResponse.DataSource>_dataSource()Returns the raw JSON value of dataSource. final JsonField<EvalApiError>_error()Returns the raw JSON value of error. final JsonField<String>_evalId()Returns the raw JSON value of evalId. final JsonField<RunCreateResponse.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<List<RunCreateResponse.PerModelUsage>>_perModelUsage()Returns the raw JSON value of perModelUsage. final JsonField<List<RunCreateResponse.PerTestingCriteriaResult>>_perTestingCriteriaResults()Returns the raw JSON value of perTestingCriteriaResults. final JsonField<String>_reportUrl()Returns the raw JSON value of reportUrl. final JsonField<RunCreateResponse.ResultCounts>_resultCounts()Returns the raw JSON value of resultCounts. final JsonField<String>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final RunCreateResponse.BuildertoBuilder()final RunCreateResponsevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RunCreateResponse.Builderbuilder()Returns a mutable builder for constructing an instance of RunCreateResponse. -
-
Method Detail
-
dataSource
final RunCreateResponse.DataSource dataSource()
Information about the run's data source.
-
error
final EvalApiError error()
An object representing an error response from the Eval API.
-
metadata
final Optional<RunCreateResponse.Metadata> metadata()
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
_object_
final JsonValue _object_()
The type of the object. Always "eval.run".
Expected to always return the following:
JsonValue.from("eval.run")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
perModelUsage
final List<RunCreateResponse.PerModelUsage> perModelUsage()
Usage statistics for each model during the evaluation run.
-
perTestingCriteriaResults
final List<RunCreateResponse.PerTestingCriteriaResult> perTestingCriteriaResults()
Results per testing criteria applied during the evaluation run.
-
reportUrl
final String reportUrl()
The URL to the rendered evaluation run report on the UI dashboard.
-
resultCounts
final RunCreateResponse.ResultCounts resultCounts()
Counters summarizing the outcomes of the evaluation run.
-
_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.
-
_createdAt
final JsonField<Long> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_dataSource
final JsonField<RunCreateResponse.DataSource> _dataSource()
Returns the raw JSON value of dataSource.
Unlike dataSource, this method doesn't throw if the JSON field has an unexpected type.
-
_error
final JsonField<EvalApiError> _error()
Returns the raw JSON value of error.
Unlike error, this method doesn't throw if the JSON field has an unexpected type.
-
_evalId
final JsonField<String> _evalId()
Returns the raw JSON value of evalId.
Unlike evalId, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<RunCreateResponse.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_perModelUsage
final JsonField<List<RunCreateResponse.PerModelUsage>> _perModelUsage()
Returns the raw JSON value of perModelUsage.
Unlike perModelUsage, this method doesn't throw if the JSON field has an unexpected type.
-
_perTestingCriteriaResults
final JsonField<List<RunCreateResponse.PerTestingCriteriaResult>> _perTestingCriteriaResults()
Returns the raw JSON value of perTestingCriteriaResults.
Unlike perTestingCriteriaResults, this method doesn't throw if the JSON field has an unexpected type.
-
_reportUrl
final JsonField<String> _reportUrl()
Returns the raw JSON value of reportUrl.
Unlike reportUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_resultCounts
final JsonField<RunCreateResponse.ResultCounts> _resultCounts()
Returns the raw JSON value of resultCounts.
Unlike resultCounts, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<String> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RunCreateResponse.Builder toBuilder()
-
validate
final RunCreateResponse validate()
-
builder
final static RunCreateResponse.Builder builder()
Returns a mutable builder for constructing an instance of RunCreateResponse.
The following fields are required:
.id() .createdAt() .dataSource() .error() .evalId() .metadata() .model() .name() .perModelUsage() .perTestingCriteriaResults() .reportUrl() .resultCounts() .status()
-
-
-
-