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

Method add_capability

core/src/ahp/executor.rs:281–284  ·  view source on GitHub ↗

Add a single capability

(mut self, key: impl Into<String>, value: serde_json::Value)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected