Class ShellTool

java.lang.Object
com.alibaba.cloud.ai.graph.agent.tools.ShellTool
All Implemented Interfaces:
BiFunction<ShellTool.Request,org.springframework.ai.chat.model.ToolContext,String>

public class ShellTool extends Object implements BiFunction<ShellTool.Request,org.springframework.ai.chat.model.ToolContext,String>
A tool for executing shell commands. This tool allows for the execution of shell commands within a managed session. The session's lifecycle and configuration are handled by the ShellSessionManager. Example of creating a callback for this tool:
 ToolCallback shellToolCallback = ShellTool.createShellToolCallback("/tmp/agent-workspace");