Initialize BashTool with OS-specific shell detection. Args: workspace_dir: Working directory for command execution. If provided, all commands run in this directory. If None, commands run in the process's cwd.
(self, workspace_dir: str | None = None)
| 223 | """ |
| 224 | |
| 225 | def __init__(self, workspace_dir: str | None = None): |
| 226 | """Initialize BashTool with OS-specific shell detection. |
| 227 | |
| 228 | Args: |
| 229 | workspace_dir: Working directory for command execution. |
| 230 | If provided, all commands run in this directory. |
| 231 | If None, commands run in the process's cwd. |
| 232 | """ |
| 233 | self.is_windows = platform.system() == "Windows" |
| 234 | self.shell_name = "PowerShell" if self.is_windows else "bash" |
| 235 | self.workspace_dir = workspace_dir |
| 236 | |
| 237 | @property |
| 238 | def name(self) -> str: |
nothing calls this directly
no outgoing calls
no test coverage detected