Commit b4b22a6
fix: resolve ForwardRef TypeError for praisonai code command
Fixes #115
Resolves TypeError: ForwardRef._evaluate() missing recursive_guard argument when running `praisonai code`.
## Changes
- Moved crewai import from module level to conditional import in handle_direct_prompt
- The `code` command doesn't need crewai, only chainlit and other UI dependencies
- Follows existing pattern for optional dependencies
## Testing
- `praisonai code` now works without requiring crewai installation
- Direct prompt functionality still works when crewai is available
Co-authored-by: MervinPraison <MervinPraison@users.noreply.github.com>1 parent 62e539e commit b4b22a6
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
561 | 562 | | |
562 | 563 | | |
563 | 564 | | |
| |||
0 commit comments