Error loading agents
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]
Irei coreigir isso hoje. Obrigado pelo feedback