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

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"
}