Similar to #30 , but no agent is passed as an argument. instead the callable is invoked for each agent.