from __future__ import annotations from abc import ABC, abstractmethod from ..models import AgentInfo, ChatMessage, SendMessageResponse, SessionSummary, StatusResponse class BackendService(ABC): @abstractmethod async def get_status(self) -> StatusResponse: ... @abstractmethod async def list_sessions(self) -> list[SessionSummary]: ... @abstractmethod async def get_messages(self, session_id: str) -> list[ChatMessage]: ... @abstractmethod async def send_message(self, session_id: str, message: str) -> SendMessageResponse: ... @abstractmethod async def list_agents(self) -> list[AgentInfo]: ...