Entity extraction from custtom components

I’m writing a custom component which takes input of slots and entities and text message. How can I access the list of slots and entities from the custom component?

@Juste @Emma

You can read them from the domain

I mean I want to get them from the response send by rasa-nlu. Not manually

You should get a bit clearer about what you want to do.