test: align string summaries with grounded task snapshot

This commit is contained in:
Enzo Adami 2026-07-17 17:22:59 -04:00 committed by kshitij
parent 761a0b124e
commit 2f824ec5d2

View file

@ -719,7 +719,9 @@ class TestNonStringContent:
with patch("agent.context_compressor.call_llm", return_value=mock_response):
summary = c._generate_summary(messages)
assert summary == f"{SUMMARY_PREFIX}\nplain summary text"
assert summary.startswith(f"{SUMMARY_PREFIX}\n{HISTORICAL_TASK_HEADING}\n")
assert "do something" in summary
assert summary.endswith("plain summary text")
def test_summary_call_does_not_force_temperature(self):
mock_response = MagicMock()