← Về thư mục
tests/test_agent_progress_circuit.py
- _call · function · L32-L52 — def _call( call_id: str = "call_1", name: str = "list_dir", arguments: dict | None = None, *, parse_error: str | None = None, ) -> dict
- _reply · function · L55-L67 — def _reply(content: str = "", *, tool_calls=(), reasoning=None, assistant_message=None)
- _long_text · function · L70-L73 — def _long_text(seed: str = "loop") -> str
- FakeModel · class · L76-L88 — class FakeModel
- init · method · L77-L79 — def init(self, replies)
- complete · method · L81-L88 — def complete(self, messages, on_delta)
- CountingExecutor · class · L91-L126 — class CountingExecutor
- init · method · L92-L95 — def init(self, *, error: str | None = None)
- execute · method · L97-L126 — def execute(self, action, reply, state)
- PollingExecutor · class · L129-L145 — class PollingExecutor(CountingExecutor)
- init · method · L132-L134 — def init(self, contents)
- execute · method · L136-L145 — def execute(self, action, reply, state)
- _engine · function · L148-L158 — def _engine(replies, executor=None, , max_turns=10, *overrides)
- _native_replies · function · L161-L171 — def _native_replies(count: int, *, arguments=None, parse_error=None, name="list_dir")
- test_same_action_three_times_blocks_fourth_dispatch · function · L174-L183 — def test_same_action_three_times_blocks_fourth_dispatch()
- test_an_identical_poll_whose_results_move_is_progress_not_a_loop · function · L186-L212 — def test_an_identical_poll_whose_results_move_is_progress_not_a_loop()
- test_an_identical_poll_whose_results_stopped_moving_still_trips · function · L215-L228 — def test_an_identical_poll_whose_results_stopped_moving_still_trips()
- test_malformed_twice_trips_without_a_third_provider_call · function · L231-L244 — def test_malformed_twice_trips_without_a_third_provider_call()
- test_similar_tool_error_twice_trips · function · L247-L260 — def test_similar_tool_error_twice_trips()
- test_long_text_three_times_trips · function · L263-L276 — def test_long_text_three_times_trips()
- test_different_arguments_do_not_trip · function · L279-L291 — def test_different_arguments_do_not_trip()
- test_reasoning_insert_does_not_reset_same_action_streak · function · L294-L309 — def test_reasoning_insert_does_not_reset_same_action_streak()
- _record_same_action · function · L312-L366 — def _record_same_action(store, root: str, count: int, *, contents=None) -> None
- test_restore_from_the_ledger_applies_the_result_delta_rule · function · L369-L382 — def test_restore_from_the_ledger_applies_the_result_delta_rule(tmp_path)
- test_an_empty_epoch_is_restored_without_reading_a_single_group · function · L385-L405 — def test_an_empty_epoch_is_restored_without_reading_a_single_group(tmp_path)
- counting · function · L397-L399 — def counting(args, *kwargs)
- test_restart_rebuilds_from_ledger_not_live_runstate · function · L408-L435 — def test_restart_rebuilds_from_ledger_not_live_runstate(tmp_path)
- test_restart_mid_streak_does_not_zero_then_trips_on_next_same_action · function · L438-L459 — def test_restart_mid_streak_does_not_zero_then_trips_on_next_same_action(tmp_path)
- test_compaction_does_not_zero_because_ledger_is_the_authority · function · L462-L478 — def test_compaction_does_not_zero_because_ledger_is_the_authority(tmp_path)
- test_new_external_user_message_resets_epoch · function · L481-L492 — def test_new_external_user_message_resets_epoch(tmp_path)
- test_cancel_wins_over_an_already_tripped_circuit · function · L495-L515 — def test_cancel_wins_over_an_already_tripped_circuit()
- Cancelled · class · L496-L498 — class Cancelled
- cancelled · method · L497-L498 — def cancelled(self)
- test_max_turns_still_wins_when_the_circuit_is_below_threshold · function · L518-L526 — def test_max_turns_still_wins_when_the_circuit_is_below_threshold()
- test_successful_submit_is_not_rewritten_as_no_progress · function · L529-L549 — def test_successful_submit_is_not_rewritten_as_no_progress()
- complete_on_first · function · L536-L541 — def complete_on_first(action, reply, state)
- test_ledger_terminal_for_no_progress_is_failed_not_completed · function · L552-L578 — def test_ledger_terminal_for_no_progress_is_failed_not_completed(tmp_path)
- test_metadata_cache_is_not_durable_authority · function · L581-L594 — def test_metadata_cache_is_not_durable_authority(tmp_path)