Class BindexFunctionTools
java.lang.Object
org.machanism.machai.bindex.ai.tools.BindexFunctionTools
- All Implemented Interfaces:
org.machanism.machai.ai.tools.FunctionTools
public class BindexFunctionTools
extends Object
implements org.machanism.machai.ai.tools.FunctionTools
Registers Bindex-related function tools for a
Genai.
The tools exposed by this type are intended to be consumed by LLM-assisted workflows so they can retrieve additional context (a Bindex document or the Bindex JSON schema) on demand.
Exposed tools
get_bindex: Fetches a registeredBindexby its id.get_bindex_schema: Returns the JSON schema that defines theBindexdocument shape.
A BindexRepository is created when
setConfigurator(Configurator) is invoked.
- Since:
- 0.0.2
- Author:
- Viktor Tovstyi
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTools(org.machanism.machai.ai.manager.Genai provider) Registers Bindex function tools with the providedGenai.voidsetConfigurator(Configurator configurator) Supplies configuration used to initialize the underlyingBindexRepository.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.machanism.machai.ai.tools.FunctionTools
replace
-
Constructor Details
-
BindexFunctionTools
public BindexFunctionTools()
-
-
Method Details
-
applyTools
public void applyTools(org.machanism.machai.ai.manager.Genai provider) Registers Bindex function tools with the providedGenai.- Specified by:
applyToolsin interfaceorg.machanism.machai.ai.tools.FunctionTools- Parameters:
provider- the provider to register tools with
-
setConfigurator
Supplies configuration used to initialize the underlyingBindexRepository.- Specified by:
setConfiguratorin interfaceorg.machanism.machai.ai.tools.FunctionTools- Parameters:
configurator- configurator to use (may benull)
-