Remove dead functions from spectral.rs and identity.rs
spectral.rs: remove print_summary, to_embedding, save_embedding, nearest_neighbors, unlinked_neighbors, dominant_dimensions, SpectralResult, shorten_key. Core functions (load_embedding, nearest_to_seeds_weighted, analyze_positions, etc.) kept. identity.rs: remove context_file_info (zero callers). Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
f4def8d03b
commit
25f4cfabbb
2 changed files with 0 additions and 236 deletions
|
|
@ -133,27 +133,6 @@ fn load_memory_files(cwd: &Path, memory_project: Option<&Path>, context_groups:
|
|||
memories
|
||||
}
|
||||
|
||||
/// Discover instruction and memory files that would be loaded.
|
||||
/// Returns (instruction_files, memory_files) as (display_path, chars) pairs.
|
||||
pub fn context_file_info(prompt_file: &str, memory_project: Option<&Path>, context_groups: &[ContextGroup]) -> (Vec<(String, usize)>, Vec<(String, usize)>) {
|
||||
let cwd = std::env::current_dir().unwrap_or_default();
|
||||
|
||||
let context_files = find_context_files(&cwd, prompt_file);
|
||||
let instruction_files: Vec<_> = context_files.iter()
|
||||
.filter_map(|path| {
|
||||
std::fs::read_to_string(path).ok()
|
||||
.map(|content| (path.display().to_string(), content.len()))
|
||||
})
|
||||
.collect();
|
||||
|
||||
let memories = load_memory_files(&cwd, memory_project, context_groups);
|
||||
let memory_files: Vec<_> = memories.into_iter()
|
||||
.map(|(name, content)| (name, content.len()))
|
||||
.collect();
|
||||
|
||||
(instruction_files, memory_files)
|
||||
}
|
||||
|
||||
/// Short system prompt: agent identity, tool instructions, behavioral norms.
|
||||
pub fn assemble_system_prompt() -> String {
|
||||
let cfg = crate::config::get();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue