Cyprien
Model and revision pickers, test-set evaluation tab, app/ package
759bf41
Raw
History Blame Contribute Delete
296 Bytes
from .config import CALLER_TURNS
def last_turns(transcript: str, count: int = CALLER_TURNS) -> list[str]:
lines = [line.strip() for line in transcript.splitlines() if line.strip()]
return lines[-count:]
def window(transcript: str) -> str:
return "\n".join(last_turns(transcript))