ToolChaining

interface ToolChaining<THIS>

Fluent API for configuring domain tool chaining.

Enables @LlmTool methods on returned domain objects to become available as tools. Shared by AgenticTool and com.embabel.agent.api.common.PromptRunner.

Parameters

THIS

The concrete implementation type for fluent method chaining

Inheritors

Functions

Link copied to clipboard
open fun <T : Any> withToolChainingFrom(type: Class<T>): THIS

Register a class whose @LlmTool methods become available as tools when a single instance of that type is returned as an artifact.

abstract fun <T : Any> withToolChainingFrom(type: Class<T>, predicate: DomainToolPredicate<T>): THIS

Register a domain class with a predicate to control when its @LlmTool methods become available as tools.

Link copied to clipboard

Enable auto-discovery of chained tools from any returned artifact.