evo-ai icon indicating copy to clipboard operation
evo-ai copied to clipboard

Error loading agents

Open mathuzabr opened this issue 7 months ago • 1 comments

Esse erro ocorreu após a criação de vários agentes que foram adicionados como subagentes ao agente principal. A partir do momento em que o erro apareceu, não foi mais possível utilizar a aplicação. Mesmo após reiniciar os containers, o problema persiste. Print: https://prnt.sc/qEwZe6VmL8hk

File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 176, in serialize_response

raise ResponseValidationError(

fastapi.exceptions.ResponseValidationError: 1 validation errors:

{'type': 'value_error', 'loc': ('response', 3, 'config'), 'msg': 'Value error, Agent loop must have at least one sub-agent', 'input': {'api_key': '', 'sub_agents': [], 'custom_mcp_servers': []}, 'ctx': {'error': ValueError('Agent loop must have at least one sub-agent')}}

fastapi.exceptions.ResponseValidationError: 1 validation errors:

{'type': 'value_error', 'loc': ('response', 3, 'config'), 'msg': 'Value error, Agent loop must have at least one sub-agent', 'input': {'api_key': '', 'sub_agents': [], 'custom_mcp_servers': []}, 'ctx': {'error': ValueError('Agent loop must have at least one sub-agent')}}

INFO: 172.22.0.2:45570 - "GET /api/v1/agents/?skip=0&limit=100 HTTP/1.1" 500 Internal Server Error

ERROR: Exception in ASGI application

Traceback (most recent call last):

File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi

result = await app(  # type: ignore[func-returns-value]

mathuzabr avatar May 17 '25 05:05 mathuzabr

Irei coreigir isso hoje. Obrigado pelo feedback

DavidsonGomes avatar May 17 '25 10:05 DavidsonGomes