fix(astradb_tools): sets some options as Advanced and improves descriptions (#4732)
Setting some options as Advanced
This commit is contained in:
parent
20f26a9ccf
commit
84fa2fcc2f
2 changed files with 8 additions and 4 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue