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

Method put_batch

trinity/buffer/storage/queue.py:371–376  ·  view source on GitHub ↗

Put batch of experience.

(self, exp_bytes: bytes)

Source from the content-addressed store, hash-verified

369 return self.queue.qsize()
370
371 async def put_batch(self, exp_bytes: bytes) -> None:
372 """Put batch of experience."""
373 exp_list = Experience.deserialize_many(exp_bytes)
374 await self.queue.put(exp_list)
375 if self.writer is not None:
376 await self.writer.write(exp_list)
377
378 async def get_batch(self, batch_size: int, timeout: float, min_model_version: int = 0) -> bytes:
379 """Get batch of experience."""

Callers

nothing calls this directly

Calls 3

deserialize_manyMethod · 0.80
putMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected