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

Function get_dummy_experience

tests/explorer/proxy_test.py:12–23  ·  view source on GitHub ↗
(num: int)

Source from the content-addressed store, hash-verified

10
11
12def get_dummy_experience(num: int) -> List[Experience]:
13 return [
14 Experience(
15 eid=EID(suffix=uuid.uuid4().hex[:6]),
16 tokens=torch.zeros(5),
17 prompt_length=2,
18 info={
19 "model_version": 0,
20 },
21 )
22 for _ in range(num)
23 ]
24
25
26db_path = os.path.join(os.path.dirname(__file__), "test_recorder.db")

Callers 1

test_recorderMethod · 0.85

Calls 2

ExperienceClass · 0.90
EIDClass · 0.90

Tested by

no test coverage detected