feat: add BFF backend scaffold for mobile app
This commit is contained in:
1 parent
03d21f607f
commit
591fd991fa
14 files changed
+462
No files matched your search
@@ -0,0 +1,22 @@
|
||||
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]: ...
|
||||
Reference in new issue
Block a user