Change PromptHistory interface to provide previous input