def prep_inputs(self, user_query: str) -> Dict[str, str]:
        """Load conversation history from memory and prep inputs."""
        inputs = {
            constants.CONVERSATION_HISTORY: ChatMessageHistory(),
            constants.INTERMEDIATE_STEPS: [],
        }
        if self.memory is not None:
            intermediate_steps = self.memory.load_memory(
                constants.INTERMEDIATE_STEPS, []
            )
            self.memory.save_conversation(
                message=user_query, message_type=MessageType.UserMessage
            )

            inputs[constants.CONVERSATION_HISTORY] = deepcopy(
                self.memory.load_conversation()
            )
            inputs[constants.INTERMEDIATE_STEPS] = deepcopy(intermediate_steps)

        return inputs
Load conversation history from memory and prep inputs.
autochain/chain/base_chain.py