Package org.machanism.machai.ai.tools
Interface FunctionTools
public interface FunctionTools
Service-provider interface (SPI) for installing host-provided function tools
into a
Genai.
Implementations contribute one or more named tools via
Genai.addTool(String, String, org.machanism.machai.ai.provider.Genai.ToolFunction, String...).
Tools are typically discovered via ServiceLoader and
applied at runtime.
Implementations may optionally accept a Configurator via
setConfigurator(Configurator) to resolve runtime configuration (for
example, API tokens for web calls).
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTools(Genai provider) Registers this tool set with the given provider.default voidsetConfigurator(Configurator configurator) Provides a configurator instance to the tool set.
-
Method Details
-
applyTools
Registers this tool set with the given provider.- Parameters:
provider- provider to register tools with
-
setConfigurator
Provides a configurator instance to the tool set.The default implementation does nothing.
- Parameters:
configurator- configurator to use for runtime value resolution
-