Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(components): Rename StoreMessage to MessageStore for Better Clarity #5009

Merged
merged 13 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/backend/base/langflow/components/helpers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
from .current_date import CurrentDateComponent
from .id_generator import IDGeneratorComponent
from .memory import MemoryComponent
from .message_store import MessageStoreComponent
from .output_parser import OutputParserComponent
from .store_message import StoreMessageComponent
from .structured_output import StructuredOutputComponent

__all__ = [
"CreateListComponent",
"CurrentDateComponent",
"IDGeneratorComponent",
"MemoryComponent",
"MessageStoreComponent",
"OutputParserComponent",
"StoreMessageComponent",
"StructuredOutputComponent",
]
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
from langflow.utils.constants import MESSAGE_SENDER_AI, MESSAGE_SENDER_NAME_AI


class StoreMessageComponent(Component):
display_name = "Store Message"
class MessageStoreComponent(Component):
display_name = "Message Store"
description = "Stores a chat message or text into Langflow tables or an external memory."
icon = "save"
icon = "message-square-text"
name = "StoreMessage"

inputs = [
Expand Down Expand Up @@ -46,7 +46,7 @@ class StoreMessageComponent(Component):
]

outputs = [
Output(display_name="Stored Messages", name="stored_messages", method="store_message"),
Output(display_name="Stored Messages", name="stored_messages", method="store_message", hidden=True),
]

async def store_message(self) -> Message:
Expand Down
Loading