ref: Turn LLM into domain model to be implemented by Groq

This commit is contained in:
Marty Oehme 2025-06-09 22:10:40 +02:00
parent 80bb27fd47
commit 4ae093f367
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 27 additions and 3 deletions

18
prophet/domain/llm.py Normal file
View file

@ -0,0 +1,18 @@
from typing import Protocol
from prophet.domain.original import Original
class LLMClient(Protocol):
def get_alternative_title_suggestions(self, original_content: str) -> str:
raise NotImplementedError
def rewrite_title(
self, original_content: str, suggestions: str | None = None
) -> str:
raise NotImplementedError
def rewrite_summary(
self, original: Original, improved_title: str | None = None
) -> str:
raise NotImplementedError