cost-effective agentic ai