Spaces:
Sleeping
Sleeping
Commit ·
d67e022
1
Parent(s): e56aeb3
Update services/pipeline_executor.py
Browse files
services/pipeline_executor.py
CHANGED
|
@@ -13,9 +13,14 @@ try:
|
|
| 13 |
from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
|
| 14 |
from services.master_tools import get_master_tools as get_langchain_tools
|
| 15 |
BEDROCK_AVAILABLE = True
|
| 16 |
-
|
|
|
|
| 17 |
BEDROCK_AVAILABLE = False
|
| 18 |
-
print("
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
# For CrewAI fallback
|
| 21 |
from services.agent_crewai import run_agent_streaming as crewai_run_streaming
|
|
|
|
| 13 |
from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
|
| 14 |
from services.master_tools import get_master_tools as get_langchain_tools
|
| 15 |
BEDROCK_AVAILABLE = True
|
| 16 |
+
print("✅ Bedrock LangChain imports successful - BEDROCK_AVAILABLE = True")
|
| 17 |
+
except ImportError as e:
|
| 18 |
BEDROCK_AVAILABLE = False
|
| 19 |
+
print(f"❌ WARNING: LangChain Bedrock not available - {str(e)}")
|
| 20 |
+
print(" Pipeline execution will use CrewAI only")
|
| 21 |
+
except Exception as e:
|
| 22 |
+
BEDROCK_AVAILABLE = False
|
| 23 |
+
print(f"❌ ERROR: Bedrock import failed - {str(e)}")
|
| 24 |
|
| 25 |
# For CrewAI fallback
|
| 26 |
from services.agent_crewai import run_agent_streaming as crewai_run_streaming
|