Xiaogang Liao cf25b1a145 fix: register report_parse router in main.py (missing include_router) 1 ماه پیش
..
app cf25b1a145 fix: register report_parse router in main.py (missing include_router) 1 ماه پیش
docs e93392b303 chore: auto bump version and changelog [skip ci] 2 ماه پیش
src f3e72756b5 fix(langgraph): 问卷推理超时防护 — gunicorn timeout 60→300s + ChatOpenAI timeout=180/max_retries=1 1 ماه پیش
tests f001f5e470 fix(langgraph): GraphState 补 _prompt 字段 + 测试 mock 目标修正为模块内引用 1 ماه پیش
.env.example 7563afba0c feat(langgraph): scaffold Python sidecar project 2 ماه پیش
.gitignore 8756aee099 chore(langgraph): harden Dockerfile + compose host + ignore venv tarballs 2 ماه پیش
Dockerfile ed18ee7426 chore: auto bump version and changelog [skip ci] 1 ماه پیش
README.md 9a5acd1514 chore: auto bump version and changelog [skip ci] 1 ماه پیش
docker-compose.yml d6f623cd6b fix(langgraph): compose 显式覆盖 JAVA_CONTEXT_URL 指向宿主机 9082,修复容器内 chat load_context 回调 Java 失败 1 ماه پیش
prometheus.yml e93392b303 chore: auto bump version and changelog [skip ci] 2 ماه پیش
pyproject.toml d628a149ea chore: sync PROJECT-OVERVIEW + pin chromadb + harden Dockerfile COPY 2 ماه پیش
requirements.txt 1e6c1426f2 feat: 提取 PDF 解析核心模块到 LangGraph parsers 1 ماه پیش
start.sh 58a248a38b docs(langgraph): sync phase1-4 plan checkpoints; add langgraph start.sh; ignore .venv 2 ماه پیش

README.md

CFC LangGraph 问卷生成服务

关系评估问卷 AI 出题 graph,部署到 ai.etotem.com.cn

启动

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

测试

cd cfc-langgraph
pytest tests/ -v

契约

Request:

{
  "member_name": "小明",
  "relationship_type": "child",
  "family_context": {}
}

Response:

{
  "questionnaire_json": "<stringified JSON>",
  "version": "20260804115900"
}