This pull request adds a new function called sanitize_tool_name to the chatbot.py file. The function sanitizes the tool name by replacing any characters that are not alphanumeric, underscore, or hyphen with a hyphen. This function is used in the create_tool function to ensure that the tool name is valid and follows the required format.
This pull request adds a new function called
sanitize_tool_name
to thechatbot.py
file. The function sanitizes the tool name by replacing any characters that are not alphanumeric, underscore, or hyphen with a hyphen. This function is used in thecreate_tool
function to ensure that the tool name is valid and follows the required format.