Spaces:
Sleeping
Sleeping
File size: 473 Bytes
d04144c a1e4405 d04144c a1e4405 9e95393 a1e4405 9e95393 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | from __future__ import annotations
from .schemas import FinalResponse
class CustomerAIWork:
"""Public service boundary. Runtime ownership lives in CustomerAIInternalCore."""
def __init__(self, core):
self.core = core
async def run(self, session_id: str, message: str) -> FinalResponse:
return await self.core.run(session_id, message)
def delete_session(self, session_id: str) -> bool:
return self.core.state.delete(session_id)
|