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.
  • 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 a FineTuningJob record class.
      Parameters:
      id - the value for the id record component
      createdAt - the value for the createdAt record component
      error - the value for the error record component
      fineTunedModel - the value for the fineTunedModel record component
      finishedAt - the value for the finishedAt record component
      hyperparameters - the value for the hyperparameters record component
      model - the value for the model record component
      organizationId - the value for the organizationId record component
      resultFiles - the value for the resultFiles record component
      status - the value for the status record component
      trainedTokens - the value for the trainedTokens record component
      trainingFile - the value for the trainingFile record component
      validationFile - the value for the validationFile record component
      integrations - the value for the integrations record component
      seed - the value for the seed record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • createdAt

      public long createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • error

      public FineTuningJob.Error error()
      Returns the value of the error record component.
      Returns:
      the value of the error record component
    • fineTunedModel

      public String fineTunedModel()
      Returns the value of the fineTunedModel record component.
      Returns:
      the value of the fineTunedModel record component
    • finishedAt

      public Long finishedAt()
      Returns the value of the finishedAt record component.
      Returns:
      the value of the finishedAt record component
    • hyperparameters

      public FineTuningJob.Hyperparameters hyperparameters()
      Returns the value of the hyperparameters record component.
      Returns:
      the value of the hyperparameters record component
    • model

      public String model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • organizationId

      public String organizationId()
      Returns the value of the organizationId record component.
      Returns:
      the value of the organizationId record component
    • resultFiles

      public List<String> resultFiles()
      Returns the value of the resultFiles record component.
      Returns:
      the value of the resultFiles record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • trainedTokens

      public Integer trainedTokens()
      Returns the value of the trainedTokens record component.
      Returns:
      the value of the trainedTokens record component
    • trainingFile

      public String trainingFile()
      Returns the value of the trainingFile record component.
      Returns:
      the value of the trainingFile record component
    • validationFile

      public String validationFile()
      Returns the value of the validationFile record component.
      Returns:
      the value of the validationFile record component
    • integrations

      public List<FineTuningJobIntegration> integrations()
      Returns the value of the integrations record component.
      Returns:
      the value of the integrations record component
    • seed

      public int seed()
      Returns the value of the seed record component.
      Returns:
      the value of the seed record component