Set a human-readable provenance label for diagnostics and ranking.
(mut self, provenance: impl Into<String>)
| 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 { |