ref: Turn LLM into domain model to be implemented by Groq
This commit is contained in:
parent
80bb27fd47
commit
4ae093f367
2 changed files with 27 additions and 3 deletions
18
prophet/domain/llm.py
Normal file
18
prophet/domain/llm.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue