withName

open fun withName(newName: String): Tool

Create a new tool with a different name. Useful for namespacing tools when combining multiple tool sources.

Return

A new Tool with the updated name

Parameters

newName

The new name to use