How the agent selects sources