This commit is contained in:
Gaetan Hurel
2025-06-29 16:15:58 +02:00
parent d06dabfa3c
commit 7346f0739f
9 changed files with 24 additions and 18 deletions

View File

@@ -3,14 +3,14 @@
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, configured_ssh_tool
from custom_tools import print_poem, configured_remote_server
def create_logs_analyzer_worker():
"""Create a logs analyzer agent that investigates system and application logs."""
tools = [ShellTool(), configured_ssh_tool, print_poem]
tools = [configured_remote_server, print_poem]
return create_react_agent(
model=ChatOpenAI(model="gpt-4o-mini", temperature=0),
tools=tools,

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, configured_ssh_tool
from custom_tools import print_poem, configured_remote_server
def create_os_detector_worker():
"""Create an OS detector agent that identifies system information and environment."""
tools = [ShellTool(), configured_ssh_tool, print_poem]
tools = [configured_remote_server, 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, configured_ssh_tool
from custom_tools import print_poem, configured_remote_server
def create_performance_analyzer_worker():
"""Create a performance analyzer agent that monitors and diagnoses performance issues."""
tools = [ShellTool(), configured_ssh_tool, print_poem]
tools = [configured_remote_server, print_poem]
return create_react_agent(
model=ChatOpenAI(model="gpt-4o-mini", temperature=0),