Alex Metaxas
Alex Metaxas
I was able to add chat history with the following: ``` chat_history = MessagesPlaceholder(variable_name="chat_history") memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) agent = initialize_agent( tools, llm, agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION, verbose=True, agent_kwargs={ "memory_prompts": [chat_history], "input_variables": ["input",...
@namedgraph it did when I wrote that message - see the snapshot [here](https://web.archive.org/web/20230907021419/https://python.langchain.com/docs/modules/agents/agent_types/structured_chat#adding-in-memory).
Here's the [reference](https://github.com/langchain-ai/langchain/blob/afd96b24606e06f15bec4ee94d0ddfde121d894f/docs/snippets/modules/agents/agent_types/structured_chat.mdx#L203) to a previous version of the docs that includes it. Not sure why it was removed.
No problem - [here](https://github.com/tidwall/tile38/pull/789) you go! HTH