add custom ssh tool

This commit is contained in:
Gaetan Hurel
2025-06-29 14:49:07 +02:00
parent bf2cc1a409
commit 38b77a657f
17 changed files with 1292 additions and 19 deletions

View File

@@ -3,13 +3,13 @@
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
from langchain_community.tools.shell.tool import ShellTool
from custom_tools import print_poem
from custom_tools import print_poem, configured_ssh_tool
def create_logs_analyzer_worker():
"""Create a logs analyzer agent that investigates system and application logs."""
tools = [ShellTool(), print_poem]
tools = [ShellTool(), configured_ssh_tool, print_poem]
return create_react_agent(
model=ChatOpenAI(model="gpt-4o-mini", temperature=0),

View File

@@ -3,13 +3,13 @@
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
from langchain_community.tools.shell.tool import ShellTool
from custom_tools import print_poem
from custom_tools import print_poem, configured_ssh_tool
def create_os_detector_worker():
"""Create an OS detector agent that identifies system information and environment."""
tools = [ShellTool(), print_poem]
tools = [ShellTool(), configured_ssh_tool, print_poem]
return create_react_agent(
model=ChatOpenAI(model="gpt-4o-mini", temperature=0),

View File

@@ -3,13 +3,13 @@
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
from langchain_community.tools.shell.tool import ShellTool
from custom_tools import print_poem
from custom_tools import print_poem, configured_ssh_tool
def create_performance_analyzer_worker():
"""Create a performance analyzer agent that monitors and diagnoses performance issues."""
tools = [ShellTool(), print_poem]
tools = [ShellTool(), configured_ssh_tool, print_poem]
return create_react_agent(
model=ChatOpenAI(model="gpt-4o-mini", temperature=0),