Added method all for search by agent_id