This function is used to help dynamically build tools for an agent, by wrapping the handler function in a executeToolCall to allow for error handling, result formatting, and optional context passing.
This function is used to help dynamically build tools for an agent, by wrapping the handler function in a executeToolCall to allow for error handling, result formatting, and optional context passing.