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

Method replace_call

tests/buffer/queue_test.py:270–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268
269 # should not be blocked
270 def replace_call():
271 asyncio.run(
272 writer.write(
273 [
274 Experience(
275 tokens=torch.tensor([1, 2, 3]),
276 prompt_length=2,
277 info={"model_version": 4, "use_count": 0},
278 ),
279 Experience(
280 tokens=torch.tensor([1, 2, 3]),
281 prompt_length=2,
282 info={"model_version": 4, "use_count": 0},
283 ),
284 ]
285 )
286 )
287
288 thread = threading.Thread(target=replace_call)
289 thread.start()

Callers

nothing calls this directly

Calls 3

ExperienceClass · 0.90
runMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected