MCPcopy Create free account
hub / github.com/AI45Lab/Code / write_text

Method write_text

core/src/agent_api/tests.rs:90–100  ·  view source on GitHub ↗
(
        &self,
        path: &crate::workspace::WorkspacePath,
        content: &str,
    )

Source from the content-addressed store, hash-verified

88 }
89
90 async fn write_text(
91 &self,
92 path: &crate::workspace::WorkspacePath,
93 content: &str,
94 ) -> crate::workspace::WorkspaceResult<crate::workspace::WorkspaceWriteOutcome> {
95 self.insert(path.as_str(), content);
96 Ok(crate::workspace::WorkspaceWriteOutcome {
97 bytes: content.len(),
98 lines: content.lines().count(),
99 })
100 }
101
102 async fn list_dir(
103 &self,

Callers

nothing calls this directly

Calls 3

insertMethod · 0.45
as_strMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected