def partial(self, **kwargs: Union[str, Callable[[], str]]) -> MessageTemplate:
        """Return a partial of this message template."""
        prompt_dict = self.__dict__.copy()
        prompt_dict["input_variables"] = list(set(self.input_variables).difference(kwargs))
        prompt_dict["partial_variables"] = {**self.partial_variables, **kwargs}
        return type(self)(**prompt_dict)
Return a partial of this message template.
pikerag/prompts/message_template.py