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

Method _fetch_blobs

trinity/buffer/storage/sql.py:96–100  ·  view source on GitHub ↗
(self, session: AsyncSession, ids: List[int])

Source from the content-addressed store, hash-verified

94 self.logger.info(f"Write {len(data)} experiences to SQL storage.")
95
96 async def _fetch_blobs(self, session: AsyncSession, ids: List[int]) -> Dict[int, bytes]:
97 stmt = select(self.blob_model_cls).where(self.blob_model_cls.id.in_(ids))
98 result = await session.execute(stmt)
99 blobs = result.scalars().all()
100 return {b.id: b.experience_bytes for b in blobs}
101
102 def _assemble_experiences(self, meta_rows, blob_map: Dict[int, bytes]) -> List[Experience]:
103 experiences = []

Callers 1

operationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected