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

Method with_metadata

core/src/context/mod.rs:226–229  ·  view source on GitHub ↗

Add metadata

(mut self, key: impl Into<String>, value: serde_json::Value)

Source from the content-addressed store, hash-verified

224
225 /// Add metadata
226 pub fn with_metadata(mut self, key: impl Into<String>, value: serde_json::Value) -> Self {
227 self.metadata.insert(key.into(), value);
228 self
229 }
230
231 /// Set a human-readable provenance label for diagnostics and ranking.
232 pub fn with_provenance(mut self, provenance: impl Into<String>) -> Self {

Callers 3

queryMethod · 0.45
queryMethod · 0.45

Calls 1

insertMethod · 0.45

Tested by 1