Dialogue history records messages exchanged during a conversation. As short-term memory, it preserves session details—such as a customer’s name, problem, and account number—so an agent can respond without asking again. It is typically held in a buffer, list, or dictionary and discarded when the session ends. section 6.2.1
Order tracking
An agent can temporarily store an order ID and use it to retrieve updates during the session. section 6.2.1
class ShortTermMemory:
def __init__(self):
self.memory = []
def add_message(self, message):
self.memory.append(message)
def get_memory(self):
return self.memory
A minimal list-backed store appends messages and returns the session history. section 6.2.1









