build_knowledge_graph
Create or update a FastAPI knowledge graph connecting routes, handlers, schemas, models, and calls, returning its statistics. Caches changes for speed; force rebuilds from scratch.
Instructions
Build or refresh the project's FastAPI knowledge graph and return its statistics.
The graph links routes, handlers, dependencies, schemas, ORM models, SQL tables, templates and function calls. It is cached in /.fastapi-architect/ and only changed files are re-parsed, so other graph tools are fast. Use force=True to rebuild from scratch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| project_root | Yes |