(&self)
| 24 | |
| 25 | impl ToolCall { |
| 26 | pub fn render_mode(&self) -> ToolRenderMode { |
| 27 | match self.name.as_str() { |
| 28 | "glob" | "grep" | "list" | "webfetch" | "websearch" | "skill" | "read" => { |
| 29 | ToolRenderMode::Inline |
| 30 | } |
| 31 | "bash" | "write" | "edit" | "apply_patch" | "task" | "todowrite" | "question" => { |
| 32 | ToolRenderMode::Block |
| 33 | } |
| 34 | _ => ToolRenderMode::Block, |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | #[derive(Clone, Debug, PartialEq)] |