langchain/prompts/chat.py/BaseChatPromptTemplate/format_messages
class BaseChatPromptTemplate:    def format_messages(self, **kwargs: Any) -> List[BaseMessage]:
        """Format kwargs into a list of messages."""