bees-knees/prophet/domain/llm.py
Marty Oehme 2da0b90b1b
Some checks are pending
Create and publish a Docker image / build-and-push-image (push) Waiting to run
feat: Limit Trump mentions based on previous titles
2025-07-22 05:50:42 +02:00

24 lines
698 B
Python

from typing import Protocol
from prophet.domain.improvement import Improvement
from prophet.domain.original import Original
class LLMClient(Protocol):
def rewrite(
self, original: Original, previous_titles: list[str] | None = None
) -> Improvement:
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
def get_alternative_title_suggestions(self, original_content: str) -> str:
raise NotImplementedError