File size: 1,166 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
"""
Prompt Reconstruction and Content Reference Resolution

This module handles the third stage of the agent monitoring pipeline:
- Enriching knowledge graphs with reconstructed prompts
- Prompt template extraction and reconstruction
- Content reference resolution and context reconstruction
- Linking knowledge graph elements back to original content

Usage:
    from agentgraph.reconstruction import PromptReconstructor
    from agentgraph.reconstruction import ContentReferenceResolver
"""

from .prompt_reconstructor import (
    PromptReconstructor, 
    reconstruct_prompts_from_knowledge_graph,
    enrich_knowledge_graph_with_prompts
)
from .rag_prompt_reconstructor import (
    RagPromptReconstructor,
    reconstruct_prompts_from_knowledge_graph_rag,
    enrich_knowledge_graph_with_prompts_rag
)
from .content_reference_resolver import ContentReferenceResolver

__all__ = [
    'PromptReconstructor',
    'RagPromptReconstructor',
    'ContentReferenceResolver',
    'reconstruct_prompts_from_knowledge_graph',
    'enrich_knowledge_graph_with_prompts',
    'reconstruct_prompts_from_knowledge_graph_rag',
    'enrich_knowledge_graph_with_prompts_rag'
]