DomainToolSource

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

Constructors

Link copied to clipboard
constructor(type: Class<T>, predicate: DomainToolPredicate<T> = DomainToolPredicate.always())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val type: Class<T>