# Step 3: Conversation with Memory using AI Messages \[#sec\_step3]

Here we will populate the chat history only with the generations from the model. This is the current approach used, e.g., here: [https://python.langchain.com/v0.1/docs/modules/agents/how\_to/custom\_agent/](https://python.langchain.com/v0.1/docs/modules/agents/how_to/custom_agent/)

```python PYTHON