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

Function test_uses_last_user_message

tests/test_signal_structural.py:95–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93
94
95def test_uses_last_user_message():
96 sig = StructuralSignal()
97 row = {"messages": [
98 {"role": "user", "content": "Design a distributed system with Kafka, Redis, PostgreSQL..."},
99 {"role": "assistant", "content": "Sure, here is the design..."},
100 {"role": "user", "content": "hello"},
101 ]}
102 vote = sig.predict(row)
103 assert vote.tier_id <= 1

Callers

nothing calls this directly

Calls 2

predictMethod · 0.95
StructuralSignalClass · 0.90

Tested by

no test coverage detected