Spaces:
Running
Running
Asish Karthikeya Gogineni commited on
Commit ·
cddcaaf
1
Parent(s): 7a7972b
fix: Simplify __init__.py to fix import error
Browse files- code_chatbot/__init__.py +2 -29
code_chatbot/__init__.py
CHANGED
|
@@ -1,35 +1,8 @@
|
|
| 1 |
"""
|
| 2 |
Code Chatbot - AI-powered codebase assistant.
|
| 3 |
-
|
| 4 |
-
Core modules:
|
| 5 |
-
- rag: Chat engine with RAG
|
| 6 |
-
- indexer: Vector database indexing
|
| 7 |
-
- chunker: AST-aware code chunking
|
| 8 |
-
- merkle_tree: Incremental change detection
|
| 9 |
-
- mcp_server/mcp_client: Code search & refactoring tools
|
| 10 |
-
- agents/crews: Multi-agent workflows
|
| 11 |
"""
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
|
| 15 |
-
from .config import get_default_config
|
| 16 |
-
|
| 17 |
-
# Indexing
|
| 18 |
-
from .indexer import Indexer
|
| 19 |
-
from .chunker import CodeChunker
|
| 20 |
-
|
| 21 |
-
# Tools
|
| 22 |
-
from .mcp_client import MCPClient
|
| 23 |
-
|
| 24 |
-
__all__ = [
|
| 25 |
-
# Core
|
| 26 |
-
'ChatEngine',
|
| 27 |
-
'get_default_config',
|
| 28 |
-
# Indexing
|
| 29 |
-
'Indexer',
|
| 30 |
-
'CodeChunker',
|
| 31 |
-
# Tools
|
| 32 |
-
'MCPClient',
|
| 33 |
-
]
|
| 34 |
|
| 35 |
__version__ = "2.0.0"
|
|
|
|
| 1 |
"""
|
| 2 |
Code Chatbot - AI-powered codebase assistant.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
"""
|
| 4 |
|
| 5 |
+
# Keep imports minimal to avoid circular imports
|
| 6 |
+
# Import on demand when needed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
__version__ = "2.0.0"
|