Add New Icons to New Components (#1509)

add new icons to new components
This commit is contained in:
Cristhian Zanforlin Lousa 2024-03-08 07:59:32 -03:00 • committed by GitHub
commit 553624c1be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 292 additions and 5 deletions

View file

@ -5,6 +5,7 @@ from langflow.memory import delete_messages, get_messages
class ClearMessageHistoryComponent(CustomComponent):
display_name = "Clear Message History"
description = "A component to clear the message history."
icon="ClearMessageHistory"
beta: bool = True
def build_config(self):

View file

@ -7,6 +7,7 @@ from langflow.schema import Record
class ListFlowsComponent(CustomComponent):
display_name = "List Flows"
description = "A component to list all available flows."
icon = "ListFlows"
beta: bool = True
def build_config(self):

View file

@ -7,6 +7,7 @@ from langflow.schema import Record
class NotifyComponent(CustomComponent):
display_name = "Notify"
description = "A component to generate a notification to Get Notified component."
icon = "Notify"
beta: bool = True
def build_config(self):

View file

@ -8,7 +8,7 @@ from langflow.interface.custom.utils import get_function
class PythonFunctionComponent(CustomComponent):
display_name = "Python Function"
description = "Define a Python function."
icon = "Python"
def build_config(self):
return {
"function_code": {

View file

@ -8,6 +8,7 @@ from langflow.schema import Record
class ChatInput(ChatComponent):
display_name = "Chat Input"
description = "Used to get user input from the chat."
icon = "ChatInput"
def build(
self,

View file

@ -8,7 +8,7 @@ from langflow.schema import Record
class ChatOutput(ChatComponent):
display_name = "Chat Output"
description = "Used to send a message to the chat."
icon = "ChatOutput"
def build(
self,
sender: Optional[str] = "Machine",