Add New Icons to New Components (#1509)
add new icons to new components
This commit is contained in:
parent
50320a1a65
commit
553624c1be
15 changed files with 292 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue