Declarative Technologies for Open Agent Systems and Beyond