Class ShellSessionManager
java.lang.Object
com.alibaba.cloud.ai.graph.agent.tools.ShellSessionManager
Manages shell sessions and command execution.
Provides persistent shell execution capabilities with state preservation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classResult of command execution.static classSimple pattern-based redaction rule.static classResult of redaction operation with match information.static interfaceRedaction rule for sanitizing command output. -
Method Summary
Modifier and TypeMethodDescriptionstatic ShellSessionManager.Builderbuilder()voidcleanup(RunnableConfig config) Clean up shell session.executeCommand(String command, RunnableConfig config) Execute a command in the current shell session.intvoidinitialize(RunnableConfig config) Initialize shell session.voidrestartSession(RunnableConfig config) Restart the shell session.
-
Method Details
-
builder
-
initialize
Initialize shell session. -
cleanup
Clean up shell session. -
executeCommand
Execute a command in the current shell session. -
restartSession
Restart the shell session. -
getMaxOutputLines
public int getMaxOutputLines() -
getMaxOutputBytes
-