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

Method with_param

core/src/context/mod.rs:154–157  ·  view source on GitHub ↗

Add a custom parameter

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

Source from the content-addressed store, hash-verified

152
153 /// Add a custom parameter
154 pub fn with_param(mut self, key: impl Into<String>, value: serde_json::Value) -> Self {
155 self.params.insert(key.into(), value);
156 self
157 }
158}
159
160/// A single piece of retrieved context

Callers 1

Calls 1

insertMethod · 0.45

Tested by 1