Structured agents for object-centric reasoning