def force_single_tool_call(response: ChatResponse) -> None:
    """
    Forces the response to have only one tool call.

    Args:
        response (ChatResponse): The response to modify.

    """
    tool_calls = response.message.additional_kwargs.get("tool_calls", [])
    if len(tool_calls) > 1:
        response.message.additional_kwargs["tool_calls"] = [tool_calls[0]]

    Forces the response to have only one tool call.

    Args:
        response (ChatResponse): The response to modify.

    
llama-index-integrations/llms/llama-index-llms-azure-inference/llama_index/llms/azure_inference/base.py