“ask” is a scriptdictionary. Keys are topics, and values are the scripts to run when the object is asked about that topic.
See also Tutorial: Ask and Tell, askdefault, tell.