MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / __init__

Method __init__

mini_agent/tools/bash_tool.py:225–235  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected