wu981526092's picture
🚀 Deploy AgentGraph: Complete agent monitoring and knowledge graph system
c2ea5ed
"""
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'
]