create

abstract fun create(llmMessageSender: LlmMessageSender, objectMapper: <Error class: unknown class>, injectionStrategy: ToolInjectionStrategy, maxIterations: Int, toolDecorator: (Tool) -> Tool?): ToolLoop

Create a ToolLoop instance.

Parameters

llmMessageSender

message sender for LLM communication

objectMapper

for JSON deserialization

injectionStrategy

strategy for dynamic tool injection

maxIterations

maximum loop iterations

toolDecorator

optional decorator for injected tools