In the sentence below, what is the underlined modal verb’s function?

Would you walk with me to the library?

Would conveys a remote possibility

Would is used in a question to extend an invitation

Bot GPT 3.5 Bot GPT 3.5 answered

Would is used to make a polite request