mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 04:00:26 +00:00
feat: API: support api_key and localhost without auth, signal handler for term/int
This commit is contained in:
parent
fbcb579a91
commit
c2721dbcd9
2 changed files with 116 additions and 5 deletions
|
|
@ -20,6 +20,18 @@ class ApiHandler:
|
|||
self.app = app
|
||||
self.thread_lock = thread_lock
|
||||
|
||||
@classmethod
|
||||
def requires_loopback(cls):
|
||||
return False
|
||||
|
||||
@classmethod
|
||||
def requires_api_key(cls):
|
||||
return False
|
||||
|
||||
@classmethod
|
||||
def requires_auth(cls):
|
||||
return True
|
||||
|
||||
@abstractmethod
|
||||
async def process(self, input: Input, request: Request) -> Output:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue