Instructions-Based Semantics of Agent Mediated Interaction