finishReason

public abstract Candidate.Builder finishReason(FinishReason finishReason)

Setter for finishReason.

finishReason: The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.


@CanIgnoreReturnValue()
public Candidate.Builder finishReason(FinishReason.Known knownType)

Setter for finishReason given a known enum.

finishReason: The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.


@CanIgnoreReturnValue()
public Candidate.Builder finishReason(String finishReason)

Setter for finishReason given a string.

finishReason: The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.