langchain/schema.py/ChatGeneration/set_text
class ChatGeneration:    def set_text(cls, values: Dict[str, Any]) -> Dict[str, Any]:
        values["text"] = values["message"].content
        return values