memory.save_context(
inputs={"human": "How much does a Europe tour package cost?"},
outputs={
"ai": "The basic price for a 14-night, 15-day European package is 3,500 euros. This price includes airfare, hotel accommodation, and entrance fees to selected attractions. Additional costs vary depending on optional tours or personal expenses selected."
},
)
memory.save_context(
inputs={"human": "What are the main tourist attractions to visit during your trip?"},
outputs={
"ai": "This tour visits famous European tourist destinations such as the Eiffel Tower in Paris, the Colosseum in Rome, the Brandenburg Gate in Berlin, and the Leine Falls in Zurich. You can experience the representative attractions of each city comprehensively."
},
)
memory.save_context(
inputs={"human": "Is travel insurance included?"},
outputs={
"ai": "Yes, we provide basic travel insurance to all travelers. This insurance includes medical expenses, emergency assistance, etc. Additional insurance coverage can be upgraded if desired."
},
)
memory.save_context(
inputs={
"human": "Can I upgrade my flight to business class? How much does it cost?"
},
outputs={
"ai": "It is possible to upgrade your flight seat to business class. The upgrade costs approximately €1,200 for a round trip. Business class offers wider seats, better in-flight meals, and additional baggage allowance."
},
)
memory.save_context(
inputs={"human": "What is the rating of the hotels included in the package?"},
outputs={
"ai": "안This package includes accommodation at 4-star hotels. Each hotel offers comfort and convenience, and is centrally located and easily accessible to tourist attractions. All hotels offer excellent service and amenities."
},
)
memory.save_context(
inputs={"human": "Can you tell me more about your dining options?"},
outputs={
"ai": "This tour package includes breakfast served at the hotel every morning. Lunch and dinner are not included, giving travelers the opportunity to freely experience a variety of local cuisines. We also provide a list of recommended restaurants in each city to help you enjoy the local flavors to the fullest."
},
)
memory.save_context(
inputs={"human": "How much is the deposit for a package reservation? What is the cancellation policy?"},
outputs={
"ai": "A deposit of 500 EUR is required when booking a package. The cancellation policy is fully refundable up to 30 days before the booking date, and no refund will be made for cancellations after that. A 50% fee will be charged for cancellations made 14 days before the start of the trip, and the full fee will be charged thereafter."
},
)
# Check conversation content saved in memory
memory.load_memory_variables({})["history"]
[HumanMessage (content='How much is the price of a European travel package?'), AIMessage (content=' The base price for a 14-day 15-day package in Europe is 3,500 euros. This price includes airfare, hotel accommodation, and admission to designated tourist destinations. Additional costs will depend on the option tour or personal expenses you choose.')]
memory.save_context(
inputs={"human": "What are the main tourist attractions to visit during your trip?"},
outputs={
"ai": "This tour visits famous European tourist destinations such as the Eiffel Tower in Paris, the Colosseum in Rome, the Brandenburg Gate in Berlin, and the Leine Falls in Zurich. You will have a comprehensive experience of the representative attractions of each city."
},
)
memory.save_context(
inputs={"human": "Is travel insurance included?"},
outputs={
"ai": "Yes, we provide basic travel insurance to all travelers. This insurance covers medical expenses, emergency assistance, etc. Additional insurance coverage can be upgraded if desired."
},
)
memory.save_context(
inputs={
"human": "Can I upgrade my flight seat to business class? How much does it cost?"
},
outputs={
"ai": "It is possible to upgrade your flight seat to business class. The upgrade costs approximately €1,200 for a round trip. Business class offers wider seats, better in-flight meals, and additional baggage allowance."
},
)
memory.save_context(
inputs={"human": "What is the rating of the hotels included in the package?"},
outputs={
"ai": "This package includes accommodation at 4-star hotels. Each hotel offers comfort and convenience, and is centrally located and close to tourist attractions. All hotels offer excellent service and amenities."
},
)
# Check conversation content saved in memory
memory.load_memory_variables({})["history"]
[SystemMessage (content=" The human asks about the price of a European travel package. The AI responds that the basic price for a 14-night, 15-day package is 3,500 euros, inclusive airfare, hotel accompodation, and designated tourist attraction fees. Additional costs vary dependent on optional tours or personal expenses. The human asks about the main tourist attractions to visit during the trip, and the AI lists iconic landmarks such as the Eiffel Tower in Paris, the Colosseum in Rome, the Brandenburg Gate in Berlin, and the Rhine Falls in Zurich. The trip offers a comprehension experience of approach city's famous landmarks. The human inquires about traveler's insurance, and the AI confirms that basic traveler's insurance is included for all travelers, provision medical assistant and emission support. Additional coverage options are available upon request. The human asks if it's possible to upgrade to business class seats on the flights and inquires about the cost. The AI responses that upgrading to business class is possible for an additional cost of approximate 1,200 euros round trip, provision benefits like wider seats, superior in-flight months, and increased baggage allowance<), HumanMessage Each hotel offers comfort and convenience, and is located in the center, providing good access to tourist destinations. All hotels have excellent service and amenities.')] 200 euros round trip, provisioning benefits like wider seats, superior in-flight meetings, and integrated baggage allowance."), HumanMessage (content='What is the rating of the hotel included in the package?'), AIMessage (content=' This package Each hotel offers comfort and convenience, and is located in the center, providing good access to tourist destinations. All hotels have excellent service and amenities.')] 200 euros round trip, provisioning benefits like wider seats, superior in-flight meetings, and integrated baggage allowance."), HumanMessage (content='What is the rating of the hotel included in the package?'), AIMessage (content=' This package Each hotel offers comfort and convenience, and is located in the center, providing good access to tourist destinations. All hotels have excellent service and amenities.')]