forked from langchain-ai/oap-langgraph-tools-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_complete_structure.py
More file actions
42 lines (36 loc) · 1.34 KB
/
test_complete_structure.py
File metadata and controls
42 lines (36 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
print("Testing SuiteCRE imports...\n")
# Test 1: Main CRM tools
try:
from suitecrm_tools import CRM_TOOLS, CORE_CRM_TOOLS, DOCUMENT_TOOLS
print(f"✓ CRM_TOOLS: {len(CRM_TOOLS)} tools total")
print(f" - Core CRM: {len(CORE_CRM_TOOLS)} tools")
print(f" - Documents: {len(DOCUMENT_TOOLS)} tools")
except ImportError as e:
print(f"✗ CRM tools import failed: {e}")
# Test 2: Lead generation
try:
from tools_agent.utils.tools.lead_generation.scrapers import LEAD_GENERATION_TOOLS
print(f"✓ Lead generation: {len(LEAD_GENERATION_TOOLS)} tools")
except ImportError as e:
print(f"✗ Lead gen import failed: {e}")
# Test 3: Integrations
try:
from tools_agent.integrations.langsmith import setup_langsmith, create_run_metadata
print("✓ LangSmith integration imported")
except ImportError as e:
print(f"✗ LangSmith import failed: {e}")
# Test 4: Token utilities
try:
from tools_agent.utils.token import fetch_tokens, get_model_api_key
print("✓ Token utilities imported")
except ImportError as e:
print(f"✗ Token utils import failed: {e}")
# Test 5: Agent graph
try:
from tools_agent.agent import graph, GraphConfigPydantic
print("✓ Agent graph imported")
except ImportError as e:
print(f"✗ Agent import failed: {e}")
print("\n" + "="*50)
print("All imports successful! ✅")
print("="*50)