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 registered Bindex by its id.
  • get_bindex_schema: Returns the JSON schema that defines the Bindex document shape.

A BindexRepository is created when setConfigurator(Configurator) is invoked.

Since:
0.0.2
Author:
Viktor Tovstyi
  • Constructor Details

    • BindexFunctionTools

      public BindexFunctionTools()
  • Method Details

    • applyTools

      public void applyTools(org.machanism.machai.ai.manager.Genai provider)
      Registers Bindex function tools with the provided Genai.
      Specified by:
      applyTools in interface org.machanism.machai.ai.tools.FunctionTools
      Parameters:
      provider - the provider to register tools with
    • setConfigurator

      public void setConfigurator(Configurator configurator)
      Supplies configuration used to initialize the underlying BindexRepository.
      Specified by:
      setConfigurator in interface org.machanism.machai.ai.tools.FunctionTools
      Parameters:
      configurator - configurator to use (may be null)