b4041f6892
Remove the obsolete dashboard now that Langfuse is the analytics surface.\nIntroduce focused transport, model, and configuration modules while preserving the ai_review facade, and document the current runtime architecture.
18 lines
498 B
Python
18 lines
498 B
Python
"""Stable interfaces shared by the review pipeline and its adapters."""
|
|
from __future__ import annotations
|
|
|
|
from typing import Protocol
|
|
|
|
|
|
class Forge(Protocol):
|
|
def get(self, path: str, accept: str = "application/json") -> tuple[int, bytes]: ...
|
|
def post(self, path: str, body: dict) -> tuple[int, bytes]: ...
|
|
|
|
|
|
class Reviewer(Protocol):
|
|
def review(self, system: str, user: str, max_tokens: int) -> str: ...
|
|
|
|
|
|
class Telemetry(Protocol):
|
|
def emit(self, **event: object) -> None: ...
|