A dialogue is an ordered exchange of user and assistant messages. In a chatbot, sending the full conversation history with each turn lets the model use earlier details, such as a name the user shared. section 7.4.3
Chat with AI! (type 'quit' to exit) ---------------------------------------- You: Hi! My name is Alex. AI: Hello, Alex! It's nice to meet you. How can I help you today? You: What's my name? AI: Your name is Alex! You just told me. Is there anything you'd like to chat about? You: Can you suggest a good book for a beginner programmer? AI: Absolutely, Alex! I'd recommend "Automate the Boring Stuff with Python" by Al Sweigart. It's free to read online, written for complete beginners, and teaches Python through practical, real-world projects like renaming files, web scraping, and automating spreadsheets. You: quit Goodbye!
See a sample chat where the assistant recalls a name and answers a follow-up question. section 7.4.3









