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

Method with_priority

core/src/context/mod.rs:241–247  ·  view source on GitHub ↗

Set priority score (0.0 to 1.0) for harness-controlled ranking.

(mut self, priority: f32)

Source from the content-addressed store, hash-verified

239
240 /// Set priority score (0.0 to 1.0) for harness-controlled ranking.
241 pub fn with_priority(mut self, priority: f32) -> Self {
242 self.metadata.insert(
243 CONTEXT_PRIORITY_METADATA.to_string(),
244 serde_json::json!(priority.clamp(0.0, 1.0)),
245 );
246 self
247 }
248
249 /// Set trust score (0.0 to 1.0) for harness-controlled ranking.
250 pub fn with_trust(mut self, trust: f32) -> Self {

Callers 8

push_agents_md_contextFunction · 0.45
queryMethod · 0.45
queryMethod · 0.45

Calls 1

insertMethod · 0.45

Tested by 1