Class Prediction
java.lang.Object
nl.dannyj.mistral.models.completion.Prediction
Represents the predicted output to optimize response time for ChatCompletionRequest.
See the Predicted Outputs guide for more details.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Prediction.PredictionBuilderbuilder()protected booleanbooleanThe predicted content.getType()The type of the prediction.inthashCode()voidsetContent(String content) The predicted content.voidThe type of the prediction.toString()
-
Constructor Details
-
Prediction
public Prediction() -
Prediction
Creates a newPredictioninstance.- Parameters:
type- The type of the prediction.content- The predicted content string.
-
-
Method Details
-
builder
-
getType
The type of the prediction. Currently, only "content" is supported.- Returns:
- The type of the prediction.
-
getContent
The predicted content.- Returns:
- The predicted content string.
-
setType
The type of the prediction. Currently, only "content" is supported.- Parameters:
type- The type of the prediction.
-
setContent
The predicted content.- Parameters:
content- The predicted content string.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-