create
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.
Parameters
llm Message Sender
message sender for LLM communication
object Mapper
for JSON deserialization
injection Strategy
strategy for dynamic tool injection
max Iterations
maximum loop iterations
tool Decorator
optional decorator for injected tools
inspectors
read-only observers for tool loop lifecycle events
transformers
transformers for modifying conversation history or tool results
tool Call Context
context propagated to tool invocations