Data Interface
======================

This section provides the key **data structures** used for data transmission between different workers  
under the **Megatron + SGLang backend** combination in RLinf.  
It includes two fundamental structures: `RolloutRequest` and `RolloutResult`.


RolloutRequest
---------------

.. autoclass:: rlinf.data.io_struct.RolloutRequest
   :members: 
   :member-order: bysource

RolloutResult
-----------------------

.. autoclass:: rlinf.data.io_struct.RolloutResult
   :members: 
   :member-order: bysource
   


