mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-30 12:40:33 +00:00
Better initialization
This commit is contained in:
parent
4480c72a09
commit
7528c79fc1
13 changed files with 100 additions and 133 deletions
|
|
@ -965,9 +965,9 @@ def _apply_settings(previous: Settings | None):
|
|||
global _settings
|
||||
if _settings:
|
||||
from agent import AgentContext
|
||||
from initialize import initialize
|
||||
from initialize import initialize_agent
|
||||
|
||||
config = initialize()
|
||||
config = initialize_agent()
|
||||
for ctx in AgentContext._contexts.values():
|
||||
ctx.config = config # reinitialize context config with new settings
|
||||
# apply config to agents
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue