Record Class FineTuningJob
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.FineTuningJob
public record FineTuningJob(String id, long createdAt, FineTuningJob.Error error, String fineTunedModel, Long finishedAt, FineTuningJob.Hyperparameters hyperparameters, String model, String organizationId, List<String> resultFiles, String status, Integer trainedTokens, String trainingFile, String validationFile, List<FineTuningJobIntegration> integrations, int seed)
extends Record
The fine_tuning.job object represents a fine-tuning job that has been created through the API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
The hyperparameters used for the fine-tuning job -
Constructor Summary
ConstructorsConstructorDescriptionFineTuningJob
(String id, long createdAt, FineTuningJob.Error error, String fineTunedModel, Long finishedAt, FineTuningJob.Hyperparameters hyperparameters, String model, String organizationId, List<String> resultFiles, String status, Integer trainedTokens, String trainingFile, String validationFile, List<FineTuningJobIntegration> integrations, int seed) Creates an instance of aFineTuningJob
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of thecreatedAt
record component.final boolean
Indicates whether some other object is "equal to" this one.error()
Returns the value of theerror
record component.Returns the value of thefineTunedModel
record component.Returns the value of thefinishedAt
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehyperparameters
record component.id()
Returns the value of theid
record component.Returns the value of theintegrations
record component.model()
Returns the value of themodel
record component.Returns the value of theorganizationId
record component.Returns the value of theresultFiles
record component.int
seed()
Returns the value of theseed
record component.status()
Returns the value of thestatus
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetrainedTokens
record component.Returns the value of thetrainingFile
record component.Returns the value of thevalidationFile
record component.
-
Constructor Details
-
FineTuningJob
public FineTuningJob(String id, long createdAt, FineTuningJob.Error error, String fineTunedModel, Long finishedAt, FineTuningJob.Hyperparameters hyperparameters, String model, String organizationId, List<String> resultFiles, String status, Integer trainedTokens, String trainingFile, String validationFile, List<FineTuningJobIntegration> integrations, int seed) Creates an instance of aFineTuningJob
record class.- Parameters:
id
- the value for theid
record componentcreatedAt
- the value for thecreatedAt
record componenterror
- the value for theerror
record componentfineTunedModel
- the value for thefineTunedModel
record componentfinishedAt
- the value for thefinishedAt
record componenthyperparameters
- the value for thehyperparameters
record componentmodel
- the value for themodel
record componentorganizationId
- the value for theorganizationId
record componentresultFiles
- the value for theresultFiles
record componentstatus
- the value for thestatus
record componenttrainedTokens
- the value for thetrainedTokens
record componenttrainingFile
- the value for thetrainingFile
record componentvalidationFile
- the value for thevalidationFile
record componentintegrations
- the value for theintegrations
record componentseed
- the value for theseed
record 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 '=='. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
createdAt
public long createdAt()Returns the value of thecreatedAt
record component.- Returns:
- the value of the
createdAt
record component
-
error
Returns the value of theerror
record component.- Returns:
- the value of the
error
record component
-
fineTunedModel
Returns the value of thefineTunedModel
record component.- Returns:
- the value of the
fineTunedModel
record component
-
finishedAt
Returns the value of thefinishedAt
record component.- Returns:
- the value of the
finishedAt
record component
-
hyperparameters
Returns the value of thehyperparameters
record component.- Returns:
- the value of the
hyperparameters
record component
-
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-
organizationId
Returns the value of theorganizationId
record component.- Returns:
- the value of the
organizationId
record component
-
resultFiles
Returns the value of theresultFiles
record component.- Returns:
- the value of the
resultFiles
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
trainedTokens
Returns the value of thetrainedTokens
record component.- Returns:
- the value of the
trainedTokens
record component
-
trainingFile
Returns the value of thetrainingFile
record component.- Returns:
- the value of the
trainingFile
record component
-
validationFile
Returns the value of thevalidationFile
record component.- Returns:
- the value of the
validationFile
record component
-
integrations
Returns the value of theintegrations
record component.- Returns:
- the value of the
integrations
record component
-
seed
public int seed()Returns the value of theseed
record component.- Returns:
- the value of the
seed
record component
-