npi-ai / npi

Action library for AI Agent
https://www.npi.ai
Apache License 2.0
189 stars 7 forks source link

Human in the loop API #44

Closed wenfengwang closed 5 months ago

wenfengwang commented 5 months ago

class HITLHandler(ABC):
    @abstractmethod
    def handle(self, req: HITLRequest) -> HITLResponse:
        pass

    @abstractmethod
    def type(self) -> api_pb2.ActionType:
        pass