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

Method get_artifact

core/src/tools/registry.rs:159–161  ·  view source on GitHub ↗

Get a stored tool artifact by URI.

(&self, artifact_uri: &str)

Source from the content-addressed store, hash-verified

157
158 /// Get a stored tool artifact by URI.
159 pub fn get_artifact(&self, artifact_uri: &str) -> Option<ToolArtifact> {
160 self.artifact_store.get(artifact_uri)
161 }
162
163 /// Replace the trace sink used for compact tool/program execution events.
164 pub fn set_trace_sink(&self, sink: Arc<dyn TraceSink>) {

Calls 1

getMethod · 0.45