langchain/prompts/chat.py/BaseChatPromptTemplate/format_prompt
class BaseChatPromptTemplate:    def format_prompt(self, **kwargs: Any) -> PromptValue:
        messages = self.format_messages(**kwargs)
        return ChatPromptValue(messages=messages)