Skip to content

Commit bb55731

Browse files
authored
Update buffer.mdx (langchain-ai#2123)
Deprecated imports of `import { HumanChatMessage, AIChatMessage } from "langchain/schema";` Replaced with `import { AIMessage, HumanMessage } from "langchain/schema";`
1 parent 8a27b26 commit bb55731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/snippets/modules/memory/how_to/buffer.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This lets you easily pick up state from past conversations:
2828

2929
```typescript
3030
import { BufferMemory, ChatMessageHistory } from "langchain/memory";
31-
import { HumanChatMessage, AIChatMessage } from "langchain/schema";
31+
import { HumanMessage, AIMessage } from "langchain/schema";
3232

3333
const pastMessages = [
3434
new HumanMessage("My name's Jonas"),

0 commit comments

Comments
 (0)