MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / update_summary

Method update_summary

uncommon_route/artifacts.py:103–109  ·  view source on GitHub ↗
(self, artifact_id: str, summary: str)

Source from the content-addressed store, hash-verified

101 return record
102
103 def update_summary(self, artifact_id: str, summary: str) -> dict[str, Any] | None:
104 artifact = self.get(artifact_id)
105 if artifact is None:
106 return None
107 artifact["summary"] = summary
108 self._meta_path(artifact_id).write_text(json.dumps({k: v for k, v in artifact.items() if k != "content"}, indent=2))
109 return artifact
110
111 def get(self, artifact_id: str) -> dict[str, Any] | None:
112 meta_path = self._meta_path(artifact_id)

Callers 2

_checkpoint_historyFunction · 0.80

Calls 2

getMethod · 0.95
_meta_pathMethod · 0.95

Tested by

no test coverage detected