A scripting language for practical agent-oriented programming