Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down