Historically the logic that optimises a radio network was locked inside each vendor's base station. The RIC opens it: a platform where operators and third parties run applications that read live RAN telemetry and apply control. The near-real-time RIC works between about ten milliseconds and a second — fast enough to matter, over an open interface.
It is an application platform. xApps — traffic steering, interference management, admission control, energy saving — run on it and act on the RAN over E2, each through an E2 service model that defines what it may read and set. The platform handles the hard shared problems: conflict mitigation when two xApps want the same parameter, resource isolation, and keeping every app inside its latency budget.
Above it, the non-real-time RIC trains models and sets policy, pushing them down over A1. Together they are how AI-for-RAN reaches the network: slow learning on top, fast bounded control underneath.