Package dev.dokimos.server.dto.v1
Record Class AddItemsRequest.ItemData
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.AddItemsRequest.ItemData
- Enclosing class:
AddItemsRequest
public static record AddItemsRequest.ItemData(Map<String,Object> inputs, Map<String,Object> expectedOutputs, Map<String,Object> actualOutputs, Map<String,Object> metadata, List<AddItemsRequest.EvalData> evalResults, boolean success, UUID datasetItemId, Integer tokensIn, Integer tokensOut, Double costUsd, Long latencyMs)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionItemData(Map<String, Object> inputs, Map<String, Object> expectedOutputs, Map<String, Object> actualOutputs, List<AddItemsRequest.EvalData> evalResults, boolean success) Backwards-compatible 5-arg constructor: passes null metadata, datasetItemId, and call metrics.ItemData(Map<String, Object> inputs, Map<String, Object> expectedOutputs, Map<String, Object> actualOutputs, Map<String, Object> metadata, List<AddItemsRequest.EvalData> evalResults, boolean success) Backwards-compatible 6-arg constructor: passes null datasetItemId and null call metrics.ItemData(Map<String, Object> inputs, Map<String, Object> expectedOutputs, Map<String, Object> actualOutputs, Map<String, Object> metadata, List<AddItemsRequest.EvalData> evalResults, boolean success, UUID datasetItemId) Backwards-compatible 7-arg constructor: passes null call metrics.ItemData(Map<String, Object> inputs, Map<String, Object> expectedOutputs, Map<String, Object> actualOutputs, Map<String, Object> metadata, List<AddItemsRequest.EvalData> evalResults, boolean success, UUID datasetItemId, Integer tokensIn, Integer tokensOut, Double costUsd, Long latencyMs) Creates an instance of aItemDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactualOutputsrecord component.costUsd()Returns the value of thecostUsdrecord component.Returns the value of thedatasetItemIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevalResultsrecord component.Returns the value of theexpectedOutputsrecord component.final inthashCode()Returns a hash code value for this object.inputs()Returns the value of theinputsrecord component.Returns the value of thelatencyMsrecord component.metadata()Returns the value of themetadatarecord component.booleansuccess()Returns the value of thesuccessrecord component.tokensIn()Returns the value of thetokensInrecord component.Returns the value of thetokensOutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ItemData
public ItemData(Map<String, Object> inputs, Map<String, Object> expectedOutputs, Map<String, Object> actualOutputs, Map<String, Object> metadata, List<AddItemsRequest.EvalData> evalResults, boolean success, UUID datasetItemId) Backwards-compatible 7-arg constructor: passes null call metrics. -
ItemData
public ItemData(Map<String, Object> inputs, Map<String, Object> expectedOutputs, Map<String, Object> actualOutputs, Map<String, Object> metadata, List<AddItemsRequest.EvalData> evalResults, boolean success) Backwards-compatible 6-arg constructor: passes null datasetItemId and null call metrics. -
ItemData
public ItemData(Map<String, Object> inputs, Map<String, Object> expectedOutputs, Map<String, Object> actualOutputs, List<AddItemsRequest.EvalData> evalResults, boolean success) Backwards-compatible 5-arg constructor: passes null metadata, datasetItemId, and call metrics. -
ItemData
public ItemData(Map<String, Object> inputs, Map<String, Object> expectedOutputs, Map<String, Object> actualOutputs, Map<String, Object> metadata, List<AddItemsRequest.EvalData> evalResults, boolean success, UUID datasetItemId, Integer tokensIn, Integer tokensOut, Double costUsd, Long latencyMs) Creates an instance of aItemDatarecord class.- Parameters:
inputs- the value for theinputsrecord componentexpectedOutputs- the value for theexpectedOutputsrecord componentactualOutputs- the value for theactualOutputsrecord componentmetadata- the value for themetadatarecord componentevalResults- the value for theevalResultsrecord componentsuccess- the value for thesuccessrecord componentdatasetItemId- the value for thedatasetItemIdrecord componenttokensIn- the value for thetokensInrecord componenttokensOut- the value for thetokensOutrecord componentcostUsd- the value for thecostUsdrecord componentlatencyMs- the value for thelatencyMsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
inputs
Returns the value of theinputsrecord component.- Returns:
- the value of the
inputsrecord component
-
expectedOutputs
Returns the value of theexpectedOutputsrecord component.- Returns:
- the value of the
expectedOutputsrecord component
-
actualOutputs
Returns the value of theactualOutputsrecord component.- Returns:
- the value of the
actualOutputsrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
evalResults
Returns the value of theevalResultsrecord component.- Returns:
- the value of the
evalResultsrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
datasetItemId
Returns the value of thedatasetItemIdrecord component.- Returns:
- the value of the
datasetItemIdrecord component
-
tokensIn
Returns the value of thetokensInrecord component.- Returns:
- the value of the
tokensInrecord component
-
tokensOut
Returns the value of thetokensOutrecord component.- Returns:
- the value of the
tokensOutrecord component
-
costUsd
Returns the value of thecostUsdrecord component.- Returns:
- the value of the
costUsdrecord component
-
latencyMs
Returns the value of thelatencyMsrecord component.- Returns:
- the value of the
latencyMsrecord component
-