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

Method add_reasoning

crates/opencode-session/src/message.rs:147–154  ·  view source on GitHub ↗
(&mut self, text: impl Into<String>)

Source from the content-addressed store, hash-verified

145 }
146
147 pub fn add_reasoning(&mut self, text: impl Into<String>) {
148 self.parts.push(MessagePart {
149 id: format!("prt_{}", uuid::Uuid::new_v4()),
150 part_type: PartType::Reasoning { text: text.into() },
151 created_at: Utc::now(),
152 message_id: None,
153 });
154 }
155
156 pub fn add_tool_call(
157 &mut self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected