Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/test_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
LLMError,
LLMRequestError,
LLMStructuredOutput,
SensitiveLLMDiagnostics,
parse_result,
)

Expand Down Expand Up @@ -54,6 +55,10 @@ def rendered_text_logging_enabled(self) -> bool:
raise RuntimeError("diagnostic state unavailable")


def test_sensitive_llm_diagnostics_remains_public() -> None:
assert SensitiveLLMDiagnostics.__name__ == "SensitiveLLMDiagnostics"


async def test_completion_client_stub_requires_a_configured_response() -> None:
client = _CompletionClientStub()

Expand Down
336 changes: 0 additions & 336 deletions weather_briefing/llm.py

This file was deleted.

18 changes: 18 additions & 0 deletions weather_briefing/llm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""LLM contracts, schema, adapters, and result conversion."""

from .any_llm import AnyLLMStructuredProvider, create_any_llm_provider
from .base import LLMError, LLMProvider, LLMRequestError, SensitiveLLMDiagnostics, serialize_llm_payload
from .result import parse_result
from .schema import LLMStructuredOutput

__all__ = [
"AnyLLMStructuredProvider",
"LLMError",
"LLMProvider",
"LLMRequestError",
"LLMStructuredOutput",
"SensitiveLLMDiagnostics",
"create_any_llm_provider",
"parse_result",
"serialize_llm_payload",
]
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
Loading