← Về thư mục
tests/test_compaction_chunked_summary.py
- _headings · function · L28-L29 — def _headings(token: str) -> str
- _code_obs_rounds · function · L32-L47 — def _code_obs_rounds(count: int, *, payload: str, start: int = 0) -> list[dict]
- _history · function · L50-L55 — def _history(rounds: int, *, payload: str = _ZH_PAYLOAD) -> list[dict]
- _ascii_pairs · function · L58-L67 — def _ascii_pairs(count: int, *, code_chars: int) -> list[dict]
- _transcript_json · function · L70-L72 — def _transcript_json(user_content: str) -> str
- _user_content · function · L75-L76 — def _user_content(call_messages: list[dict]) -> str
- test_chunked_summary_bounds_each_chat_call · function · L79-L123 — def test_chunked_summary_bounds_each_chat_call(monkeypatch, tmp_path)
- fake_chat · function · L86-L95 — def fake_chat(chat_messages, cfg, **kwargs)
- test_second_compact_carries_previous_handoff_and_excludes_it_from_transcript · function · L126-L157 — def test_second_compact_carries_previous_handoff_and_excludes_it_from_transcript( monkeypatch, )
- fake_chat · function · L132-L137 — def fake_chat(chat_messages, cfg, **kwargs)
- test_empty_chunk_raises_without_archiving_or_mutating · function · L160-L185 — def test_empty_chunk_raises_without_archiving_or_mutating(monkeypatch, tmp_path)
- fake_chat · function · L165-L170 — def fake_chat(chat_messages, cfg, **kwargs)
- test_keep_recent_by_tokens_respects_budget_and_atomic_pairs · function · L188-L245 — def test_keep_recent_by_tokens_respects_budget_and_atomic_pairs(monkeypatch)
- test_chars_to_tokens_counts_cjk_as_one · function · L248-L253 — def test_chars_to_tokens_counts_cjk_as_one()
- test_the_previous_note_banner_is_neither_shown_nor_doubled · function · L262-L300 — def test_the_previous_note_banner_is_neither_shown_nor_doubled(monkeypatch)
- echo_chat · function · L272-L283 — def echo_chat(chat_messages, cfg_, **kwargs)
- test_image_parts_are_omitted_from_the_summarizer_transcript · function · L303-L341 — def test_image_parts_are_omitted_from_the_summarizer_transcript(monkeypatch)
- fake_chat · function · L325-L328 — def fake_chat(chat_messages, cfg_, **kwargs)
- test_compaction_stops_between_chunks_when_the_run_is_cancelled · function · L344-L367 — def test_compaction_stops_between_chunks_when_the_run_is_cancelled(monkeypatch)
- fake_chat · function · L352-L356 — def fake_chat(chat_messages, cfg_, **kwargs)