MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_reasoning

Method get_reasoning

crates/opencode-session/src/message.rs:246–255  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

244 }
245
246 pub fn get_reasoning(&self) -> String {
247 self.parts
248 .iter()
249 .filter_map(|p| match &p.part_type {
250 PartType::Reasoning { text } => Some(text.clone()),
251 _ => None,
252 })
253 .collect::<Vec<_>>()
254 .join("")
255 }
256}

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected