Merge branch 'zustand/io/migration' into codeShortcut

This commit is contained in:
anovazzi1 2024-03-07 19:41:11 -03:00
commit b1df45dd91
29 changed files with 13 additions and 19 deletions

View file

@ -13,7 +13,6 @@ class APIRequest(CustomComponent):
description: str = "Make an HTTP request to the given URL."
output_types: list[str] = ["Record"]
documentation: str = "https://docs.langflow.org/components/utilities#api-request"
beta: bool = True
field_config = {
"url": {"display_name": "URL", "info": "The URL to make the request to."},
"method": {

View file

@ -8,7 +8,6 @@ from langflow.utils.constants import LOADERS_INFO
class FileLoaderComponent(CustomComponent):
display_name: str = "File Loader"
description: str = "Generic File Loader"
beta = True
def build_config(self):
loader_options = ["Automatic"] + [loader_info["name"] for loader_info in LOADERS_INFO]

View file

@ -15,7 +15,6 @@ class AmazonBedrockEmeddingsComponent(CustomComponent):
display_name: str = "Amazon Bedrock Embeddings"
description: str = "Embeddings model from Amazon Bedrock."
documentation = "https://python.langchain.com/docs/modules/data_connection/text_embedding/integrations/bedrock"
beta = True
def build_config(self):
return {

View file

@ -13,7 +13,6 @@ class OllamaEmbeddingsComponent(CustomComponent):
display_name: str = "Ollama Embeddings"
description: str = "Embeddings model from Ollama."
documentation = "https://python.langchain.com/docs/integrations/text_embedding/ollama"
beta = True
def build_config(self):
return {

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."
beta: bool = True
def build_config(self):
return {

View file

@ -5,6 +5,7 @@ from langflow.schema import Record
class ExtractKeyFromRecordComponent(CustomComponent):
display_name = "Extract Key From Record"
description = "Extracts a key from a record."
beta: bool = True
field_config = {
"record": {"display_name": "Record"},

View file

@ -5,6 +5,7 @@ from langflow.schema import Record
class GetNotifiedComponent(CustomComponent):
display_name = "Get Notified"
description = "A component to get notified by Notify component."
beta: bool = True
def build_config(self):
return {

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."
beta: bool = True
def build_config(self):
return {}

View file

@ -5,6 +5,7 @@ from langflow.schema import Record
class MergeRecordsComponent(CustomComponent):
display_name = "Merge Records"
description = "Merges records."
beta: bool = True
field_config = {
"records": {"display_name": "Records"},

View file

@ -8,6 +8,7 @@ from langflow.schema import Record
class MessageHistoryComponent(CustomComponent):
display_name = "Message History"
description = "Used to retrieve stored messages."
beta: bool = True
def build_config(self):
return {

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."
beta: bool = True
def build_config(self):
return {

View file

@ -9,6 +9,7 @@ from langflow.schema import Record
class RunFlowComponent(CustomComponent):
display_name = "Run Flow"
description = "A component to run a flow."
beta: bool = True
def get_flow_names(self) -> List[str]:
flow_records = self.list_flows()

View file

@ -7,7 +7,7 @@ from langflow.field_typing import Text
class RunnableExecComponent(CustomComponent):
documentation: str = "http://docs.langflow.org/components/custom"
display_name = "Runnable Executor"
beta = True
beta: bool = True
def build_config(self):
return {

View file

@ -8,6 +8,7 @@ from langflow.field_typing import Text
class SQLExecutorComponent(CustomComponent):
display_name = "SQL Executor"
description = "Execute SQL query."
beta: bool = True
def build_config(self):
return {

View file

@ -9,6 +9,7 @@ class TextToRecordComponent(CustomComponent):
display_name = "Text to Record"
description = "A component to create a record from key-value pairs."
field_order = ["mode", "keys", "n_keys"]
beta: bool = True
def set_key_template(self, build_config, field_value):
keys_template = TemplateField(

View file

@ -8,7 +8,6 @@ from langflow.field_typing import Prompt, TemplateField, Text
class PromptComponent(CustomComponent):
display_name: str = "Prompt"
description: str = "A component for creating prompts using templates"
beta = True
icon = "terminal-square"
def build_config(self):

View file

@ -20,7 +20,6 @@ class JSONDocumentBuilder(CustomComponent):
display_name: str = "JSON Document Builder"
description: str = "Build a Document containing a JSON object using a key and another Document page content."
output_types: list[str] = ["Document"]
beta = True
documentation: str = "https://docs.langflow.org/components/utilities#json-document-builder"
field_config = {

View file

@ -16,7 +16,6 @@ class VectaraSelfQueryRetriverComponent(CustomComponent):
display_name: str = "Vectara Self Query Retriever for Vectara Vector Store"
description: str = "Implementation of Vectara Self Query Retriever"
documentation = "https://python.langchain.com/docs/integrations/retrievers/self_query/vectara_self_query"
beta = True
icon = "Vectara"
field_config = {

View file

@ -18,7 +18,6 @@ class ChromaComponent(CustomComponent):
display_name: str = "Chroma"
description: str = "Implementation of Vector Store using Chroma"
documentation = "https://python.langchain.com/docs/integrations/vectorstores/chroma"
beta: bool = True
icon = "Chroma"
def build_config(self):

View file

@ -15,7 +15,6 @@ class ChromaSearchComponent(LCVectorStoreComponent):
display_name: str = "Chroma Search"
description: str = "Search a Chroma collection for similar documents."
beta: bool = True
icon = "Chroma"
def build_config(self):

Some files were not shown because too many files have changed in this diff Show more