Package org.machanism.machai.ai.manager
Class SystemFunctionTools
java.lang.Object
org.machanism.machai.ai.manager.SystemFunctionTools
Provides unified access to file and command function tools for GenAIProvider
environments.
Wrapper around FileFunctionTools and CommandFunctionTools to
simplify attachment and setup of tools for providers.
Usage example:
SystemFunctionTools tools = new SystemFunctionTools(new File("/tmp"));
tools.applyTools(provider);
- Author:
- Viktor Tovstyi
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes unified system function tools for a working directory. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTools(GenAIProvider provider) Attaches both file and command function tool capabilities to the specified GenAIProvider.
-
Constructor Details
-
SystemFunctionTools
public SystemFunctionTools()Initializes unified system function tools for a working directory.- Parameters:
workingDir- Directory for both command and file tool operations
-
-
Method Details
-
applyTools
Attaches both file and command function tool capabilities to the specified GenAIProvider.- Parameters:
provider- GenAIProvider instance
-