Build generally reusable agent-environment interaction models