diff --git a/koog-ktor/src/commonMain/kotlin/ai/koog/ktor/KoogAgentsConfig.kt b/koog-ktor/src/commonMain/kotlin/ai/koog/ktor/KoogAgentsConfig.kt index 9e8041fae5..cb023a59bd 100644 --- a/koog-ktor/src/commonMain/kotlin/ai/koog/ktor/KoogAgentsConfig.kt +++ b/koog-ktor/src/commonMain/kotlin/ai/koog/ktor/KoogAgentsConfig.kt @@ -382,11 +382,11 @@ public class KoogAgentsConfig(private val scope: CoroutineScope) { * `ToolRegistry.Builder`. The tools are applied to the internal `toolRegistry` of the * `AgentConfig` class instance by merging existing tools with the newly registered tools. * - * @param build A lambda function for configuring the tool registry using the `ToolRegistry.Builder`. + * @param block A lambda function for configuring the tool registry using the `ToolRegistry.Builder`. */ - public fun registerTools(build: ToolRegistry.Builder.() -> Unit) { + public fun registerTools(block: ToolRegistry.Builder.() -> Unit) { toolRegistry += ToolRegistry { - build() + block() } }