File size: 552 Bytes
bf292d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from abc import ABC, abstractmethod
from typing import Any

class ILLMRunner(ABC):
    Type: str = "BaseLLM"
    IsEnabled: bool = True
    IsStateStarting: bool = False
    IsStateFailed: bool = False

    @abstractmethod
    async def StartProcess(self, llmServiceObj: dict) -> None: ...
    @abstractmethod
    async def RemoveProcess(self, sessionId: str) -> None: ...
    @abstractmethod
    async def StopRequest(self, sessionId: str) -> None: ...
    @abstractmethod
    async def SendInputAndGetResponse(self, llmServiceObj: dict) -> None: ...