feat: add BFF backend scaffold for mobile app

This commit is contained in:
OpenClaw committed 2026-03-07 02:08:25 +08:00
1 parent 03d21f607f
commit 591fd991fa
14 files changed
+462

No files matched your search

+22
View File
@@ -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]: ...