Object DomainToolFactory
-
- All Implemented Interfaces:
public class DomainToolFactoryCreates 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.
-
-
Field Summary
Fields Modifier and Type Field Description public final static DomainToolFactoryINSTANCE
-
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. -
-
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 configurationtracker- The tracker that manages bound instances- Returns:
List of placeholder tools, or empty if the class has no @LlmTool methods
-
-
-
-