Spaces:
Running on Zero
Running on Zero
File size: 737 Bytes
ee51d7a b4f9582 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | """Smoke tests for the extraction prompt contract. We can't unit-test the
model, but we can pin the instructions the model is given."""
import engine
class TestExtractionPrompt:
def test_mentions_tone_delta_with_range(self):
assert "tone_delta" in engine._EXTRACTION_SYSTEM
assert "-10" in engine._EXTRACTION_SYSTEM
def test_mentions_cruel_quote(self):
assert "cruel_quote" in engine._EXTRACTION_SYSTEM
def test_example_json_includes_new_fields(self):
assert '"tone_delta"' in engine._EXTRACTION_SYSTEM
assert '"cruel_quote"' in engine._EXTRACTION_SYSTEM
def test_extraction_asks_for_at_most_one_memory(self):
assert "AT MOST ONE memory" in engine._EXTRACTION_SYSTEM
|