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
//! Knowledge Graph module for terraphim-powered search
//!
//! This module provides advanced search capabilities using terraphim_automata
//! for concept-based matching and query evaluation.
//!
//! ## Architecture
//!
//! - `builder`: Constructs knowledge graphs from tool invocations
//! - `search`: Evaluates queries against the knowledge graph
//! - `query`: Query AST for complex concept searches
//!
//! ## Example
//!
//! ```rust,ignore
//! use terraphim_session_analyzer::kg::{KnowledgeGraphBuilder, KnowledgeGraphSearch};
//! use terraphim_session_analyzer::kg::QueryNode;
//!
//! # fn main() -> anyhow::Result<()> {
//! // Build knowledge graph from tool invocations
//! let builder = KnowledgeGraphBuilder::from_tool_invocations(&tools);
//!
//! // Search using concept queries
//! let search = KnowledgeGraphSearch::new(builder);
//! let query = QueryNode::And(
//! Box::new(QueryNode::Concept("BUN".to_string())),
//! Box::new(QueryNode::Concept("install".to_string()))
//! );
//!
//! let results = search.search("bunx install packages", &query);
//! # Ok(())
//! # }
//! ```
pub use KnowledgeGraphBuilder;
pub use ;
pub use ;