finishReason

public abstract Optional<FinishReason> finishReason()

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