| 12345678910111213141516 |
- # -*- coding: utf-8 -*-
- from uuid import uuid4
- from abc import abstractmethod
- from digitalHuman.protocol import BaseMessage
- from digitalHuman.core import BaseRunner
- __all__ = ["BaseAgent"]
- class BaseAgent(BaseRunner):
- async def createConversation(self, **kwargs) -> str:
- return str(uuid4())
- @abstractmethod
- async def run(self, input: BaseMessage, **kwargs):
- raise NotImplementedError
|