Class Prediction

java.lang.Object
nl.dannyj.mistral.models.completion.Prediction

public class Prediction extends Object
Represents the predicted output to optimize response time for ChatCompletionRequest. See the Predicted Outputs guide for more details.
  • Constructor Details

    • Prediction

      public Prediction()
    • Prediction

      public Prediction(String type, String content)
      Creates a new Prediction instance.
      Parameters:
      type - The type of the prediction.
      content - The predicted content string.
  • Method Details

    • builder

      public static Prediction.PredictionBuilder builder()
    • getType

      public String getType()
      The type of the prediction. Currently, only "content" is supported.
      Returns:
      The type of the prediction.
    • getContent

      public String getContent()
      The predicted content.
      Returns:
      The predicted content string.
    • setType

      public void setType(String type)
      The type of the prediction. Currently, only "content" is supported.
      Parameters:
      type - The type of the prediction.
    • setContent

      public void setContent(String content)
      The predicted content.
      Parameters:
      content - The predicted content string.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object