mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 11:40:47 +00:00
BIG PYTHON REFACTOR
Python scripts moved out of python/ folder to root to be unified with plugins + frontend extension around api calls
This commit is contained in:
parent
f94b7d742c
commit
d02dda3667
326 changed files with 1096 additions and 862 deletions
|
|
@ -1,14 +0,0 @@
|
|||
from python.helpers.api import ApiHandler, Request, Response
|
||||
|
||||
from python.helpers import settings
|
||||
|
||||
from typing import Any
|
||||
|
||||
|
||||
class SetSettings(ApiHandler):
|
||||
async def process(self, input: dict[Any, Any], request: Request) -> dict[Any, Any] | Response:
|
||||
frontend = input.get("settings", input)
|
||||
backend = settings.convert_in(settings.Settings(**frontend))
|
||||
backend = settings.set_settings(backend)
|
||||
out = settings.convert_out(backend)
|
||||
return dict(out)
|
||||
Loading…
Add table
Add a link
Reference in a new issue