Sanitizes an action or tool name to conform to provider wire constraints
(e.g. OpenAI function naming: ^[a-zA-Z0-9_-]{1,64}$).
Replaces non-alphanumeric/hyphen/underscore characters with underscores,
collapses consecutive runs of underscores into a single underscore, and
truncates to 64 characters.
Sanitizes an action or tool name to conform to provider wire constraints (e.g. OpenAI function naming: ^[a-zA-Z0-9_-]{1,64}$).
Replaces non-alphanumeric/hyphen/underscore characters with underscores, collapses consecutive runs of underscores into a single underscore, and truncates to 64 characters.