Look up a tool part by its call ID.
(&self, tool_call_id: &str)
| 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 { |