|
|
14 小時之前 | |
|---|---|---|
| .. | ||
| app | 20 小時之前 | |
| docs | 1 月之前 | |
| src | 3 天之前 | |
| tests | 3 周之前 | |
| .dockerignore | 1 周之前 | |
| .env | 1 月之前 | |
| .env.example | 1 月之前 | |
| .gitignore | 1 月之前 | |
| Dockerfile | 1 周之前 | |
| README.md | 1 月之前 | |
| deploy.sh | 1 月之前 | |
| docker-compose.yml | 2 天之前 | |
| prometheus.yml | 1 月之前 | |
| pyproject.toml | 4 周之前 | |
| requirements.txt | 1 天之前 | |
| requirements_frozen.txt | 1 天之前 | |
| start.sh | 1 月之前 | |
关系评估问卷 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"
}