An Interaction-oriented Agent Framework for Open Environments