langchain/prompts/chat.py/ChatMessagePromptTemplate/format
class ChatMessagePromptTemplate:    def format(self, **kwargs: Any) -> BaseMessage:
        text = self.prompt.format(**kwargs)
        return ChatMessage(
            content=text, role=self.role, additional_kwargs=self.additional_kwargs
        )