Commit 44a16c1
fix(backend): resolve circular imports and Pydantic model rebuild issues
- Fix circular import between integrations.py and library/model.py by moving Webhook import to TYPE_CHECKING
- Add runtime import for LibraryAgentPreset in integrations.py with explanatory comment
- Create data/__init__.py to handle proper Pydantic model rebuilding after all imports are available
- Update library/model.py imports to use module prefixes (block_model, graph_model)
- Fix BlockInput, GraphTriggerInfo, and GraphModel forward reference issues
- Ensure NodeModel and LibraryAgentPreset models are properly rebuilt for forward references
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent b45315d commit 44a16c1
File tree
2 files changed
+11
-5
lines changed- autogpt_platform/backend
- backend/data
- snapshots
2 files changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
67 | | - | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
| |||
0 commit comments