mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 20:20:42 +00:00
Allow subordinate agents to override settings
This commit is contained in:
parent
74f275c940
commit
a2a5a4c00c
3 changed files with 62 additions and 1 deletions
|
|
@ -1334,6 +1334,12 @@ def set_settings_delta(delta: dict, apply: bool = True):
|
|||
set_settings(new, apply) # type: ignore
|
||||
|
||||
|
||||
def merge_settings(original: Settings, delta: dict) -> Settings:
|
||||
merged = original.copy()
|
||||
merged.update(delta)
|
||||
return merged
|
||||
|
||||
|
||||
def normalize_settings(settings: Settings) -> Settings:
|
||||
copy = settings.copy()
|
||||
default = get_default_settings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue