Package org.machanism.machai.ai.manager
Class CommandFunctionTools
java.lang.Object
org.machanism.machai.ai.manager.CommandFunctionTools
Provides support for command line tool functions to be used within
GenAIProvider.
Allows execution of (safe) shell commands in a controlled working directory for supported OS.
Usage example:
CommandFunctionTools tools = new CommandFunctionTools(new File("/tmp"));
tools.applyTools(provider);
- Author:
- Viktor Tovstyi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTools(GenAIProvider provider) Installs supported shell command tool(s) to the specified GenAIProvider.
-
Constructor Details
-
CommandFunctionTools
public CommandFunctionTools()
-
-
Method Details
-
applyTools
Installs supported shell command tool(s) to the specified GenAIProvider.- Parameters:
provider- GenAIProvider instance
-