Spaces:
Sleeping
Sleeping
| 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)) | |