Multipath agents for modular multitask ML systems