wip
This commit is contained in:
@@ -6,7 +6,7 @@ from langchain_community.tools.shell.tool import ShellTool
|
||||
|
||||
# Pre-configured SSH tool for your server - only connects when actually used
|
||||
# TODO: Update these connection details for your actual server
|
||||
configured_ssh_tool = SSHTool(
|
||||
configured_remote_server = SSHTool(
|
||||
host="157.90.211.119", # Replace with your server
|
||||
port=8081,
|
||||
username="g", # Replace with your username
|
||||
@@ -15,4 +15,4 @@ configured_ssh_tool = SSHTool(
|
||||
)
|
||||
|
||||
|
||||
__all__ = ["print_poem", "SSHTool", "ShellTool", "configured_ssh_tool"]
|
||||
__all__ = ["print_poem", "SSHTool", "ShellTool", "configured_remote_server"]
|
||||
|
@@ -77,6 +77,8 @@ class SSHSession:
|
||||
|
||||
def execute(self, command: str) -> str:
|
||||
"""Execute a single command, handling sudo automatically."""
|
||||
print(f"🔧 Executing command: {command}")
|
||||
|
||||
if not self.client:
|
||||
self.connect()
|
||||
|
||||
|
Reference in New Issue
Block a user