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

Method save_artifacts

core/src/store/file_store.rs:255–264  ·  view source on GitHub ↗
(&self, id: &str, artifacts: &ArtifactStore)

Source from the content-addressed store, hash-verified

253 }
254
255 async fn save_artifacts(&self, id: &str, artifacts: &ArtifactStore) -> Result<()> {
256 let artifact_dir = self.artifact_dir(id);
257 artifacts.save_to_dir(&artifact_dir).with_context(|| {
258 format!(
259 "Failed to save artifacts for session {} to {}",
260 id,
261 artifact_dir.display()
262 )
263 })
264 }
265
266 async fn load_artifacts(&self, id: &str) -> Result<Option<ArtifactStore>> {
267 let artifact_dir = self.artifact_dir(id);

Calls 3

artifact_dirMethod · 0.80
with_contextMethod · 0.80
save_to_dirMethod · 0.80