Object DomainToolFactory

  • All Implemented Interfaces:

    
    public class DomainToolFactory
    
                        

    Creates placeholder tools for a domain class that will be bound when an instance is retrieved. These tools are always declared to the LLM but return errors until an instance is available.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final List<Tool> createPlaceholderTools(DomainToolSource<?> source, DomainToolTracker tracker) Create placeholder tools for all @LlmTool methods on the given class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • createPlaceholderTools

         final List<Tool> createPlaceholderTools(DomainToolSource<?> source, DomainToolTracker tracker)

        Create placeholder tools for all @LlmTool methods on the given class. These tools delegate to the actual instance when one is bound via the tracker.

        Parameters:
        source - The domain tool source configuration
        tracker - The tracker that manages bound instances
        Returns:

        List of placeholder tools, or empty if the class has no @LlmTool methods