File size: 1,449 Bytes
c2ea5ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""
Knowledge Graph Extraction and Processing

This module handles the second stage of the agent monitoring pipeline:
- Knowledge graph extraction from text chunks
- Multi-agent crew-based knowledge extraction
- Hierarchical batch merging of knowledge graphs
- Knowledge graph comparison and analysis

Functional Organization:
- knowledge_extraction: Multi-agent crew-based knowledge extraction
- graph_processing: Knowledge graph processing and sliding window analysis
- graph_utilities: Graph comparison, merging, and utility functions

Usage:
    from agentgraph.extraction.knowledge_extraction import agent_monitoring_crew
    from agentgraph.extraction.graph_processing import SlidingWindowMonitor
    from agentgraph.extraction.graph_utilities import KnowledgeGraphMerger
"""

# Import main components
from .knowledge_extraction import (
    agent_monitoring_crew_factory,
    create_agent_monitoring_crew,
    extract_knowledge_graph_with_context
)

from .graph_processing import SlidingWindowMonitor

from .graph_utilities import (
    GraphComparisonMetrics, KnowledgeGraphComparator,
    KnowledgeGraphMerger
)

__all__ = [
    # Knowledge extraction
    'agent_monitoring_crew_factory',
    'create_agent_monitoring_crew', 
    'extract_knowledge_graph_with_context',
    
    # Graph processing
    'SlidingWindowMonitor',
    
    # Graph utilities
    'GraphComparisonMetrics', 'KnowledgeGraphComparator',
    'KnowledgeGraphMerger'
]