find_path
Find the shortest path between two nodes in a FastAPI project, like from an API route to a database table. Uses directed paths first, then falls back to undirected.
Instructions
Shortest paths between two nodes, e.g. from a route to a table ("POST /chat" → "chat_logs").
Directed paths are tried first; if none exists, direction is ignored and directed is false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| target | Yes | ||
| max_paths | No | ||
| project_root | Yes |