# Conversation History
[EN] Source: https://mastra.ai/docs/memory/conversation-history

Conversation history is the simplest kind of memory. It is a list of messages from the current conversation.

By default, each request includes the last 10 messages from the current memory thread, giving the agent short-term conversational context. This limit can be increased using the `lastMessages` parameter.

You can increase this limit by passing the `lastMessages` parameter to the `Memory` instance.

```typescript {3-7} showLineNumbers
export const testAgent = new Agent({
  // ...
  memory: new Memory({
    options: {
      lastMessages: 20,
    },
  }),
});
```


---
title: "Memory Processors | Memory"
description: "Learn how to use memory processors in Mastra to filter, trim, and transform messages before they're sent to the language model to manage context window limits."
---