fix(astradb_tools): sets some options as Advanced and improves descriptions (#4732)

Setting some options as Advanced
This commit is contained in:
Samuel Matioli 2024-11-21 23:25:18 -03:00 committed by GitHub
commit 84fa2fcc2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View file

@ -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(

View file

@ -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(