pub fn with_tool_command<R>(command: Option<&str>, f: impl FnOnce() -> R) -> RExpand description
Run f — a compression of one tool result — knowing the command line of
the tool call that produced it: the command input of the matching
tool_use (Bash and other shell tools). A result of a filtering command
(is_filtering_command) is then not pruned again: the caller already
chose the lines it wants. The previous scope is restored afterwards, also
on unwind.