fix: update storeMessageComponent input types (#3950)
* 📝 (StoreMessage.py): Change StrInput to MessageInput for sender, sender_name, and session_id inputs to improve clarity and consistency in the code.
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
077a061a2a
commit
29404c79ba
1 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from langflow.custom import Component
|
||||
from langflow.inputs import HandleInput, MessageInput, StrInput
|
||||
from langflow.inputs import HandleInput, MessageInput
|
||||
from langflow.memory import get_messages, store_message
|
||||
from langflow.schema.message import Message
|
||||
from langflow.template import Output
|
||||
|
|
@ -20,19 +20,19 @@ class StoreMessageComponent(Component):
|
|||
input_types=["BaseChatMessageHistory"],
|
||||
info="The external memory to store the message. If empty, it will use the Langflow tables.",
|
||||
),
|
||||
StrInput(
|
||||
MessageInput(
|
||||
name="sender",
|
||||
display_name="Sender",
|
||||
info="The sender of the message. Might be Machine or User. If empty, the current sender parameter will be used.",
|
||||
advanced=True,
|
||||
),
|
||||
StrInput(
|
||||
MessageInput(
|
||||
name="sender_name",
|
||||
display_name="Sender Name",
|
||||
info="The name of the sender. Might be AI or User. If empty, the current sender parameter will be used.",
|
||||
advanced=True,
|
||||
),
|
||||
StrInput(
|
||||
MessageInput(
|
||||
name="session_id",
|
||||
display_name="Session ID",
|
||||
info="The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue