Fix ResponseValidationError: change response field to content

FastAPI validation was failing because stage1 results used 'response'
field but Pydantic expected 'content'. Changed field name in:
- stage1_collect_responses: returns content instead of response
- stage2_collect_rankings: references result['content']
- stage3_synthesize_final: references result['content']
- MCP server: reads resp.get("content", "") for content_blocks
This commit is contained in:
Krishna Kumar
2025-12-30 03:54:02 -06:00
parent 8f05b67887
commit 2b2207035c
2 changed files with 4 additions and 4 deletions

View File

@@ -145,7 +145,7 @@ async def council_query(
"type": "council_response",
"model": model_id,
"model_display_name": get_display_name(model_id),
"response": resp.get("response", ""),
"response": resp.get("content", ""),
"stage": 1
})