Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds first-class action support to the in-memory chat memory component so workflows can programmatically add/read/delete/list stored conversation messages using the same underlying repository instance as the chat-memory advisor.
Changes:
- Added chat-memory handling actions: add messages, get messages, delete conversation, list conversations.
- Introduced a shared
InMemoryChatMemoryRepositoryholder and constants for common parameter keys. - Updated the component handler registration and refreshed the component definition JSON snapshot.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| server/libs/modules/components/ai/agent/chat-memory/chat-memory-in-memory/src/test/resources/definition/in-memory-chat-memory_v1.json | Updates golden definition snapshot to include newly registered actions. |
| server/libs/modules/components/ai/agent/chat-memory/chat-memory-in-memory/src/main/java/com/bytechef/component/ai/agent/chat/memory/memory/constant/InMemoryChatMemoryConstants.java | Introduces constants for common parameter/message keys used by the new actions. |
| server/libs/modules/components/ai/agent/chat-memory/chat-memory-in-memory/src/main/java/com/bytechef/component/ai/agent/chat/memory/memory/cluster/InMemoryChatMemory.java | Switches advisor wiring to use the shared repository instance. |
| server/libs/modules/components/ai/agent/chat-memory/chat-memory-in-memory/src/main/java/com/bytechef/component/ai/agent/chat/memory/memory/action/InMemoryChatMemoryListConversationsAction.java | Adds action to list conversation IDs currently stored in memory. |
| server/libs/modules/components/ai/agent/chat-memory/chat-memory-in-memory/src/main/java/com/bytechef/component/ai/agent/chat/memory/memory/action/InMemoryChatMemoryGetMessagesAction.java | Adds action to fetch messages for a conversation and map them to role/content pairs. |
| server/libs/modules/components/ai/agent/chat-memory/chat-memory-in-memory/src/main/java/com/bytechef/component/ai/agent/chat/memory/memory/action/InMemoryChatMemoryDeleteAction.java | Adds action to delete all messages for a conversation. |
| server/libs/modules/components/ai/agent/chat-memory/chat-memory-in-memory/src/main/java/com/bytechef/component/ai/agent/chat/memory/memory/action/InMemoryChatMemoryAddMessagesAction.java | Adds action to append user/assistant messages to an existing conversation history. |
| server/libs/modules/components/ai/agent/chat-memory/chat-memory-in-memory/src/main/java/com/bytechef/component/ai/agent/chat/memory/memory/InMemoryChatMemoryRepositoryHolder.java | Adds singleton holder for a shared in-memory repository across cluster element + actions. |
| server/libs/modules/components/ai/agent/chat-memory/chat-memory-in-memory/src/main/java/com/bytechef/component/ai/agent/chat/memory/memory/InMemoryChatMemoryComponentHandler.java | Registers the new actions on the component definition. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add actionable error message with supported roles in IllegalArgumentException
- Use constants for output field names in GetMessagesAction
- Fix grammar in cluster element description ("retrieved and added")
- Make InMemoryChatMemoryConstants final with private constructor
- Use CONVERSATION_ID constant in AddMessages return map
- Remove unnecessary @SuppressWarnings("unchecked")
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
marko-kriskovic
approved these changes
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com