AgentGraph / agentgraph /input /__init__.py
wu981526092's picture
🚀 Deploy AgentGraph: Complete agent monitoring and knowledge graph system
c2ea5ed
Raw
History Blame Contribute Delete
2.42 kB
"""
Input Processing and Analysis
This module handles the first stage of the agent monitoring pipeline:
- Trace uploading and validation
- Content analysis and log type detection
- Boundary detection and semantic analysis
- Text chunking and preprocessing
Functional Organization:
- trace_management: Trace operations and lifecycle management
- content_analysis: Log type detection, boundary detection, semantic analysis
- text_processing: Text chunking, splitting strategies, and preprocessing
Usage:
from agentgraph.input.trace_management import analyze_trace_characteristics
from agentgraph.input.content_analysis import LogTypeDetector
from agentgraph.input.text_processing import ChunkingService
"""
# Import main components
from .trace_management import (
analyze_trace_characteristics, display_trace_summary, preprocess_content_for_cost_optimization
)
from .content_analysis import (
LogType, LogTypeDetector, DetectionResult,
BoundaryDetector, AgentBoundary, BoundaryType, BoundaryConfidence,
BaseBoundaryDetector, FrameworkSpecificDetector, GenericAgentPatternDetector, StructuralDetector,
SemanticAnalyzer, SemanticBreakpoint, SemanticSegment
)
from .text_processing import (
ChunkingService,
TextChunk, BaseSplitter, CharacterSplitter, JSONSplitter,
AgentAwareSemanticSplitter, PromptInteractionSplitter
)
from .parsers import (
BaseTraceParser, LangSmithParser, ParsedMetadata,
create_parser, detect_trace_source, parse_trace_with_context,
get_context_documents_for_source
)
__all__ = [
# Trace analysis
'analyze_trace_characteristics', 'display_trace_summary', 'preprocess_content_for_cost_optimization',
# Content analysis
'LogType', 'LogTypeDetector', 'DetectionResult',
'BoundaryDetector', 'AgentBoundary', 'BoundaryType', 'BoundaryConfidence',
'BaseBoundaryDetector', 'FrameworkSpecificDetector', 'GenericAgentPatternDetector', 'StructuralDetector',
'SemanticAnalyzer', 'SemanticBreakpoint', 'SemanticSegment',
# Text processing
'ChunkingService',
'TextChunk', 'BaseSplitter', 'CharacterSplitter', 'JSONSplitter',
'AgentAwareSemanticSplitter', 'PromptInteractionSplitter',
# Platform-specific parsers
'BaseTraceParser', 'LangSmithParser', 'ParsedMetadata',
'create_parser', 'detect_trace_source', 'parse_trace_with_context',
'get_context_documents_for_source'
]