def _remove_signature_from_tool_description(name: str, description: str) -> str:
    """
    Removes the `{name}{signature} - ` prefix and Args: section from tool description.
    The Args: section may be present in function doc blocks.
    """
    description = re.sub(rf"^{name}\(.*?\) -(?:> \w+? -)? ", "", description)
    return re.sub(r"(?s)(?:\n?\n\s*?)?Args:.*$", "", description)

    Removes the `{name}{signature} - ` prefix and Args: section from tool description.
    The Args: section may be present in function doc blocks.
    
llama-index-integrations/llms/llama-index-llms-cohere/llama_index/llms/cohere/utils.py