File size: 1,012 Bytes
27f6252
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""
Agentic Adaptive RAG for CVE-KGRAG.

Components
----------
- agent_config : Central configuration for agent + Mem0
- prompts      : All LLM prompt templates (single source of truth)
- memory       : Mem0 OSS wrapper for long-term recall
- tools        : 3 agent tools (search, traverse_kg, search_web)
- middleware   : RAGMiddleware hooks for deterministic policy enforcement
- adaptive_rag : LangGraph state machine with 10 nodes

Usage
-----
    from src.agents.adaptive_rag import compile_agent_graph
    graph = compile_agent_graph(llm_client, rag_system, graph_service, memory)

    state = {"messages": [HumanMessage(content="What is CVE-2021-44228?")],
             "mem0_user_id": "session_123"}
    for event in graph.stream(state):
        print(event)
"""

from src.agents.adaptive_rag import compile_agent_graph, RAGState
from src.agents.memory import CVEKGMemory
from src.agents.tools import create_agent_tools

__all__ = ["compile_agent_graph", "RAGState", "CVEKGMemory", "create_agent_tools"]