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.PredictionBuilder
builder()
protected boolean
boolean
The predicted content.getType()
The type of the prediction.int
hashCode()
void
setContent
(String content) The predicted content.void
The type of the prediction.toString()
-
Constructor Details
-
Prediction
public Prediction() -
Prediction
Creates a newPrediction
instance.- 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
-