mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-08-11 09:25:42 +00:00
dec's updates
This commit is contained in:
commit
a00c433658
36 changed files with 5215 additions and 136 deletions
|
|
@ -85,4 +85,4 @@ class Message(ApiHandler):
|
|||
id=message_id,
|
||||
)
|
||||
|
||||
return context.communicate(UserMessage(message, attachment_paths)), context
|
||||
return context.communicate(UserMessage(message, attachment_paths)), context
|
||||
|
|
|
|||
|
|
@ -3,9 +3,11 @@ from flask import Request, Response
|
|||
|
||||
from python.helpers import settings
|
||||
|
||||
from typing import Any
|
||||
|
||||
|
||||
class SetSettings(ApiHandler):
|
||||
async def process(self, input: dict, request: Request) -> dict | Response:
|
||||
async def process(self, input: dict[Any, Any], request: Request) -> dict[Any, Any] | Response:
|
||||
set = settings.convert_in(input)
|
||||
set = settings.set_settings(set)
|
||||
return {"settings": set}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue