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

Method with_source

core/src/context/mod.rs:220–223  ·  view source on GitHub ↗

Set the source URI

(mut self, source: impl Into<String>)

Source from the content-addressed store, hash-verified

218
219 /// Set the source URI
220 pub fn with_source(mut self, source: impl Into<String>) -> Self {
221 self.source = Some(source.into());
222 self
223 }
224
225 /// Add metadata
226 pub fn with_metadata(mut self, key: impl Into<String>, value: serde_json::Value) -> Self {

Calls

no outgoing calls