From 8788b9adb938b42894b9ce7a933902af7be7da0b Mon Sep 17 00:00:00 2001 From: hxreborn Date: Mon, 23 Mar 2026 21:15:39 +0100 Subject: [PATCH] fix(koog-ktor): rename registerTools parameter to avoid Builder.build() shadowing (#1705) --- .../src/commonMain/kotlin/ai/koog/ktor/KoogAgentsConfig.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() } }