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

Method read_text

core/src/tools/mod.rs:640–649  ·  view source on GitHub ↗
(&self, path: &WorkspacePath)

Source from the content-addressed store, hash-verified

638 #[async_trait]
639 impl WorkspaceFileSystem for MemoryWorkspaceFs {
640 async fn read_text(&self, path: &WorkspacePath) -> WorkspaceResult<String> {
641 self.files
642 .read()
643 .unwrap()
644 .get(path.as_str())
645 .cloned()
646 .ok_or_else(|| WorkspaceError::NotFound {
647 path: path.as_str().to_string(),
648 })
649 }
650
651 async fn write_text(
652 &self,

Callers 2

load_script_sourceFunction · 0.45
load_configFunction · 0.45

Calls 2

getMethod · 0.45
as_strMethod · 0.45

Tested by 1

load_configFunction · 0.36