@farukada/aws-langgraph-dynamodb-ts 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -255,9 +255,14 @@ const history = new DynamoDBChatMessageHistory({
255
255
  clientConfig: { region: 'us-east-1' }, // Optional
256
256
  });
257
257
 
258
+ // Add message with session title
259
+ await history.addMessage('user-123', 'session-456', new HumanMessage('Hello!'), 'Greeting Session');
260
+
258
261
  // Add messages (title auto-generated from first message)
259
- await history.addMessage('user-123', 'session-456', new HumanMessage('Hello!'));
260
- await history.addMessage('user-123', 'session-456', new AIMessage('Hi there!'));
262
+ await history.addMessages('user-123', 'session-457', [
263
+ new HumanMessage('Hello!'),
264
+ new AIMessage('Hi there!'),
265
+ ]);
261
266
 
262
267
  // Get all messages for a session
263
268
  const messages = await history.getMessages('user-123', 'session-456');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farukada/aws-langgraph-dynamodb-ts",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "license": "MIT",
5
5
  "description": "AWS DynamoDB implementation for LangGraph Memory Store and Checkpoint Saver in TypeScript",
6
6
  "keywords": [