# CFC LangGraph 问卷生成服务 关系评估问卷 AI 出题 graph,部署到 `ai.etotem.com.cn`。 ## 启动 ```bash cd cfc-langgraph pip install -r requirements.txt cp .env.example .env # 填写 OPENAI_API_KEY / OPENAI_BASE_URL / LLM_MODEL uvicorn src.app:app --host 0.0.0.0 --port 9000 ``` ## 端点 | Method | Path | 说明 | |--------|------|------| | GET | `/health` | 健康检查 | | POST | `/api/v1/questionnaire/generate` | 生成关系问卷 JSON | ## 测试 ```bash cd cfc-langgraph pytest tests/ -v ``` ## 契约 Request: ```json { "member_name": "小明", "relationship_type": "child", "family_context": {} } ``` Response: ```json { "questionnaire_json": "", "version": "20260804115900" } ```