← Về thư mục
tests/test_agent_engine.py
- _call · function · L24-L35 — def _call(call_id="call_1", name="request_network_access", arguments=None)
- _reply · function · L38-L48 — def _reply(content="", *, tool_calls=(), assistant_message=None)
- FakeModel · class · L51-L63 — class FakeModel
- init · method · L52-L55 — def init(self, replies, delta_batches=())
- complete · method · L57-L63 — def complete(self, messages, on_delta)
- FakeContext · class · L66-L73 — class FakeContext
- init · method · L67-L69 — def init(self, prefix=())
- prepare · method · L71-L73 — def prepare(self, state)
- FakeExecutor · class · L76-L92 — class FakeExecutor
- init · method · L77-L80 — def init(self, outcomes=(), handler=None)
- execute · method · L82-L92 — def execute(self, action, reply, state)
- FakeEvents · class · L95-L100 — class FakeEvents
- init · method · L96-L97 — def init(self)
- emit · method · L99-L100 — def emit(self, event)
- FakeCancellation · class · L103-L110 — class FakeCancellation
- init · method · L104-L106 — def init(self, answers=())
- cancelled · method · L108-L110 — def cancelled(self)
- FakeCompletion · class · L113-L120 — class FakeCompletion
- init · method · L114-L116 — def init(self, answers=())
- completion · method · L118-L120 — def completion(self)
- FakeInterceptor · class · L123-L132 — class FakeInterceptor
- init · method · L124-L126 — def init(self, replacement=None)
- intercept · method · L128-L132 — def intercept(self, reply, state)
- _engine · function · L135-L152 — def _engine(replies, outcomes=(), , max_turns=4, *overrides)
- test_code_action_is_routed_to_the_executor_through_fake_ports · function · L155-L173 — def test_code_action_is_routed_to_the_executor_through_fake_ports()
- test_native_calls_take_priority_over_fenced_code · function · L176-L189 — def test_native_calls_take_priority_over_fenced_code()
- test_replay_ready_assistant_message_and_tool_results_stay_grouped · function · L192-L221 — def test_replay_ready_assistant_message_and_tool_results_stay_grouped()
- test_plain_reply_is_a_no_action_turn_and_not_success · function · L224-L233 — def test_plain_reply_is_a_no_action_turn_and_not_success()
- test_direct_model_reply_gets_a_replay_safe_assistant_message · function · L236-L246 — def test_direct_model_reply_gets_a_replay_safe_assistant_message()
- test_completion_without_a_custom_reason_is_the_submitted_success_path · function · L249-L259 — def test_completion_without_a_custom_reason_is_the_submitted_success_path()
- test_max_turns_is_a_hard_bound · function · L262-L274 — def test_max_turns_is_a_hard_bound()
- test_cancellation_stops_before_context_model_or_executor_work · function · L277-L289 — def test_cancellation_stops_before_context_model_or_executor_work()
- test_external_completion_stops_before_another_model_call · function · L292-L303 — def test_external_completion_stops_before_another_model_call()
- test_cancellation_after_execution_wins_over_simultaneous_submit · function · L306-L316 — def test_cancellation_after_execution_wins_over_simultaneous_submit()
- test_interceptor_can_replace_the_reply_before_a_custom_plan_stop · function · L319-L343 — def test_interceptor_can_replace_the_reply_before_a_custom_plan_stop()
- stop_plan · function · L322-L328 — def stop_plan(action, reply, state)
- test_stream_text_deltas_are_typed_events_in_turn_order · function · L346-L366 — def test_stream_text_deltas_are_typed_events_in_turn_order()
- test_engine_has_no_direct_runtime_infrastructure_imports · function · L369-L391 — def test_engine_has_no_direct_runtime_infrastructure_imports()
- test_cancelled_model_reply_is_not_recorded_as_history · function · L394-L427 — def test_cancelled_model_reply_is_not_recorded_as_history()