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

Method store_tool_artifact

core/src/tools/registry.rs:281–290  ·  view source on GitHub ↗
(&self, tool_name: &str, content: &str, artifact: &ToolOutputArtifact)

Source from the content-addressed store, hash-verified

279 }
280
281 fn store_tool_artifact(&self, tool_name: &str, content: &str, artifact: &ToolOutputArtifact) {
282 self.artifact_store.put(ToolArtifact {
283 artifact_id: artifact.artifact_id.clone(),
284 artifact_uri: artifact.artifact_uri.clone(),
285 tool_name: tool_name.to_string(),
286 content: content.to_string(),
287 original_bytes: artifact.original_bytes,
288 shown_bytes: artifact.shown_bytes,
289 });
290 }
291
292 fn record_trace_event(&self, name: &str, result: &ToolResult, duration: std::time::Duration) {
293 let sink = self.trace_sink();

Callers 2

execute_with_contextMethod · 0.80

Calls 2

putMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected