fix: correct import paths in ai_agent module #39

Merged
shoko merged 1 commits from fix/ai-agent-imports into main 2026-04-09 17:32:21 +02:00
Owner

Summary

Fixed import errors that prevented the backend from starting:

Changes:

  1. crew.py: Fixed relative import path from ..core.config to ...core.config (needed 3 levels up to reach app/)
  2. init.py: Updated exports to match actual class names:
    • CrewAgent -> TradingCrew, get_trading_crew
    • LLMConnector -> MiniMaxLLM, MiniMaxConnector

Root cause:

The import paths were incorrect for the module structure. File app/services/ai_agent/crew.py needed to reach app/core/config.py, requiring 3 levels up.

Also removed:

  • Untracked junk files: src/backend/=0.3.0, src/backend/=2.0
## Summary Fixed import errors that prevented the backend from starting: ### Changes: 1. **crew.py**: Fixed relative import path from ..core.config to ...core.config (needed 3 levels up to reach app/) 2. **__init__.py**: Updated exports to match actual class names: - CrewAgent -> TradingCrew, get_trading_crew - LLMConnector -> MiniMaxLLM, MiniMaxConnector ### Root cause: The import paths were incorrect for the module structure. File app/services/ai_agent/crew.py needed to reach app/core/config.py, requiring 3 levels up. ### Also removed: - Untracked junk files: src/backend/=0.3.0, src/backend/=2.0
shoko added 1 commit 2026-04-09 17:29:18 +02:00
- Fix relative import path in crew.py (from ..core to ...core)
- Update __init__.py exports to match actual class names
- Remove incorrect CrewAgent and LLMConnector exports
han approved these changes 2026-04-09 17:32:06 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko merged commit a2f549c056 into main 2026-04-09 17:32:21 +02:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/randebu#39