MCPcopy Index your code
hub / github.com/AI45Lab/Code / insert

Method insert

core/src/tools/mod.rs:626–631  ·  view source on GitHub ↗
(&self, path: &str, content: &str)

Source from the content-addressed store, hash-verified

624
625 impl MemoryWorkspaceFs {
626 fn insert(&self, path: &str, content: &str) {
627 self.files
628 .write()
629 .unwrap()
630 .insert(path.to_string(), content.to_string());
631 }
632
633 fn get(&self, path: &str) -> Option<String> {
634 self.files.read().unwrap().get(path).cloned()

Callers 15

putMethod · 0.45
write_textMethod · 0.45
register_builtinMethod · 0.45
registerMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
apply_hunksFunction · 0.45
set_session_policyMethod · 0.45
taint_inputMethod · 0.45

Calls 1

writeMethod · 0.80