From 84fa2fcc2f4b2ee13e956c4d79a6d8ad6930070a Mon Sep 17 00:00:00 2001 From: Samuel Matioli <101875785+smatiolids@users.noreply.github.com> Date: Thu, 21 Nov 2024 23:25:18 -0300 Subject: [PATCH] fix(astradb_tools): sets some options as Advanced and improves descriptions (#4732) Setting some options as Advanced --- src/backend/base/langflow/components/tools/astradb.py | 5 +++-- src/backend/base/langflow/components/tools/astradb_cql.py | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/backend/base/langflow/components/tools/astradb.py b/src/backend/base/langflow/components/tools/astradb.py index 8355eb355..2153b8082 100644 --- a/src/backend/base/langflow/components/tools/astradb.py +++ b/src/backend/base/langflow/components/tools/astradb.py @@ -11,8 +11,8 @@ from langflow.schema import Data class AstraDBToolComponent(LCToolComponent): display_name: str = "Astra DB" - description: str = "Create a tool to get data from DataStax Astra DB Collection" - documentation: str = "https://astra.datastax.com" + description: str = "Create a tool to get transactional data from DataStax Astra DB Collection" + documentation: str = "https://docs.langflow.org/Components/components-tools#astra-db-tool" icon: str = "AstraDB" inputs = [ @@ -73,6 +73,7 @@ class AstraDBToolComponent(LCToolComponent): name="static_filters", info="Attributes to filter and correspoding value", display_name="Static filters", + advanced=True, is_list=True, ), IntInput( diff --git a/src/backend/base/langflow/components/tools/astradb_cql.py b/src/backend/base/langflow/components/tools/astradb_cql.py index 5a7206e99..79c3904c8 100644 --- a/src/backend/base/langflow/components/tools/astradb_cql.py +++ b/src/backend/base/langflow/components/tools/astradb_cql.py @@ -13,8 +13,8 @@ from langflow.schema import Data class AstraDBCQLToolComponent(LCToolComponent): display_name: str = "Astra DB CQL" - description: str = "Create a tool to get data from DataStax Astra DB CQL Table" - documentation: str = "https://astra.datastax.com" + description: str = "Create a tool to get transactional data from DataStax Astra DB CQL Table" + documentation: str = "https://docs.langflow.org/Components/components-tools#astra-db-cql-tool" icon: str = "AstraDB" inputs = [ @@ -31,6 +31,7 @@ class AstraDBCQLToolComponent(LCToolComponent): value="default_keyspace", info="The keyspace name within Astra DB where the data is stored.", required=True, + advanced=True, ), StrInput( name="table_name", @@ -58,6 +59,7 @@ class AstraDBCQLToolComponent(LCToolComponent): info="Attributes to return separated by comma.", required=True, value="*", + advanced=True, ), DictInput( name="partition_keys", @@ -76,6 +78,7 @@ class AstraDBCQLToolComponent(LCToolComponent): name="static_filters", display_name="Static Filters", is_list=True, + advanced=True, info="Field name and value. When filled, it will not be generated by the LLM.", ), IntInput(