Add a single capability
(mut self, key: impl Into<String>, value: serde_json::Value)
| 279 | |
| 280 | /// Add a single capability |
| 281 | pub fn add_capability(mut self, key: impl Into<String>, value: serde_json::Value) -> Self { |
| 282 | self.capabilities.insert(key.into(), value); |
| 283 | self |
| 284 | } |
| 285 | |
| 286 | /// Record an error for session stats. |
| 287 | pub fn record_error(&self) { |