withDescription

open fun withDescription(newDescription: String): Tool

Create a new tool with a different description. Useful for providing context-specific descriptions while keeping the same functionality.

Return

A new Tool with the updated description

Parameters

newDescription

The new description to use