As in object-oriented systems, agents usually have methods, that is named pieces of code, often called scripts. Methods may be initiated by user commands, triggered by messages from other agents, or respond to sensed events, such as an email arriving. Methods execute on the agent state, and possibly giving rise to further messages directed to other agents and/or actions on the external environment.
Used in Chap. 16: page 237