feat(ai): python graphql federation subgraph with strawberry

- strawberry-graphql[asgi] dependency added

- GeneratedReport and LessonPlanStatus @key types with resolve_reference

- RouterAuthMiddleware validates Router-Authorization header on /graphql

- GraphQL endpoint mounted at /graphql in FastAPI app

- WorkflowStateStore injected for lesson plan status resolution
This commit is contained in:
SpecialX
2026-07-15 00:56:37 +08:00
parent 35aa56537d
commit 1dcdcf23fd
6 changed files with 210 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ dependencies = [
"redis>=5.1.0",
# 重试机制LLM 调用 + 下游 gRPC
"tenacity>=9.0.0",
# GraphQL Federation 2 子图v2.1 M1Apollo Router 组合)
"strawberry-graphql[asgi]>=0.257.0",
]
[tool.uv.sources]