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 recordstatic final recordThe 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 aFineTuningJobrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of thefineTunedModelrecord component.Returns the value of thefinishedAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehyperparametersrecord component.id()Returns the value of theidrecord component.Returns the value of theintegrationsrecord component.model()Returns the value of themodelrecord component.Returns the value of theorganizationIdrecord component.Returns the value of theresultFilesrecord component.intseed()Returns the value of theseedrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrainedTokensrecord component.Returns the value of thetrainingFilerecord component.Returns the value of thevalidationFilerecord 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 aFineTuningJobrecord class.- Parameters:
id- the value for theidrecord componentcreatedAt- the value for thecreatedAtrecord componenterror- the value for theerrorrecord componentfineTunedModel- the value for thefineTunedModelrecord componentfinishedAt- the value for thefinishedAtrecord componenthyperparameters- the value for thehyperparametersrecord componentmodel- the value for themodelrecord componentorganizationId- the value for theorganizationIdrecord componentresultFiles- the value for theresultFilesrecord componentstatus- the value for thestatusrecord componenttrainedTokens- the value for thetrainedTokensrecord componenttrainingFile- the value for thetrainingFilerecord componentvalidationFile- the value for thevalidationFilerecord componentintegrations- the value for theintegrationsrecord componentseed- the value for theseedrecord 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 theidrecord component.- Returns:
- the value of the
idrecord component
-
createdAt
public long createdAt()Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
fineTunedModel
Returns the value of thefineTunedModelrecord component.- Returns:
- the value of the
fineTunedModelrecord component
-
finishedAt
Returns the value of thefinishedAtrecord component.- Returns:
- the value of the
finishedAtrecord component
-
hyperparameters
Returns the value of thehyperparametersrecord component.- Returns:
- the value of the
hyperparametersrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
organizationId
Returns the value of theorganizationIdrecord component.- Returns:
- the value of the
organizationIdrecord component
-
resultFiles
Returns the value of theresultFilesrecord component.- Returns:
- the value of the
resultFilesrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
trainedTokens
Returns the value of thetrainedTokensrecord component.- Returns:
- the value of the
trainedTokensrecord component
-
trainingFile
Returns the value of thetrainingFilerecord component.- Returns:
- the value of the
trainingFilerecord component
-
validationFile
Returns the value of thevalidationFilerecord component.- Returns:
- the value of the
validationFilerecord component
-
integrations
Returns the value of theintegrationsrecord component.- Returns:
- the value of the
integrationsrecord component
-
seed
public int seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-