"Learning" has been well studied in several research areas such as psychology, brain science, computer science and robotics. In these studies, many experiments using animals have been performed. On the other hand, several researchers have been studying adaptive interactions and task learning through interactions between humans and robots. We then focus on adaptive interactions between animals and robots. The purpose of our research is to develop a framework of adaptive interactions between animals and robots through interaction experiments between rats and a robotic rat. We propose a novel behavior generation algorithm for the robot to enable it to autonomously teach a simple behavior task to rats as an example of adaptive interaction. This algorithm was implemented in the robot and the experimental setup, and then verified through the experiment.