ToolLoopFactory

interface ToolLoopFactory

Factory for creating ToolLoop instances.

Threading and context propagation

Parallel tool execution is governed by the Asyncer abstraction, which is the single extension point for controlling threading behavior and propagating execution context (e.g., security context, MDC) to tool execution threads.

An Asyncer is always required. In a Spring environment, the Asyncer bean is injected automatically via com.embabel.agent.spi.config.spring.AsyncConfiguration. For programmatic usage, provide an Asyncer via create.

See also

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun create(llmMessageSender: LlmMessageSender, objectMapper: <Error class: unknown class>, injectionStrategy: ToolInjectionStrategy, maxIterations: Int, toolDecorator: (Tool) -> Tool?, inspectors: List<ToolLoopInspector>, transformers: List<ToolLoopTransformer>, toolCallContext: ToolCallContext, toolNotFoundPolicy: ToolNotFoundPolicy? = null): ToolLoop

Create a ToolLoop instance.