Expand description
Shared compact responses for agent-facing MCP and CLI queries.
This module is the contract boundary between graph retrieval and agent presentation. Both interfaces must call these functions so ranking, ambiguity handling, and response budgets cannot drift.
Structs§
- Agent
Callers Response - Agent
Query Options - Agent
Search Response - Agent
Subgraph Response - Agent
Symbol Context Response - Caller
Evidence - Confidence
Mix - Coverage
- Neighborhood
Coverage - Relation
Evidence - Search
Coverage - Search
Evidence - Symbol
Candidate
Enums§
Functions§
- find_
callers - Find callers for exactly one symbol and return a globally-budgeted response. Ambiguous short names return candidates without traversing the graph.
- format_
search - Format ranked search hits as compact implementation evidence shared by CLI and MCP. Retrieval may be lexical-only or RRF hybrid; presentation is stable.
- get_
subgraph - Return a compact, exact-ID neighborhood digest. Only direct relationships are serialized as evidence; deeper traversal contributes coverage counts.
- symbol_
context - 360° view of exactly one resolved symbol: direct callers, callees, and
type usages. Unlike the old name-based
GraphStore::symbol_context, this goes throughresolve_symbolfirst so an ambiguous short name (e.g. two unrelatedbeginArraymethods) surfaces candidates instead of silently picking one — the same ambiguity handlingfind_callers/get_subgraphalready have.