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):
|
class AstraDBToolComponent(LCToolComponent):
|
||||||
display_name: str = "Astra DB"
|
display_name: str = "Astra DB"
|
||||||
description: str = "Create a tool to get data from DataStax Astra DB Collection"
|
description: str = "Create a tool to get transactional data from DataStax Astra DB Collection"
|
||||||
documentation: str = "https://astra.datastax.com"
|
documentation: str = "https://docs.langflow.org/Components/components-tools#astra-db-tool"
|
||||||
icon: str = "AstraDB"
|
icon: str = "AstraDB"
|
||||||
|
|
||||||
inputs = [
|
inputs = [
|
||||||
|
|
@ -73,6 +73,7 @@ class AstraDBToolComponent(LCToolComponent):
|
||||||
name="static_filters",
|
name="static_filters",
|
||||||
info="Attributes to filter and correspoding value",
|
info="Attributes to filter and correspoding value",
|
||||||
display_name="Static filters",
|
display_name="Static filters",
|
||||||
|
advanced=True,
|
||||||
is_list=True,
|
is_list=True,
|
||||||
),
|
),
|
||||||
IntInput(
|
IntInput(
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ from langflow.schema import Data
|
||||||
|
|
||||||
class AstraDBCQLToolComponent(LCToolComponent):
|
class AstraDBCQLToolComponent(LCToolComponent):
|
||||||
display_name: str = "Astra DB CQL"
|
display_name: str = "Astra DB CQL"
|
||||||
description: str = "Create a tool to get data from DataStax Astra DB CQL Table"
|
description: str = "Create a tool to get transactional data from DataStax Astra DB CQL Table"
|
||||||
documentation: str = "https://astra.datastax.com"
|
documentation: str = "https://docs.langflow.org/Components/components-tools#astra-db-cql-tool"
|
||||||
icon: str = "AstraDB"
|
icon: str = "AstraDB"
|
||||||
|
|
||||||
inputs = [
|
inputs = [
|
||||||
|
|
@ -31,6 +31,7 @@ class AstraDBCQLToolComponent(LCToolComponent):
|
||||||
value="default_keyspace",
|
value="default_keyspace",
|
||||||
info="The keyspace name within Astra DB where the data is stored.",
|
info="The keyspace name within Astra DB where the data is stored.",
|
||||||
required=True,
|
required=True,
|
||||||
|
advanced=True,
|
||||||
),
|
),
|
||||||
StrInput(
|
StrInput(
|
||||||
name="table_name",
|
name="table_name",
|
||||||
|
|
@ -58,6 +59,7 @@ class AstraDBCQLToolComponent(LCToolComponent):
|
||||||
info="Attributes to return separated by comma.",
|
info="Attributes to return separated by comma.",
|
||||||
required=True,
|
required=True,
|
||||||
value="*",
|
value="*",
|
||||||
|
advanced=True,
|
||||||
),
|
),
|
||||||
DictInput(
|
DictInput(
|
||||||
name="partition_keys",
|
name="partition_keys",
|
||||||
|
|
@ -76,6 +78,7 @@ class AstraDBCQLToolComponent(LCToolComponent):
|
||||||
name="static_filters",
|
name="static_filters",
|
||||||
display_name="Static Filters",
|
display_name="Static Filters",
|
||||||
is_list=True,
|
is_list=True,
|
||||||
|
advanced=True,
|
||||||
info="Field name and value. When filled, it will not be generated by the LLM.",
|
info="Field name and value. When filled, it will not be generated by the LLM.",
|
||||||
),
|
),
|
||||||
IntInput(
|
IntInput(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue