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

Method get_artifact

core/src/agent_api.rs:1084–1086  ·  view source on GitHub ↗

Return a stored tool artifact by URI, if it exists in this session.

(&self, artifact_uri: &str)

Source from the content-addressed store, hash-verified

1082
1083 /// Return a stored tool artifact by URI, if it exists in this session.
1084 pub fn get_artifact(&self, artifact_uri: &str) -> Option<crate::tools::ToolArtifact> {
1085 DirectToolRuntime::from_session(self).artifact(artifact_uri)
1086 }
1087
1088 /// Return compact execution trace events recorded for this session.
1089 pub fn trace_events(&self) -> Vec<crate::trace::TraceEvent> {

Callers

nothing calls this directly

Calls 1

artifactMethod · 0.80

Tested by

no test coverage detected