Agnes Agent 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
..
app 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
docs 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
scripts 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
src 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
tests 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
tests_contract 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
.dockerignore 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
.env.example 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
.gitignore 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
AGENTS.md 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
Dockerfile 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
README.md 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
conftest.py 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
deploy.sh 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
docker-compose.yml 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
prometheus.yml 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
pyproject.toml 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
requirements.txt 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
requirements_frozen.txt 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas
start.sh 16cf6aeba2 restore(batch 13/28): 恢复被误删源码与文档 hace 2 horas

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