@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.
- package/README.md +7 -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.
|
|
260
|
-
|
|
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