MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / read

Method read

trinity/buffer/storage/sql.py:223–228  ·  view source on GitHub ↗
(self, batch_size: Optional[int] = None, **kwargs)

Source from the content-addressed store, hash-verified

221 return exp_list
222
223 async def read(self, batch_size: Optional[int] = None, **kwargs) -> List[Experience]:
224 await self.prepare()
225 if self.stopped:
226 raise StopAsyncIteration()
227 batch_size = self.batch_size if batch_size is None else batch_size
228 return await self._read_method(batch_size, **kwargs)
229
230 def _build_filter_conditions(self, filters: Optional[Dict] = None):
231 conditions = []

Calls 1

prepareMethod · 0.95