Domain Tool Source
data class DomainToolSource<T : Any>(val type: Class<T>, val predicate: DomainToolPredicate<T> = DomainToolPredicate.always())
Configuration for a class that can contribute @LlmTool methods when a single instance is retrieved.
When a single artifact of the specified type is retrieved during agentic tool execution, any @LlmTool annotated methods on that instance become available as tools.
The optional predicate allows filtering which instances should contribute tools. By default, all instances are accepted.
Parameters
T
The domain class type
type
The class object
predicate
Predicate to filter which instances contribute tools