mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 11:40:47 +00:00
Better initialization
This commit is contained in:
parent
4480c72a09
commit
7528c79fc1
13 changed files with 100 additions and 133 deletions
|
|
@ -8,7 +8,7 @@ from fastmcp import FastMCP
|
|||
|
||||
from agent import AgentContext, AgentContextType, UserMessage
|
||||
from python.helpers.persist_chat import save_tmp_chat, remove_chat
|
||||
from initialize import initialize
|
||||
from initialize import initialize_agent
|
||||
from python.helpers.print_style import PrintStyle
|
||||
from python.helpers import settings
|
||||
from starlette.middleware import Middleware
|
||||
|
|
@ -139,7 +139,7 @@ async def send_message(
|
|||
# If we continue a conversation, it must be persistent
|
||||
persistent_chat = True
|
||||
else:
|
||||
config = initialize()
|
||||
config = initialize_agent()
|
||||
context = AgentContext(config=config, type=AgentContextType.MCP)
|
||||
|
||||
if not message:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue