This is the closest I could find, it's only available in the chatbot object. If you are doing a lot of customization, it might not work, but it's worth a look:
https://www.gradio.app/docs/gradio/chatbot