MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_record_to_dict

Function test_record_to_dict

tests/test_telemetry.py:70–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68# ─── Record Building ───
69
70def test_record_to_dict():
71 rec = telem.TelemetryRecord(
72 predicted_tier=0,
73 routed_model="test-model",
74 confidence=0.85,
75 outcome="success",
76 )
77 d = rec.to_dict()
78 assert d["predicted_tier"] == 0
79 assert d["routed_model"] == "test-model"
80 assert "embedding" not in d # None embedding removed
81
82
83def test_record_with_embedding():

Callers

nothing calls this directly

Calls 1

to_dictMethod · 0.95

Tested by

no test coverage detected