← Về thư mục
- _cfg · function · L43-L49 — def _cfg() -> LLMConfig
- _Capture · class · L52-L64 — class _Capture
- init · method · L53-L55 — def init(self, response: dict)
- call · method · L57-L59 — def call(self, url, payload, headers, timeout)
- payload · method · L62-L64 — def payload(self)
- _install · function · L67-L70 — def _install(monkeypatch, response: dict) -> _Capture
- _call · function · L73-L92 — def _call( call_id, raw, arguments, *, name="lookup", ordinal=0, parse_error=None, meta=None, )
- _assert_reply · function · L95-L104 — def _assert_reply(result, content, calls, wire_state)
- _text_body · function · L107-L116 — def _text_body(text="Done.")
- test_openai_chat_blocking_tools_and_lossless_call_normalization · function · L119-L161 — def test_openai_chat_blocking_tools_and_lossless_call_normalization(monkeypatch)
- test_malformed_openai_arguments_keep_raw_text_and_parse_error · function · L164-L199 — def test_malformed_openai_arguments_keep_raw_text_and_parse_error(monkeypatch)
- test_registry_control_specs_are_accepted_by_public_chat · function · L202-L215 — def test_registry_control_specs_are_accepted_by_public_chat(monkeypatch)
- test_openai_canonical_tool_result_history_round_trips · function · L218-L268 — def test_openai_canonical_tool_result_history_round_trips(monkeypatch)
- test_chat_keeps_legacy_fields_and_adds_canonical_tool_fields · function · L271-L278 — def test_chat_keeps_legacy_fields_and_adds_canonical_tool_fields(monkeypatch)
- _emit_interleaved · function · L281-L329 — def _emit_interleaved(on_event)
- test_openai_chat_sse_aggregates_interleaved_calls_losslessly · function · L332-L403 — def test_openai_chat_sse_aggregates_interleaved_calls_losslessly(monkeypatch)
- fake_sse · function · L335-L337 — def fake_sse(url, payload, headers, timeout, on_event)
- test_openai_chat_sse_rejects_partial_call_without_terminal_event · function · L406-L437 — def test_openai_chat_sse_rejects_partial_call_without_terminal_event(monkeypatch)
- partial · function · L407-L428 — def partial(url, payload, headers, timeout, on_event)
- test_openai_chat_sse_error_event_is_not_an_empty_success · function · L440-L451 — def test_openai_chat_sse_error_event_is_not_an_empty_success(monkeypatch)
- error · function · L441-L442 — def error(url, payload, headers, timeout, on_event)
- test_openai_request_burst_event_preserves_typed_failure · function · L454-L487 — def test_openai_request_burst_event_preserves_typed_failure(monkeypatch)
- error · function · L457-L466 — def error(_url, _payload, _headers, _timeout, on_event)
- test_exhausted_typed_stream_failure_never_gets_a_second_blocking_budget · function · L493-L515 — def test_exhausted_typed_stream_failure_never_gets_a_second_blocking_budget( monkeypatch, status, retryable )
- typed_failure · function · L498-L501 — def typed_failure(*_args)
- _assert_stream_fallback · function · L518-L527 — def _assert_stream_fallback(monkeypatch, fake_sse)
- test_openai_empty_stream_falls_back_before_any_semantic_event · function · L530-L534 — def test_openai_empty_stream_falls_back_before_any_semantic_event(monkeypatch)
- empty_sse · function · L531-L532 — def empty_sse(url, payload, headers, timeout, on_event)
- test_openai_stream_read_error_falls_back_before_first_event · function · L537-L541 — def test_openai_stream_read_error_falls_back_before_first_event(monkeypatch)
- broken_sse · function · L538-L539 — def broken_sse(url, payload, headers, timeout, on_event)
- test_openai_nonretryable_stream_compatibility_refusal_falls_back_once · function · L545-L553 — def test_openai_nonretryable_stream_compatibility_refusal_falls_back_once( monkeypatch, status )
- unsupported · function · L548-L551 — def unsupported(*_args)