mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 19:51:11 +00:00
fix: change a2a context type to BACKGROUND
This commit is contained in:
parent
f3605eb53b
commit
5e3b30465a
3 changed files with 5 additions and 5 deletions
|
|
@ -140,7 +140,7 @@ async def send_message(
|
|||
persistent_chat = True
|
||||
else:
|
||||
config = initialize_agent()
|
||||
context = AgentContext(config=config, type=AgentContextType.MCP)
|
||||
context = AgentContext(config=config, type=AgentContextType.BACKGROUND)
|
||||
|
||||
if not message:
|
||||
return ToolError(
|
||||
|
|
@ -326,4 +326,4 @@ async def mcp_middleware(request: Request, call_next):
|
|||
status_code=403, detail="MCP server is disabled in settings."
|
||||
)
|
||||
|
||||
return await call_next(request)
|
||||
return await call_next(request)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue