File size: 1,647 Bytes
0b45200
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python3
"""
CLI interface to test the Capital Project Orchestrator
"""
import sys
import os

# Add src directory to path
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'src'))

from orchestrator.master_orchestrator import MasterOrchestrator

def main():
    print("\n🏗️  CAPITAL PROJECT EXECUTIVE DASHBOARD")
    print("="*80)
    
    # Initialize orchestrator
    orchestrator = MasterOrchestrator()
    
    # Example queries to test
    example_queries = [
        "What is the current supplier risk across our portfolio?",
        "Show me the contract exposure and CE backlog",
        "Are there any critical issues I should be aware of?",
    ]
    
    print("\nExample queries:")
    for i, q in enumerate(example_queries, 1):
        print(f"  {i}. {q}")
    
    print("\n" + "-"*80)
    
    # Interactive mode
    while True:
        query = input("\n💬 Enter your query (or 'q' to quit): ").strip()
        
        if query.lower() in ['q', 'quit', 'exit']:
            print("\n👋 Goodbye!")
            break
        
        if not query:
            continue
        
        # Process query through orchestrator
        result = orchestrator.orchestrate(query)
        
        # Display formatted output
        print(orchestrator.format_output(result))
        
        # Ask if user wants to continue
        continue_prompt = input("\nPress Enter to ask another question or 'q' to quit: ").strip()
        if continue_prompt.lower() in ['q', 'quit', 'exit']:
            print("\n👋 Goodbye!")
            break

if __name__ == "__main__":
    main()