invoke

operator fun invoke(init: ToolRegistry.Builder.() -> Unit): ToolRegistry(source)

Creates a new ToolRegistry using the provided builder initialization block.

Return

A new ToolRegistry instance configured according to the initialization block

Parameters

init

A lambda that configures the registry by adding tools