Class ShellToolAgentHook.Builder
java.lang.Object
com.alibaba.cloud.ai.graph.agent.hook.shelltool.ShellToolAgentHook.Builder
- Enclosing class:
- ShellToolAgentHook
Builder class for constructing ShellToolAgentHook instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the ShellToolAgentHook instance.shellTool2(ShellTool2 shellTool2) Set the ShellTool2 instance.shellToolName(String shellToolName) Set the shell tool name.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
shellTool2
Set the ShellTool2 instance.- Parameters:
shellTool2- the ShellTool2 to use- Returns:
- this builder instance
-
shellToolName
Set the shell tool name.- Parameters:
shellToolName- the name of the shell tool- Returns:
- this builder instance
-
build
Build the ShellToolAgentHook instance.- Returns:
- a new ShellToolAgentHook instance
-