MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / envelope

Function envelope

tools/provenance-eval/run.py:63–70  ·  view source on GitHub ↗
(index, size, turn, generation, timestamp_ms)

Source from the content-addressed store, hash-verified

61
62
63def envelope(index, size, turn, generation, timestamp_ms):
64 raw = tool_payload(index, size, turn)
65 return {"schema_version": 1, "event_id": f"bench-event-{turn}-{index}",
66 "session_id": SESSION, "turn_number": turn, "generation": generation,
67 "timestamp_ms": timestamp_ms + index, "causal_parent_ids": [],
68 "event": {"type": "tool", "phase": "after", "tool_name": raw["tool_name"],
69 "tool_call_id": raw["tool_use_id"], "input": raw["tool_input"],
70 "output": raw["tool_output"], "status": "completed", "raw": raw}}
71
72
73class Fixture:

Callers 1

measure_turnFunction · 0.70

Calls 1

tool_payloadFunction · 0.85

Tested by

no test coverage detected