MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / with_data

Method with_data

crates/opencode-plugin/src/lib.rs:104–107  ·  view source on GitHub ↗
(mut self, key: &str, value: serde_json::Value)

Source from the content-addressed store, hash-verified

102 }
103
104 pub fn with_data(mut self, key: &str, value: serde_json::Value) -> Self {
105 self.data.insert(key.to_string(), value);
106 self
107 }
108
109 pub fn with_session(mut self, session_id: &str) -> Self {
110 self.session_id = Some(session_id.to_string());

Callers 12

askMethod · 0.80
loop_innerMethod · 0.80
process_streamMethod · 0.80
stream_from_inputMethod · 0.80
notify_text_completeFunction · 0.80
processMethod · 0.80
executeMethod · 0.80
execute_with_hooksMethod · 0.80
executeMethod · 0.80
list_schemasMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected