pub struct RepoMapConfigBuilder { /* private fields */ }Expand description
Builder for RepoMapConfig.
Implementations§
Source§impl RepoMapConfigBuilder
impl RepoMapConfigBuilder
Sourcepub fn map_tokens(self, n: usize) -> Self
pub fn map_tokens(self, n: usize) -> Self
Set the token budget for map output (default: 1024).
Sourcepub fn repo_content_prefix(self, prefix: impl Into<String>) -> Self
pub fn repo_content_prefix(self, prefix: impl Into<String>) -> Self
Set a prefix prepended to every map output string.
Sourcepub fn max_context_window(self, n: Option<usize>) -> Self
pub fn max_context_window(self, n: Option<usize>) -> Self
Set the LLM context window size.
When set and no chat files are provided, the effective token budget is
multiplied by map_mul_no_files (default 8×).
Sourcepub fn map_mul_no_files(self, n: usize) -> Self
pub fn map_mul_no_files(self, n: usize) -> Self
Set the no-chat-files budget multiplier (default: 8).
Sourcepub fn refresh(self, mode: RefreshMode) -> Self
pub fn refresh(self, mode: RefreshMode) -> Self
Set the map cache refresh mode.
Sourcepub fn force_refresh(self, v: bool) -> Self
pub fn force_refresh(self, v: bool) -> Self
Force cache recomputation on the next call.
Sourcepub fn exclude_unranked(self, v: bool) -> Self
pub fn exclude_unranked(self, v: bool) -> Self
Exclude files whose PageRank score is ≤ 0.0001.
Sourcepub fn self_edge_weight(self, w: f64) -> Self
pub fn self_edge_weight(self, w: f64) -> Self
Set the self-edge weight added for each file (default: 0.1).
Sourcepub fn max_line_length(self, n: usize) -> Self
pub fn max_line_length(self, n: usize) -> Self
Truncate rendered lines longer than this many characters (default: 100).
Sourcepub fn pagerank_damping(self, d: f64) -> Self
pub fn pagerank_damping(self, d: f64) -> Self
Set the PageRank damping factor (default: 0.85).
Sourcepub fn pagerank_tol(self, t: f64) -> Self
pub fn pagerank_tol(self, t: f64) -> Self
Set the PageRank convergence tolerance (default: 1e-6).
Sourcepub fn pagerank_max_iter(self, n: usize) -> Self
pub fn pagerank_max_iter(self, n: usize) -> Self
Set the maximum number of PageRank iterations (default: 100).
Sourcepub fn anchor_fnames(self, fnames: Vec<PathBuf>) -> Self
pub fn anchor_fnames(self, fnames: Vec<PathBuf>) -> Self
Files always included in the map and used as PageRank restart seeds.
Sourcepub fn anchor_idents(self, idents: HashSet<String>) -> Self
pub fn anchor_idents(self, idents: HashSet<String>) -> Self
Identifiers whose defining files are used as PageRank restart seeds.
Sourcepub fn anchor_scoped(self, scoped: Vec<(PathBuf, String)>) -> Self
pub fn anchor_scoped(self, scoped: Vec<(PathBuf, String)>) -> Self
Scoped anchors: (file, ident) pairs — file is the restart seed, ident gets an edge-weight boost.
Sourcepub fn anchor_weight_multiplier(self, m: f64) -> Self
pub fn anchor_weight_multiplier(self, m: f64) -> Self
Personalization weight multiplier for anchor files (default: 10.0).