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

Method with_provenance

core/src/context/mod.rs:232–238  ·  view source on GitHub ↗

Set a human-readable provenance label for diagnostics and ranking.

(mut self, provenance: impl Into<String>)

Source from the content-addressed store, hash-verified

230
231 /// Set a human-readable provenance label for diagnostics and ranking.
232 pub fn with_provenance(mut self, provenance: impl Into<String>) -> Self {
233 self.metadata.insert(
234 CONTEXT_PROVENANCE_METADATA.to_string(),
235 serde_json::Value::String(provenance.into()),
236 );
237 self
238 }
239
240 /// Set priority score (0.0 to 1.0) for harness-controlled ranking.
241 pub fn with_priority(mut self, priority: f32) -> Self {

Callers 8

push_agents_md_contextFunction · 0.80
queryMethod · 0.80
queryMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by 1