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

Method part_from_tool_call

crates/opencode-session/src/llm.rs:260–262  ·  view source on GitHub ↗

Look up a tool part by its call ID.

(&self, tool_call_id: &str)

Source from the content-addressed store, hash-verified

258
259 /// Look up a tool part by its call ID.
260 pub fn part_from_tool_call(&self, tool_call_id: &str) -> Option<&ToolCallState> {
261 self.tool_calls.get(tool_call_id)
262 }
263
264 fn record_tool_call_for_doom_loop(&mut self, tool_name: String, input: serde_json::Value) {
265 self.completed_tool_parts.push(CompletedToolRecord {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected