MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / ShellCommandResult

Class ShellCommandResult

tools/terminal.py:77–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76@dataclass(slots=True)
77class ShellCommandResult:
78 command: str
79 output: str
80 exit_code: int = 0
81 timed_out: bool = False
82
83 def to_dict(self) -> dict[str, Any]:
84 return {
85 "command": self.command,
86 "output": self.output,
87 "exit_code": self.exit_code,
88 "timed_out": self.timed_out,
89 }
90
91
92class _HTMLTextParser(HTMLParser):

Callers 3

_execute_sshMethod · 0.85
_execute_localMethod · 0.85
executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected