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

Method get

core/src/tools/artifacts.rs:82–89  ·  view source on GitHub ↗
(&self, artifact_uri: &str)

Source from the content-addressed store, hash-verified

80 }
81
82 pub fn get(&self, artifact_uri: &str) -> Option<ToolArtifact> {
83 self.inner
84 .read()
85 .unwrap()
86 .artifacts
87 .get(artifact_uri)
88 .cloned()
89 }
90
91 pub fn len(&self) -> usize {
92 self.inner.read().unwrap().artifacts.len()

Callers 1

ordered_artifactsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected