Set priority score (0.0 to 1.0) for harness-controlled ranking.
(mut self, priority: f32)
| 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 { |